Virtualization
LXD / LXC
See Also: media/video/hacking/linux/just_me_and_opensource/lxd_lxc
Chopsticks
Install and Start
sudo apt install lxd lxc lsb_release -dirc sudo systemctl status lxd sudo systemctl start lxd getent group lxd sudo gpasswd -a bob lxd getent group lxd su -l $USER
lxd init
$ lxd init # no clustering needed for this demo Would you like to use LXD clustering? (yes/no) [default=no]: # since this is a new install, there is no existing storage pool, which is where the filesystem gets stored Do you want to configure a new storage pool? (yes/no) [default=yes]: # can be any name, which would probably help with connecting new instances to an existing pool, leaving default for now Name of the new storage pool [default=default]: # btrfs gives you fancy things like snapshots and volume management, but "dir" just uses a local directory for simplicity Name of the storage backend to use (lvm, btrfs, dir) [default=btrfs]: dir