LXC.LAUNCH(1)

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

πŸ’… lxc-launch πŸ’…

okay bestie, welcome to LXD - Command line client(1) β€” this is the lxc-launch page and honestly it's giving "short but powerful." it's the command that spins up a whole new instance from an image and starts it in one go, no notes. ✨


πŸŽ€ NAME πŸŽ€

lxc-launch β€” create and start instances from images. that's it, that's the whole personality. 🌸


πŸ¦‹ SYNOPSIS πŸ¦‹

lxc launch [:] [:][] [flags]

lowkey mysterious with all those brackets but bestie, it's just the command plus your image and instance name plus however many flags you feel like. πŸ’…


✨ DESCRIPTION ✨

for real, the description in the original says it twice, so i'm saying it twice too (iconic behavior honestly):

Description:

Create and start instances from images

you point it at an image, you give the new instance a name, it gets built and booted. main character energy from start to finish. πŸ‘‘


πŸ’– OPTIONS πŸ’–

okay this is the good part, let's get into it:

  • -c, --config=[] β€” config key/value to apply to the new instance. you can stack these, one -c per setting, and it just keeps adding. πŸŽ€
  • --console[=""] β€” immediately attach to the console. no waiting, you're in the vibes right away. πŸ–₯️
  • -d, --device=[] β€” new key/value to apply to a specific device. also stackable, also slay. πŸ”§
  • --empty[=false] β€” create an empty instance. no image, just vibes. πŸ«₯
  • -e, --ephemeral[=false] β€” ephemeral instance, iykyk. πŸ’¨
  • -n, --network="" β€” network name. 🌐
  • --no-profiles[=false] β€” create the instance with no profiles applied. zero profiles, zero baggage. πŸ™…β€β™€οΈ
  • -p, --profile=[] β€” profile to apply to the new instance. stackable like the others. πŸ“‹
  • -s, --storage="" β€” storage pool name. πŸ’Ύ
  • --target="" β€” cluster member name. πŸ“
  • --target-project="" β€” project to create the instance in (if different from --project). yes, it's a whole separate thing from the inherited --project, stay with me. πŸ—‚οΈ
  • -t, --type="" β€” instance type. 🏷️
  • --vm[=false] β€” create a virtual machine. it's giving vm era. πŸ–₯️✨

🌈 OPTIONS INHERITED FROM PARENT COMMANDS 🌈

these come from the parent lxc command, so they're not even launch's fault but they show up anyway. nepo babies fr fr. πŸ‘‘

  • --debug[=false] β€” show all debug messages. every single one. πŸ›
  • --force-local[=false] β€” force using the local unix socket. πŸ”Œ
  • -h, --help[=false] β€” print help. the classic. πŸ†˜
  • --project="" β€” override the source project. πŸ—‚οΈ
  • -q, --quiet[=false] β€” don't show progress information. peace and quiet, we love her. 🀫
  • --sub-commands[=false] β€” use with help or --help to view sub-commands. πŸͺœ
  • -v, --verbose[=false] β€” show all information messages. the loud version. πŸ“’
  • --version[=false] β€” print version number. πŸ”’

πŸ”₯ EXAMPLE πŸ”₯

okay these are literally the best part, copy-paste away bestie:

lxc launch ubuntu:24.04 u1

create and start a container. the classic starter pack. 🧚

lxc launch ubuntu:24.04 u1 < config.yaml

create and start a container with configuration from config.yaml. shoving the config straight in via stdin, we love a shortcut. πŸ“

lxc launch ubuntu:24.04 u2 -t aws:t2.micro

create and start a container using the same size as an AWS t2.micro (1 vCPU, 1GiB of RAM). matching the cloud sizes, no cap. ☁️

lxc launch ubuntu:24.04 v1 --vm -c limits.cpu=4 -c limits.memory=4GiB

create and start a virtual machine with 4 vCPUs and 4GiB of RAM. beast mode. πŸ’ͺ

lxc launch ubuntu:24.04 v1 --vm -c limits.cpu=2 -c limits.memory=8GiB -d root,size=32GiB

create and start a virtual machine with 2 vCPUs, 8GiB of RAM and a root disk of 32GiB. specify the disk with -d, that's the whole trick. πŸŽ€


🫢 SEE ALSO 🫢

  • lxc(1) β€” the mothership. go read it, she has lore. πŸ‘‘

🧚 HISTORY 🧚

22-Aug-2026 β€” Auto generated by spf13/cobra. not me being auto generated by spf13/cobra 😭 that's just how it is.


and that's the page!! auto generated by spf13/cobra, dated Aug 2026, from LXD - Command line client(1) β€” go forth and launch something iconic, bestie πŸ’œπŸ¦‹βœ¨

πŸ“¦ where this page comes from