Installation/creation

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 lxc.network.hwaddr = 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

De-install

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

update-rc.d ondemand disable

Update

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

Configure

dpkg-reconfigure tzdata

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

*.* @192.168.1.1:514
Topic revision: r2 - 29 Sep 2019, AdminUser
This site is powered by FoswikiCopyright © by Eddy Vervest