LXC.PROFILE.DEVICE.ADD(1)

πŸ“¦
version 5.21.6 Β· 3 versions
, in opensuse-leap 16.0

πŸŽ€ 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 with help or --help to view sub-commands
  • -v, --verbose[=false] β€” Show all information messages
  • --version[=false] β€” Print version number

🌸 EXAMPLE 🌸

  1. 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.

  1. 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