Lxc launch
Jump to navigation
Jump to search
lxc launch images:debian/11 bullseye-vm --vm
lxc init ubuntu:22.04 --vm -c limits.cpu=6 -c limits.memory=12GB docker lxc config device override docker root size=100GB lxc start docker
lxc launch images:debian/11 docker-server --vm -c limits.cpu=4 -c limits.memory=12GiB -d root,size=50GiB
s. Assumptions: 1) One zfs pool called ‘default’ that lives on the hard drive at /var/lib/lxd/disks/default.img. 2) Running as root. 3) Growing pool ‘default’ from 25GB to 45GB. Stop all running containers. #truncate -s +20G /var/lib/lxd/disks/default.img #zpool set autoexpand=on default #zpool status -vg default 4a. Note th…
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}
Centos7
lxc launch images:centos/7/amd64 centos7