lxc.profile.device.add(1)

lxc-profile-device-add - Add instance devices

Section 1 lxd-client bookworm source

Description

LXD - Command line client

NAME

lxc-profile-device-add - Add instance devices

SYNOPSIS

lxc profile device add [:] [key=value...] [flags]

DESCRIPTION

Description:
Add instance devices

OPTIONS INHERITED FROM PARENT COMMANDS

--debug[=false]

Show all debug messages

--force-local[=false]

Force using the local unix socket

-h, --help[=false]

Print help

--project=""

Override the source project‘‘

-q, --quiet[=false]

Don’t show progress information

--sub-commands[=false]

Use with help or --help to view sub-commands

-v, --verbose[=false]

Show all information messages

--version[=false]

Print version number

EXAMPLE

lxc profile device add [<remote>:]profile1 <device-name> disk source=/share/c1 path=/opt
Will mount the host’s /share/c1 onto /opt in the instance.

lxc profile device add [<remote>:]profile1 <device-name> disk pool=some-pool source=some-volume path=/opt
Will mount the some-volume volume on some-pool onto /opt in the instance.

SEE ALSO

lxc-profile-device(1)

HISTORY

11-Nov-2025 Auto generated by spf13/cobra

See Also

  • lxc-profile-device(1)