LXC Containers

# Create Ubuntu 20.04 Focal LXC container
lxc-create --template ubuntu --name focal -- template-options -r focal
 
# Create Ubuntu 16.04 Xenial LXC container
sudo lxc-create --template ubuntu --name xenial -- template-options -r xenial
 
# Create Ubuntu 14.04 Trusty LXC container
sudo lxc-create --template ubuntu --name trusty -- template-options -r trusty
 
# Create Debian 9 Stretch LXC container
sudo lxc-create --template debian --name stretch -- template-options -r stretch
 
 
# centos
sudo lxc-create -t centos -n centos -- --release 7
 
# nested container / docker support
echo "lxc.aa_profile = unconfined" >> /var/lib/lxc/centos/config
echo "lxc.cgroup.devices.allow = a\n" >> /var/lib/lxc/centos/config
 
# fixme (on first run)
+ preseed
Configuring console-setup
 
echo "console-setup/layoutcode string UTF-8" | debconf-set-selections