Container creation

lxc-create -n container-name -t download -- -d ubuntu -r trusty -a amd64

Creating a lightweight clone

lxc-clone -s <org> <new name>

Creating a full clone (of a lightweight) clone

lxc-clone -B dir <org> <new name>

Note: Fix the MAC address to avoid issues with (low end) switches = aa:bb:cc:xx:yy:zz

In case you want to run a nested container (container inside a container), make sure the parent container contains the below configuration line (on Bionic at least)

lxc.include = /usr/share/lxc/config/nesting.conf


apt-get purge isc-dhcp-client ntpdate eject openssh-sftp-server ureadahead

update-rc.d ondemand disable


apt-get update
apt-get upgrade
apt-get clean all


dpkg-reconfigure tzdata

Extra line to the end of /etc/rsyslog.conf for central logging

*.* @

This topic: HomeInfra > WebHome > GenericLXCInstall
Topic revision: 29 Sep 2019, AdminUser
This site is powered by FoswikiCopyright © by Eddy Vervest