LXC.PROFILE.DEVICE.ADD(1)
π lxc-profile-device-add π
From the LXD - Command line client(1) manual, bestie. Letβs get into it.
β¨ NAME β¨
lxc-profile-device-add β Add instance devices.
π¦ SYNOPSIS π¦
lxc profile device add [:] [key=value...] [flags]
π DESCRIPTION π
The description is literally this, no cap:
Add instance devices
π OPTIONS INHERITED FROM PARENT COMMANDS π
These cuties come inherited from the parent commands, so donβt forget them:
--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 withhelpor--helpto view sub-commands-v,--verbose[=false]β Show all information messages--version[=false]β Print version number
πΈ EXAMPLE πΈ
- This one:
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.
- And this iconic one:
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 π§
22-Aug-2026 Auto generated by spf13/cobra
Signed, sealed, auto-generated: Auto generated by spf13/cobra Β· Aug 2026 Β· LXD - Command line client(1) πβ¨
π¦ where this page comes from
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- opensuse-leap 16.0: lxd 5.21.6-bp160.1.1 Β· AGPL-3.0-only AND Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms