LXC.LAUNCH(1)
π 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-cper 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 withhelpor--helpto 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
- 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