Skip to content

LXC / LXD deployment ​

LXD provides virtual-machine-like containers with systemd and their own IP. The controller manages instances through the lxc CLI.

Install ​

bash
sudo snap install lxd
sudo lxd init --auto
# or interactive: sudo lxd init
bash
sudo usermod -aG lxd $USER
newgrp lxd
lxc list

Configure ​

bash
lxc storage list
lxc network list

lxc profile create small
lxc profile set small limits.cpu 1
lxc profile set small limits.memory 1GB

Add the host ​

FieldExample
Namelxd-edge
TypeLinuxContainer Env (LxContainer)
Address10.0.0.32 (SSH)
Useruser in lxd group
Image path/var/lib/lxd/images
Data path/var/lib/lxd/storage-pools
bash
quickidc plat install lxd
quickidc host add --name lxd-edge --type LxContainer --addr 10.0.0.32 --user root
quickidc host scanvm lxd-edge
quickidc plat credentials show lxd

Limits ​

ItemSupport
GPU / VRAMno
PCI / USBno
ISOno
Extra diskno
Bandwidth capno (edit disabled)
ConsolenoVNC

Images ​

bash
lxc image list
lxc launch images:debian/12 debian12
lxc image import meta.tar rootfs.tar --alias debian12-custom

Troubleshooting ​

SymptomFix
permission deniedadd user to lxd group
No IPcheck lxdbr0 and NAT
Console blackinstance not booted / no getty

Released under the AGPLv3 License.