Difference between revisions of "Lxc launch"
Jump to navigation
Jump to search
| Line 3: | Line 3: | ||
lxc launch images:debian/11 docker-server --vm -c limits.cpu=4 -c limits.memory=12GiB -d root,size=50GiB | lxc launch images:debian/11 docker-server --vm -c limits.cpu=4 -c limits.memory=12GiB -d root,size=50GiB | ||
| + | |||
| + | |||
| + | ``` | ||
| + | lxc init images:ubuntu/focal ${VM} -p default -p vm --vm | ||
| + | lxc config set ${VM} limits.cpu ${CPU} | ||
| + | lxc config set ${VM} limits.memory ${MEM} | ||
| + | lxc config device override ${VM} root size=${DISK} | ||
| + | lxc start ${VM} | ||
| + | ``` | ||
Revision as of 16:52, 12 May 2023
lxc launch images:debian/11 bullseye-vm --vm
lxc launch images:debian/11 docker-server --vm -c limits.cpu=4 -c limits.memory=12GiB -d root,size=50GiB
lxc init images:ubuntu/focal ${VM} -p default -p vm --vm
lxc config set ${VM} limits.cpu ${CPU}
lxc config set ${VM} limits.memory ${MEM}
lxc config device override ${VM} root size=${DISK}
lxc start ${VM}