LXC.CONFIG.DEVICE.ADD(1)

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

πŸ’… LXC.CONFIG.DEVICE.ADD(1) πŸ’…

okay bestie, welcome to the LXD - Command line client(1) manual, and buckle up because this one's a little cutie πŸŽ€


✨ NAME ✨

lxc-config-device-add β€” literally just Add instance devices. that's the whole job, and she does it slayfully πŸ’–


πŸ¦‹ SYNOPSIS πŸ¦‹

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

(and yes the spacing in there is exactly how it came out of the box, don't come for me 😭)


🌸 DESCRIPTION 🌸

so the description is, and I quote in spirit: Description: Add instance devices.

that's it. that's the vibe check. she adds instance devices and she goes home πŸ’…βœ¨


πŸ‘‘ OPTIONS INHERITED FROM PARENT COMMANDS πŸ‘‘

these aren't even her own flags, she inherited them from her parent commands like the nepo baby icon she is 🧚 β€” all of them default to false unless it says otherwise, iykyk:

  • --debug[=false] β€” show all the debug messages. every last one. the full tea β˜•
  • --force-local[=false] β€” force using the local unix socket. no remote shenanigans, we're staying home 🏠
  • -h, --help[=false] β€” print help. your little safety net when you're lost 🫢
  • --project="" β€” override the source project. (the original page literally has two stray backticks hanging off the end of this line β€” iconic typo behavior, but I'm not touching it πŸ™ˆ)
  • -q, --quiet[=false] β€” don't show progress information. silent mode. main character who says nothing πŸ”‡
  • --sub-commands[=false] β€” use with help or --help to view sub-commands. peek behind the curtain πŸ‘€
  • -v, --verbose[=false] β€” show all information messages. she's a talker πŸ’¬
  • --version[=false] β€” print version number. who are you, what's your build, what's your star sign ✨

πŸ”₯ EXAMPLE πŸ”₯

okay these two examples ATE, no crumbs, here they are exactly as written:

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

that one will mount the host's /share/c1 onto /opt in the instance. periodt πŸ”₯

  lxc config device add [<remote>:]instance1 <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.

and that one will mount the some-volume volume on some-pool onto /opt in the instance. pool said what she said πŸ’œ


🌈 SEE ALSO 🌈

  • lxc-config-device(1) β€” go read her sister's page, they're a matching set πŸŽ€

⭐ HISTORY ⭐

22-Aug-2026 β€” Auto generated by spf13/cobra. not a human, not a vibe, just a generator doing her thing πŸ€–


so yeah. that's the whole page. add your devices, mount your volumes, force your local socket. you got this bestie πŸ«ΆπŸ’–

β€” sign-off time, mwah πŸ’‹ β€” this iconic little number was Auto generated by spf13/cobra, dated Aug 2026, and it lives under the banner of LXD - Command line client(1). slay, stay hydrated, and read your manpages πŸ“βœ¨

πŸ“¦ where this page comes from