How to setup a Devuan libvirt-lxc container in Devuan

Install libvirt


Reading package lists... Done Building dependency tree Reading state information... Done libvirt0 is already the newest version. libvirt0 set to manually installed. The following extra packages will be installed: augeas-lenses bridge-utils dns-root-data dnsmasq-base ebtables ipxe-qemu libaugeas0 libboost-thread1.55.0 libbrlapi0.6 libfdt1 libiscsi2 libnetcf1 libnetfilter-conntrack3 librados2 librbd1 libseccomp2 libvdeplug2 libvirt-clients libvirt-daemon-system libxen-4.4 libxenstore3.0 netcat-openbsd qemu-kvm qemu-system-common qemu-system-x86 qemu-utils seabios sharutils Suggested packages: augeas-doc augeas-tools radvd systemtap apparmor samba vde2 sgabios ovmf The following NEW packages will be installed: augeas-lenses bridge-utils dns-root-data dnsmasq-base ebtables ipxe-qemu libaugeas0 libboost-thread1.55.0 libbrlapi0.6 libfdt1 libiscsi2 libnetcf1 libnetfilter-conntrack3 librados2 librbd1 libseccomp2 libvdeplug2 libvirt-bin libvirt-clients libvirt-daemon libvirt-daemon-system libxen-4.4 libxenstore3.0 netcat-openbsd qemu-kvm qemu-system-common qemu-system-x86 qemu-utils seabios sharutils 0 upgraded, 30 newly installed, 0 to remove and 4 not upgraded. Need to get 9,487 kB/10.0 MB of archives. After this operation, 44.7 MB of additional disk space will be used. Do you want to continue? [Y/n] Get:1 https://mirror.dpa.li/devuan/ jessie/main libiscsi2 amd64 1.12.0-2 [52.1 kB] Get:2 https://mirror.dpa.li/devuan/ jessie/main librados2 amd64 0.80.7-2+deb8u2 [1,600 kB] Get:3 https://mirror.dpa.li/devuan/ jessie/main librbd1 amd64 0.80.7-2+deb8u2 [362 kB] Get:4 https://mirror.dpa.li/devuan/ jessie/main libseccomp2 amd64 2.1.1-1 [27.6 kB] Get:5 https://mirror.dpa.li/devuan/ jessie/main libvirt-clients amd64 1.2.9-9+devuan1.2 [525 kB] Get:6 https://mirror.dpa.li/devuan/ jessie/main augeas-lenses all 1.2.0-0.2+deb8u1 [335 kB] Get:7 https://mirror.dpa.li/devuan/ jessie/main libaugeas0 amd64 1.2.0-0.2+deb8u1 [256 kB] Get:8 https://mirror.dpa.li/devuan/ jessie/main libnetcf1 amd64 1:0.2.3-4.1 [45.1 kB] Get:9 https://mirror.dpa.li/devuan/ jessie-security/main libxenstore3.0 amd64 4.4.1-9+deb8u9 [32.0 kB] Get:10 https://mirror.dpa.li/devuan/ jessie-security/main libxen-4.4 amd64 4.4.1-9+deb8u9 [298 kB] Get:11 https://mirror.dpa.li/devuan/ jessie/main libvirt-daemon amd64 1.2.9-9+devuan1.2 [1,850 kB] Get:12 https://mirror.dpa.li/devuan/ jessie/main libvirt-daemon-system amd64 1.2.9-9+devuan1.2 [147 kB] Get:13 https://mirror.dpa.li/devuan/ jessie/main qemu-system-common amd64 1:2.1+dfsg-12+deb8u6 [282 kB] Get:14 https://mirror.dpa.li/devuan/ jessie/main libbrlapi0.6 amd64 5.2~20141018-5 [81.1 kB] Get:15 https://mirror.dpa.li/devuan/ jessie/main libfdt1 amd64 1.4.0+dfsg-1 [15.5 kB] Get:16 https://mirror.dpa.li/devuan/ jessie/main ebtables amd64 2.0.10.4-3 [103 kB] Get:17 https://mirror.dpa.li/devuan/ jessie/main ipxe-qemu all 1.0.0+git-20141004.86285d1-1 [442 kB] Get:18 https://mirror.dpa.li/devuan/ jessie/main libvdeplug2 amd64 2.3.2+r586-1 [23.6 kB] Get:19 https://mirror.dpa.li/devuan/ jessie/main libvirt-bin amd64 1.2.9-9+devuan1.2 [36.6 kB] Get:20 https://mirror.dpa.li/devuan/ jessie/main netcat-openbsd amd64 1.105-7 [39.8 kB] Get:21 https://mirror.dpa.li/devuan/ jessie/main seabios all 1.7.5-1 [112 kB] Get:22 https://mirror.dpa.li/devuan/ jessie/main qemu-system-x86 amd64 1:2.1+dfsg-12+deb8u6 [2,043 kB] Get:23 https://mirror.dpa.li/devuan/ jessie/main qemu-utils amd64 1:2.1+dfsg-12+deb8u6 [482 kB] Get:24 https://mirror.dpa.li/devuan/ jessie/main sharutils amd64 1:4.14-2 [245 kB] Get:25 https://mirror.dpa.li/devuan/ jessie/main qemu-kvm amd64 1:2.1+dfsg-12+deb8u6 [52.7 kB] Fetched 9,487 kB in 4s (1,916 kB/s) Selecting previously unselected package libboost-thread1.55.0:amd64. (Reading database ... 1050030 files and directories currently installed.) Preparing to unpack .../libboost-thread1.55.0_1.55.0+dfsg-3_amd64.deb ... Unpacking libboost-thread1.55.0:amd64 (1.55.0+dfsg-3) ... Selecting previously unselected package libiscsi2:amd64. Preparing to unpack .../libiscsi2_1.12.0-2_amd64.deb ... Unpacking libiscsi2:amd64 (1.12.0-2) ... Selecting previously unselected package librados2. Preparing to unpack .../librados2_0.80.7-2+deb8u2_amd64.deb ... Unpacking librados2 (0.80.7-2+deb8u2) ... Selecting previously unselected package librbd1. Preparing to unpack .../librbd1_0.80.7-2+deb8u2_amd64.deb ... Unpacking librbd1 (0.80.7-2+deb8u2) ... Selecting previously unselected package libseccomp2:amd64. Preparing to unpack .../libseccomp2_2.1.1-1_amd64.deb ... Unpacking libseccomp2:amd64 (2.1.1-1) ... Selecting previously unselected package libvirt-clients. Preparing to unpack .../libvirt-clients_1.2.9-9+devuan1.2_amd64.deb ... Unpacking libvirt-clients (1.2.9-9+devuan1.2) ... Selecting previously unselected package augeas-lenses. Preparing to unpack .../augeas-lenses_1.2.0-0.2+deb8u1_all.deb ... Unpacking augeas-lenses (1.2.0-0.2+deb8u1) ... Selecting previously unselected package libaugeas0. Preparing to unpack .../libaugeas0_1.2.0-0.2+deb8u1_amd64.deb ... Unpacking libaugeas0 (1.2.0-0.2+deb8u1) ... Selecting previously unselected package libnetcf1. Preparing to unpack .../libnetcf1_1%3a0.2.3-4.1_amd64.deb ... Unpacking libnetcf1 (1:0.2.3-4.1) ... Selecting previously unselected package libxenstore3.0:amd64. Preparing to unpack .../libxenstore3.0_4.4.1-9+deb8u9_amd64.deb ... Unpacking libxenstore3.0:amd64 (4.4.1-9+deb8u9) ... Selecting previously unselected package libxen-4.4:amd64. Preparing to unpack .../libxen-4.4_4.4.1-9+deb8u9_amd64.deb ... Unpacking libxen-4.4:amd64 (4.4.1-9+deb8u9) ... Selecting previously unselected package libvirt-daemon. Preparing to unpack .../libvirt-daemon_1.2.9-9+devuan1.2_amd64.deb ... Unpacking libvirt-daemon (1.2.9-9+devuan1.2) ... Selecting previously unselected package libvirt-daemon-system. Preparing to unpack .../libvirt-daemon-system_1.2.9-9+devuan1.2_amd64.deb ... Unpacking libvirt-daemon-system (1.2.9-9+devuan1.2) ... Selecting previously unselected package qemu-system-common. Preparing to unpack .../qemu-system-common_1%3a2.1+dfsg-12+deb8u6_amd64.deb ... Unpacking qemu-system-common (1:2.1+dfsg-12+deb8u6) ... Selecting previously unselected package libbrlapi0.6:amd64. Preparing to unpack .../libbrlapi0.6_5.2~20141018-5_amd64.deb ... Unpacking libbrlapi0.6:amd64 (5.2~20141018-5) ... Selecting previously unselected package libfdt1:amd64. Preparing to unpack .../libfdt1_1.4.0+dfsg-1_amd64.deb ... Unpacking libfdt1:amd64 (1.4.0+dfsg-1) ... Selecting previously unselected package libnetfilter-conntrack3:amd64. Preparing to unpack .../libnetfilter-conntrack3_1.0.4-1_amd64.deb ... Unpacking libnetfilter-conntrack3:amd64 (1.0.4-1) ... Selecting previously unselected package bridge-utils. Preparing to unpack .../bridge-utils_1.5-9_amd64.deb ... Unpacking bridge-utils (1.5-9) ... Selecting previously unselected package dns-root-data. Preparing to unpack .../dns-root-data_2014060201+2_all.deb ... Unpacking dns-root-data (2014060201+2) ... Selecting previously unselected package dnsmasq-base. Preparing to unpack .../dnsmasq-base_2.72-3+deb8u1_amd64.deb ... Unpacking dnsmasq-base (2.72-3+deb8u1) ... Selecting previously unselected package ebtables. Preparing to unpack .../ebtables_2.0.10.4-3_amd64.deb ... Unpacking ebtables (2.0.10.4-3) ... Selecting previously unselected package ipxe-qemu. Preparing to unpack .../ipxe-qemu_1.0.0+git-20141004.86285d1-1_all.deb ... Unpacking ipxe-qemu (1.0.0+git-20141004.86285d1-1) ... Selecting previously unselected package libvdeplug2. Preparing to unpack .../libvdeplug2_2.3.2+r586-1_amd64.deb ... Unpacking libvdeplug2 (2.3.2+r586-1) ... Selecting previously unselected package libvirt-bin. Preparing to unpack .../libvirt-bin_1.2.9-9+devuan1.2_amd64.deb ... Unpacking libvirt-bin (1.2.9-9+devuan1.2) ... Selecting previously unselected package netcat-openbsd. Preparing to unpack .../netcat-openbsd_1.105-7_amd64.deb ... Unpacking netcat-openbsd (1.105-7) ... Selecting previously unselected package seabios. Preparing to unpack .../seabios_1.7.5-1_all.deb ... Unpacking seabios (1.7.5-1) ... Selecting previously unselected package qemu-system-x86. Preparing to unpack .../qemu-system-x86_1%3a2.1+dfsg-12+deb8u6_amd64.deb ... Unpacking qemu-system-x86 (1:2.1+dfsg-12+deb8u6) ... Selecting previously unselected package qemu-utils. Preparing to unpack .../qemu-utils_1%3a2.1+dfsg-12+deb8u6_amd64.deb ... Unpacking qemu-utils (1:2.1+dfsg-12+deb8u6) ... Selecting previously unselected package sharutils. Preparing to unpack .../sharutils_1%3a4.14-2_amd64.deb ... Unpacking sharutils (1:4.14-2) ... Selecting previously unselected package qemu-kvm. Preparing to unpack .../qemu-kvm_1%3a2.1+dfsg-12+deb8u6_amd64.deb ... Unpacking qemu-kvm (1:2.1+dfsg-12+deb8u6) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for doc-base (0.10.6) ... Processing 1 added doc-base file... Processing triggers for dbus (1.8.20-1+devuan1.1) ... Setting up libboost-thread1.55.0:amd64 (1.55.0+dfsg-3) ... Setting up libiscsi2:amd64 (1.12.0-2) ... Setting up librados2 (0.80.7-2+deb8u2) ... Setting up librbd1 (0.80.7-2+deb8u2) ... Setting up libseccomp2:amd64 (2.1.1-1) ... Setting up libvirt-clients (1.2.9-9+devuan1.2) ... Setting up augeas-lenses (1.2.0-0.2+deb8u1) ... Setting up libaugeas0 (1.2.0-0.2+deb8u1) ... Setting up libnetcf1 (1:0.2.3-4.1) ... Setting up libxenstore3.0:amd64 (4.4.1-9+deb8u9) ... Setting up libxen-4.4:amd64 (4.4.1-9+deb8u9) ... Setting up libvirt-daemon (1.2.9-9+devuan1.2) ... Setting up libvirt-daemon-system (1.2.9-9+devuan1.2) ... Adding group `libvirt' (GID 128) ... Done. Adding user `libvirt-qemu' to group `libvirt-qemu' ... Adding user libvirt-qemu to group libvirt-qemu Done. [ ok ] Starting libvirt management daemon: libvirtd. Setting up qemu-system-common (1:2.1+dfsg-12+deb8u6) ... Setting up libbrlapi0.6:amd64 (5.2~20141018-5) ... Setting up libfdt1:amd64 (1.4.0+dfsg-1) ... Setting up libnetfilter-conntrack3:amd64 (1.0.4-1) ... Setting up bridge-utils (1.5-9) ... Setting up dns-root-data (2014060201+2) ... Setting up dnsmasq-base (2.72-3+deb8u1) ... Setting up ebtables (2.0.10.4-3) ... Setting up ipxe-qemu (1.0.0+git-20141004.86285d1-1) ... Setting up libvdeplug2 (2.3.2+r586-1) ... Setting up libvirt-bin (1.2.9-9+devuan1.2) ... Setting up netcat-openbsd (1.105-7) ... update-alternatives: using /bin/nc.openbsd to provide /bin/nc (nc) in auto mode Setting up seabios (1.7.5-1) ... Setting up qemu-system-x86 (1:2.1+dfsg-12+deb8u6) ... Setting up qemu-utils (1:2.1+dfsg-12+deb8u6) ... Setting up sharutils (1:4.14-2) ... Setting up qemu-kvm (1:2.1+dfsg-12+deb8u6) ... Processing triggers for libc-bin (2.19-18+deb8u9) ... Processing triggers for dbus (1.8.20-1+devuan1.1) ... daniel@colibri:~$ apt-get install cgroupfs-mount E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root? daniel@colibri:~$ sudo apt-get install cgroupfs-mount Reading package lists... Done Building dependency tree Reading state information... Done The following extra packages will be installed: libnih-dbus1 libnih1 mountall The following NEW packages will be installed: cgroupfs-mount libnih-dbus1 libnih1 mountall 0 upgraded, 4 newly installed, 0 to remove and 4 not upgraded. Need to get 0 B/297 kB of archives. After this operation, 681 kB of additional disk space will be used. Do you want to continue? [Y/n] Selecting previously unselected package libnih1. (Reading database ... 1051010 files and directories currently installed.) Preparing to unpack .../libnih1_1.0.3-4.3_amd64.deb ... Unpacking libnih1 (1.0.3-4.3) ... Selecting previously unselected package libnih-dbus1. Preparing to unpack .../libnih-dbus1_1.0.3-4.3_amd64.deb ... Unpacking libnih-dbus1 (1.0.3-4.3) ... Selecting previously unselected package mountall. Preparing to unpack .../mountall_2.54_amd64.deb ... Unpacking mountall (2.54) ... Selecting previously unselected package cgroupfs-mount. Preparing to unpack .../cgroupfs-mount_1.1_all.deb ... Unpacking cgroupfs-mount (1.1) ... Processing triggers for man-db (2.7.0.2-5) ... Processing triggers for dbus (1.8.20-1+devuan1.1) ... Setting up libnih1 (1.0.3-4.3) ... Setting up libnih-dbus1 (1.0.3-4.3) ... Setting up mountall (2.54) ... Setting up cgroupfs-mount (1.1) ... [ ok ] Mounting cgroupfs hierarchy. Processing triggers for libc-bin (2.19-18+deb8u9) ... Processing triggers for dbus (1.8.20-1+devuan1.1) ...

Bootstrap your devuan container

root@colibri:~# mkdir /vm
root@colibri:~# cd /vm

I: Retrieving InRelease I: Checking Release signature I: Valid Release signature (key id 72E3CB773315DFA2E464743D94532124541922FB) I: Retrieving Packages I: Validating Packages I: Resolving dependencies of required packages... I: Resolving dependencies of base packages... I: Found additional required dependencies: insserv libaudit-common libaudit1 libbz2-1.0 libdb5.3 libdebconfclient0 libfdisk1 libsemanage-common libsemanage1 libslang2 libustr-1.0-1 sysvinit-core I: Found additional base dependencies: libcap2 libdns-export100 libffi6 libgmp10 libgnutls-deb0-28 libgnutls-openssl27 libhogweed2 libicu52 libidn11 libirs-export91 libisc-export95 libisccfg-export90 libmnl0 libnetfilter-acct1 libnettle4 libnfnetlink0 libp11-kit0 libpsl0 libtasn1-6 tasksel I: Checking component main on http://auto.mirror.devuan.org/merged... I: Retrieving base-files 8+devuan7 I: Validating base-files 8+devuan7 I: Retrieving devuan-baseconf 0.6.4+devuan1.1 I: Validating devuan-baseconf 0.6.4+devuan1.1 I: Retrieving devuan-keyring 2016.11.22 I: Validating devuan-keyring 2016.11.22 I: Retrieving init 1.24+devuan1.0 I: Validating init 1.24+devuan1.0 I: Retrieving init-system-helpers 1.24+devuan1.0 I: Validating init-system-helpers 1.24+devuan1.0 I: Retrieving lsb-base 4.1+devuan2 I: Validating lsb-base 4.1+devuan2 I: Retrieving initscripts 2.88dsf-59.2+devuan2 I: Validating initscripts 2.88dsf-59.2+devuan2 I: Retrieving sysvinit 2.88dsf-59.2+devuan2 I: Validating sysvinit 2.88dsf-59.2+devuan2 I: Retrieving sysvinit-core 2.88dsf-59.2+devuan2 I: Validating sysvinit-core 2.88dsf-59.2+devuan2 I: Retrieving sysvinit-utils 2.88dsf-59.2+devuan2 I: Validating sysvinit-utils 2.88dsf-59.2+devuan2 I: Retrieving sysv-rc 2.88dsf-59.2+devuan2 I: Validating sysv-rc 2.88dsf-59.2+devuan2 I: Retrieving tasksel 3.33+devuan1.0 I: Validating tasksel 3.33+devuan1.0 I: Retrieving tasksel-data 3.33+devuan1.0 I: Validating tasksel-data 3.33+devuan1.0 I: Retrieving bsdutils 1:2.26.2-6+devuan1 I: Validating bsdutils 1:2.26.2-6+devuan1 I: Retrieving libblkid1 2.26.2-6+devuan1 I: Validating libblkid1 2.26.2-6+devuan1 I: Retrieving libfdisk1 2.26.2-6+devuan1 I: Validating libfdisk1 2.26.2-6+devuan1 I: Retrieving libmount1 2.26.2-6+devuan1 I: Validating libmount1 2.26.2-6+devuan1 I: Retrieving libsmartcols1 2.26.2-6+devuan1 I: Validating libsmartcols1 2.26.2-6+devuan1 I: Retrieving libuuid1 2.26.2-6+devuan1 I: Validating libuuid1 2.26.2-6+devuan1 I: Retrieving mount 2.26.2-6+devuan1 I: Validating mount 2.26.2-6+devuan1 I: Retrieving util-linux 2.26.2-6+devuan1 I: Validating util-linux 2.26.2-6+devuan1 I: Retrieving libacl1 2.2.52-2 I: Validating libacl1 2.2.52-2 I: Retrieving adduser 3.113+nmu3 I: Validating adduser 3.113+nmu3 I: Retrieving apt 1.0.9.8.4 I: Validating apt 1.0.9.8.4 I: Retrieving apt-utils 1.0.9.8.4 I: Validating apt-utils 1.0.9.8.4 I: Retrieving libapt-inst1.5 1.0.9.8.4 I: Validating libapt-inst1.5 1.0.9.8.4 I: Retrieving libapt-pkg4.12 1.0.9.8.4 I: Validating libapt-pkg4.12 1.0.9.8.4 I: Retrieving libattr1 1:2.4.47-2 I: Validating libattr1 1:2.4.47-2 I: Retrieving libaudit-common 1:2.4-1 I: Validating libaudit-common 1:2.4-1 I: Retrieving libaudit1 1:2.4-1+b1 I: Validating libaudit1 1:2.4-1+b1 I: Retrieving base-passwd 3.5.37 I: Validating base-passwd 3.5.37 I: Retrieving bash 4.3-11+deb8u1 I: Validating bash 4.3-11+deb8u1 I: Retrieving libdns-export100 1:9.9.5.dfsg-9+deb8u10 I: Validating libdns-export100 1:9.9.5.dfsg-9+deb8u10 I: Retrieving libirs-export91 1:9.9.5.dfsg-9+deb8u10 I: Validating libirs-export91 1:9.9.5.dfsg-9+deb8u10 I: Retrieving libisc-export95 1:9.9.5.dfsg-9+deb8u10 I: Validating libisc-export95 1:9.9.5.dfsg-9+deb8u10 I: Retrieving libisccfg-export90 1:9.9.5.dfsg-9+deb8u10 I: Validating libisccfg-export90 1:9.9.5.dfsg-9+deb8u10 I: Retrieving libboost-iostreams1.55.0 1.55.0+dfsg-3 I: Validating libboost-iostreams1.55.0 1.55.0+dfsg-3 I: Retrieving bsdmainutils 9.0.6 I: Validating bsdmainutils 9.0.6 I: Retrieving libbz2-1.0 1.0.6-7+b3 I: Validating libbz2-1.0 1.0.6-7+b3 I: Retrieving libdebconfclient0 0.192 I: Validating libdebconfclient0 0.192 I: Retrieving coreutils 8.23-4 I: Validating coreutils 8.23-4 I: Retrieving cpio 2.11+dfsg-4.1+deb8u1 I: Validating cpio 2.11+dfsg-4.1+deb8u1 I: Retrieving cron 3.0pl1-127+deb8u1 I: Validating cron 3.0pl1-127+deb8u1 I: Retrieving dash 0.5.7-4+b1 I: Validating dash 0.5.7-4+b1 I: Retrieving libdb5.3 5.3.28-9 I: Validating libdb5.3 5.3.28-9 I: Retrieving debconf 1.5.56 I: Validating debconf 1.5.56 I: Retrieving debconf-i18n 1.5.56 I: Validating debconf-i18n 1.5.56 I: Retrieving debian-archive-keyring 2014.3 I: Validating debian-archive-keyring 2014.3 I: Retrieving debianutils 4.4+b1 I: Validating debianutils 4.4+b1 I: Retrieving diffutils 1:3.3-1+b1 I: Validating diffutils 1:3.3-1+b1 I: Retrieving dmidecode 2.12-3 I: Validating dmidecode 2.12-3 I: Retrieving dpkg 1.17.27 I: Validating dpkg 1.17.27 I: Retrieving e2fslibs 1.42.12-2+b1 I: Validating e2fslibs 1.42.12-2+b1 I: Retrieving e2fsprogs 1.42.12-2+b1 I: Validating e2fsprogs 1.42.12-2+b1 I: Retrieving libcomerr2 1.42.12-2+b1 I: Validating libcomerr2 1.42.12-2+b1 I: Retrieving libss2 1.42.12-2+b1 I: Validating libss2 1.42.12-2+b1 I: Retrieving findutils 4.4.2-9+b1 I: Validating findutils 4.4.2-9+b1 I: Retrieving gcc-4.8-base 4.8.4-1 I: Validating gcc-4.8-base 4.8.4-1 I: Retrieving gcc-4.9-base 4.9.2-10 I: Validating gcc-4.9-base 4.9.2-10 I: Retrieving libgcc1 1:4.9.2-10 I: Validating libgcc1 1:4.9.2-10 I: Retrieving libstdc++6 4.9.2-10 I: Validating libstdc++6 4.9.2-10 I: Retrieving libgdbm3 1.8.3-13.1 I: Validating libgdbm3 1.8.3-13.1 I: Retrieving libc-bin 2.19-18+deb8u9 I: Validating libc-bin 2.19-18+deb8u9 I: Retrieving libc6 2.19-18+deb8u9 I: Validating libc6 2.19-18+deb8u9 I: Retrieving multiarch-support 2.19-18+deb8u9 I: Validating multiarch-support 2.19-18+deb8u9 I: Retrieving libgmp10 2:6.0.0+dfsg-6 I: Validating libgmp10 2:6.0.0+dfsg-6 I: Retrieving gnupg 1.4.18-7+deb8u3 I: Validating gnupg 1.4.18-7+deb8u3 I: Retrieving gpgv 1.4.18-7+deb8u3 I: Validating gpgv 1.4.18-7+deb8u3 I: Retrieving libgnutls-deb0-28 3.3.8-6+deb8u5 I: Validating libgnutls-deb0-28 3.3.8-6+deb8u5 I: Retrieving libgnutls-openssl27 3.3.8-6+deb8u5 I: Validating libgnutls-openssl27 3.3.8-6+deb8u5 I: Retrieving grep 2.20-4.1 I: Validating grep 2.20-4.1 I: Retrieving groff-base 1.22.2-8 I: Validating groff-base 1.22.2-8 I: Retrieving gzip 1.6-4 I: Validating gzip 1.6-4 I: Retrieving hostname 3.15 I: Validating hostname 3.15 I: Retrieving libicu52 52.1-8+deb8u5 I: Validating libicu52 52.1-8+deb8u5 I: Retrieving ifupdown 0.7.53.1 I: Validating ifupdown 0.7.53.1 I: Retrieving insserv 1.14.0-5 I: Validating insserv 1.14.0-5 I: Retrieving iproute2 3.16.0-2 I: Validating iproute2 3.16.0-2 I: Retrieving iptables 1.4.21-2+b1 I: Validating iptables 1.4.21-2+b1 I: Retrieving libxtables10 1.4.21-2+b1 I: Validating libxtables10 1.4.21-2+b1 I: Retrieving iputils-ping 3:20121221-5+b2 I: Validating iputils-ping 3:20121221-5+b2 I: Retrieving isc-dhcp-client 4.3.1-6+deb8u2 I: Validating isc-dhcp-client 4.3.1-6+deb8u2 I: Retrieving isc-dhcp-common 4.3.1-6+deb8u2 I: Validating isc-dhcp-common 4.3.1-6+deb8u2 I: Retrieving libjson-c2 0.11-4 I: Validating libjson-c2 0.11-4 I: Retrieving kmod 18-3 I: Validating kmod 18-3 I: Retrieving libkmod2 18-3 I: Validating libkmod2 18-3 I: Retrieving less 458-3 I: Validating less 458-3 I: Retrieving libcap2 1:2.24-8 I: Validating libcap2 1:2.24-8 I: Retrieving libestr0 0.1.9-1.1 I: Validating libestr0 0.1.9-1.1 I: Retrieving libffi6 3.1-2+b2 I: Validating libffi6 3.1-2+b2 I: Retrieving libidn11 1.29-1+deb8u2 I: Validating libidn11 1.29-1+deb8u2 I: Retrieving liblocale-gettext-perl 1.05-8+b1 I: Validating liblocale-gettext-perl 1.05-8+b1 I: Retrieving liblogging-stdlog0 1.0.4-1 I: Validating liblogging-stdlog0 1.0.4-1 I: Retrieving liblognorm1 1.0.1-3 I: Validating liblognorm1 1.0.1-3 I: Retrieving libmnl0 1.0.3-5 I: Validating libmnl0 1.0.3-5 I: Retrieving libnetfilter-acct1 1.0.2-1.1 I: Validating libnetfilter-acct1 1.0.2-1.1 I: Retrieving libnfnetlink0 1.0.1-3 I: Validating libnfnetlink0 1.0.1-3 I: Retrieving libpipeline1 1.4.0-1 I: Validating libpipeline1 1.4.0-1 I: Retrieving libpsl0 0.5.1-1 I: Validating libpsl0 0.5.1-1 I: Retrieving libselinux1 2.3-2 I: Validating libselinux1 2.3-2 I: Retrieving libsemanage-common 2.3-1 I: Validating libsemanage-common 2.3-1 I: Retrieving libsemanage1 2.3-1+b1 I: Validating libsemanage1 2.3-1+b1 I: Retrieving libsepol1 2.3-2 I: Validating libsepol1 2.3-2 I: Retrieving libsigc++-2.0-0c2a 2.4.0-1 I: Validating libsigc++-2.0-0c2a 2.4.0-1 I: Retrieving libtasn1-6 4.2-3+deb8u2 I: Validating libtasn1-6 4.2-3+deb8u2 I: Retrieving libtext-charwidth-perl 0.04-7+b3 I: Validating libtext-charwidth-perl 0.04-7+b3 I: Retrieving libtext-iconv-perl 1.7-5+b2 I: Validating libtext-iconv-perl 1.7-5+b2 I: Retrieving libtext-wrapi18n-perl 0.06-7 I: Validating libtext-wrapi18n-perl 0.06-7 I: Retrieving libusb-0.1-4 2:0.1.12-25 I: Validating libusb-0.1-4 2:0.1.12-25 I: Retrieving logrotate 3.8.7-1+b1 I: Validating logrotate 3.8.7-1+b1 I: Retrieving man-db 2.7.0.2-5 I: Validating man-db 2.7.0.2-5 I: Retrieving manpages 3.74-1 I: Validating manpages 3.74-1 I: Retrieving mawk 1.3.3-17 I: Validating mawk 1.3.3-17 I: Retrieving nano 2.2.6-3 I: Validating nano 2.2.6-3 I: Retrieving libncurses5 5.9+20140913-1+b1 I: Validating libncurses5 5.9+20140913-1+b1 I: Retrieving libncursesw5 5.9+20140913-1+b1 I: Validating libncursesw5 5.9+20140913-1+b1 I: Retrieving libtinfo5 5.9+20140913-1+b1 I: Validating libtinfo5 5.9+20140913-1+b1 I: Retrieving ncurses-base 5.9+20140913-1 I: Validating ncurses-base 5.9+20140913-1 I: Retrieving ncurses-bin 5.9+20140913-1+b1 I: Validating ncurses-bin 5.9+20140913-1+b1 I: Retrieving net-tools 1.60-26+b1 I: Validating net-tools 1.60-26+b1 I: Retrieving netbase 5.3 I: Validating netbase 5.3 I: Retrieving netcat-traditional 1.10-41 I: Validating netcat-traditional 1.10-41 I: Retrieving libhogweed2 2.7.1-5+deb8u2 I: Validating libhogweed2 2.7.1-5+deb8u2 I: Retrieving libnettle4 2.7.1-5+deb8u2 I: Validating libnettle4 2.7.1-5+deb8u2 I: Retrieving libnewt0.52 0.52.17-1+b1 I: Validating libnewt0.52 0.52.17-1+b1 I: Retrieving whiptail 0.52.17-1+b1 I: Validating whiptail 0.52.17-1+b1 I: Retrieving nfacct 1.0.1-1.1 I: Validating nfacct 1.0.1-1.1 I: Retrieving libssl1.0.0 1.0.1t-1+deb8u6 I: Validating libssl1.0.0 1.0.1t-1+deb8u6 I: Retrieving libp11-kit0 0.20.7-1 I: Validating libp11-kit0 0.20.7-1 I: Retrieving libpam-modules 1.1.8-3.1+deb8u2 I: Validating libpam-modules 1.1.8-3.1+deb8u2 I: Retrieving libpam-modules-bin 1.1.8-3.1+deb8u2 I: Validating libpam-modules-bin 1.1.8-3.1+deb8u2 I: Retrieving libpam-runtime 1.1.8-3.1+deb8u2 I: Validating libpam-runtime 1.1.8-3.1+deb8u2 I: Retrieving libpam0g 1.1.8-3.1+deb8u2 I: Validating libpam0g 1.1.8-3.1+deb8u2 I: Retrieving libpcre3 2:8.35-3.3+deb8u4 I: Validating libpcre3 2:8.35-3.3+deb8u4 I: Retrieving perl-base 5.20.2-3+deb8u6 I: Validating perl-base 5.20.2-3+deb8u6 I: Retrieving libpopt0 1.16-10 I: Validating libpopt0 1.16-10 I: Retrieving libprocps3 2:3.3.9-9 I: Validating libprocps3 2:3.3.9-9 I: Retrieving procps 2:3.3.9-9 I: Validating procps 2:3.3.9-9 I: Retrieving libreadline6 6.3-8+b3 I: Validating libreadline6 6.3-8+b3 I: Retrieving readline-common 6.3-8 I: Validating readline-common 6.3-8 I: Retrieving rsyslog 8.4.2-1+deb8u2 I: Validating rsyslog 8.4.2-1+deb8u2 I: Retrieving sed 4.2.2-4+deb8u1 I: Validating sed 4.2.2-4+deb8u1 I: Retrieving sensible-utils 0.0.9 I: Validating sensible-utils 0.0.9 I: Retrieving login 1:4.2-3+deb8u3 I: Validating login 1:4.2-3+deb8u3 I: Retrieving passwd 1:4.2-3+deb8u3 I: Validating passwd 1:4.2-3+deb8u3 I: Retrieving libslang2 2.3.0-2 I: Validating libslang2 2.3.0-2 I: Retrieving startpar 0.59-3 I: Validating startpar 0.59-3 I: Retrieving libudev1 215-17+deb8u7 I: Validating libudev1 215-17+deb8u7 I: Retrieving udev 215-17+deb8u7 I: Validating udev 215-17+deb8u7 I: Retrieving tar 1.27.1-2+deb8u1 I: Validating tar 1.27.1-2+deb8u1 I: Retrieving traceroute 1:2.0.20-2+b1 I: Validating traceroute 1:2.0.20-2+b1 I: Retrieving tzdata 2017b-0+deb8u1 I: Validating tzdata 2017b-0+deb8u1 I: Retrieving libustr-1.0-1 1.0.4-3+b2 I: Validating libustr-1.0-1 1.0.4-3+b2 I: Retrieving vim-common 2:7.4.488-7+deb8u3 I: Validating vim-common 2:7.4.488-7+deb8u3 I: Retrieving vim-tiny 2:7.4.488-7+deb8u3 I: Validating vim-tiny 2:7.4.488-7+deb8u3 I: Retrieving wget 1.16-1+deb8u2 I: Validating wget 1.16-1+deb8u2 I: Retrieving liblzma5 5.1.1alpha+20120614-2+b3 I: Validating liblzma5 5.1.1alpha+20120614-2+b3 I: Retrieving zlib1g 1:1.2.8.dfsg-2+b1 I: Validating zlib1g 1:1.2.8.dfsg-2+b1 I: Chosen extractor for .deb packages: dpkg-deb I: Extracting base-files... I: Extracting init... I: Extracting lsb-base... I: Extracting initscripts... I: Extracting sysvinit-core... I: Extracting sysvinit-utils... I: Extracting sysv-rc... I: Extracting bsdutils... I: Extracting libblkid1... I: Extracting libfdisk1... I: Extracting libmount1... I: Extracting libsmartcols1... I: Extracting libuuid1... I: Extracting mount... I: Extracting util-linux... I: Extracting libacl1... I: Extracting libattr1... I: Extracting libaudit-common... I: Extracting libaudit1... I: Extracting base-passwd... I: Extracting bash... I: Extracting libbz2-1.0... I: Extracting libdebconfclient0... I: Extracting coreutils... I: Extracting dash... I: Extracting libdb5.3... I: Extracting debconf... I: Extracting debconf-i18n... I: Extracting debianutils... I: Extracting diffutils... I: Extracting dpkg... I: Extracting e2fslibs... I: Extracting e2fsprogs... I: Extracting libcomerr2... I: Extracting libss2... I: Extracting findutils... I: Extracting gcc-4.8-base... I: Extracting gcc-4.9-base... I: Extracting libgcc1... I: Extracting libc-bin... I: Extracting libc6... I: Extracting multiarch-support... I: Extracting grep... I: Extracting gzip... I: Extracting hostname... I: Extracting insserv... I: Extracting liblocale-gettext-perl... I: Extracting libselinux1... I: Extracting libsemanage-common... I: Extracting libsemanage1... I: Extracting libsepol1... I: Extracting libtext-charwidth-perl... I: Extracting libtext-iconv-perl... I: Extracting libtext-wrapi18n-perl... I: Extracting mawk... I: Extracting libncurses5... I: Extracting libtinfo5... I: Extracting ncurses-base... I: Extracting ncurses-bin... I: Extracting libpam-modules... I: Extracting libpam-modules-bin... I: Extracting libpam-runtime... I: Extracting libpam0g... I: Extracting libpcre3... I: Extracting perl-base... I: Extracting sed... I: Extracting sensible-utils... I: Extracting login... I: Extracting passwd... I: Extracting libslang2... I: Extracting startpar... I: Extracting tar... I: Extracting tzdata... I: Extracting libustr-1.0-1... I: Extracting liblzma5... I: Extracting zlib1g... I: Installing core packages... I: Unpacking required packages... I: Unpacking base-files... I: Unpacking init... I: Unpacking lsb-base... I: Unpacking initscripts... I: Unpacking sysvinit-core... I: Unpacking sysvinit-utils... I: Unpacking sysv-rc... I: Unpacking bsdutils... I: Unpacking libblkid1:amd64... I: Unpacking libfdisk1:amd64... I: Unpacking libmount1:amd64... I: Unpacking libsmartcols1:amd64... I: Unpacking libuuid1:amd64... I: Unpacking mount... I: Unpacking util-linux... I: Unpacking libacl1:amd64... I: Unpacking libattr1:amd64... I: Unpacking libaudit-common... I: Unpacking libaudit1:amd64... I: Unpacking base-passwd... I: Unpacking bash... I: Unpacking libbz2-1.0:amd64... I: Unpacking libdebconfclient0:amd64... I: Unpacking coreutils... I: Unpacking dash... I: Unpacking libdb5.3:amd64... I: Unpacking debconf... I: Unpacking debconf-i18n... I: Unpacking debianutils... I: Unpacking diffutils... I: Unpacking dpkg... I: Unpacking e2fslibs:amd64... I: Unpacking e2fsprogs... I: Unpacking libcomerr2:amd64... I: Unpacking libss2:amd64... I: Unpacking findutils... I: Unpacking gcc-4.8-base:amd64... I: Unpacking gcc-4.9-base:amd64... I: Unpacking libgcc1:amd64... I: Unpacking libc-bin... I: Unpacking libc6:amd64... I: Unpacking multiarch-support... I: Unpacking grep... I: Unpacking gzip... I: Unpacking hostname... I: Unpacking insserv... I: Unpacking liblocale-gettext-perl... I: Unpacking libselinux1:amd64... I: Unpacking libsemanage-common... I: Unpacking libsemanage1:amd64... I: Unpacking libsepol1:amd64... I: Unpacking libtext-charwidth-perl... I: Unpacking libtext-iconv-perl... I: Unpacking libtext-wrapi18n-perl... I: Unpacking mawk... I: Unpacking libncurses5:amd64... I: Unpacking libtinfo5:amd64... I: Unpacking ncurses-base... I: Unpacking ncurses-bin... I: Unpacking libpam-modules:amd64... I: Unpacking libpam-modules-bin... I: Unpacking libpam-runtime... I: Unpacking libpam0g:amd64... I: Unpacking libpcre3:amd64... I: Unpacking perl-base... I: Unpacking sed... I: Unpacking sensible-utils... I: Unpacking login... I: Unpacking passwd... I: Unpacking libslang2:amd64... I: Unpacking startpar... I: Unpacking tar... I: Unpacking tzdata... I: Unpacking libustr-1.0-1:amd64... I: Unpacking liblzma5:amd64... I: Unpacking zlib1g:amd64... I: Configuring required packages... I: Configuring gcc-4.8-base:amd64... I: Configuring lsb-base... I: Configuring sensible-utils... I: Configuring ncurses-base... I: Configuring libsemanage-common... I: Configuring gcc-4.9-base:amd64... I: Configuring libaudit-common... I: Configuring libc6:amd64... I: Configuring startpar... I: Configuring libc-bin... I: Configuring sysvinit-utils... I: Configuring diffutils... I: Configuring insserv... I: Configuring findutils... I: Configuring libsmartcols1:amd64... I: Configuring debianutils... I: Configuring hostname... I: Configuring multiarch-support... I: Configuring mawk... I: Configuring bsdutils... I: Configuring libpcre3:amd64... I: Configuring libbz2-1.0:amd64... I: Configuring base-files... I: Configuring libdebconfclient0:amd64... I: Configuring libselinux1:amd64... I: Configuring libcomerr2:amd64... I: Configuring libslang2:amd64... I: Configuring libsepol1:amd64... I: Configuring libgcc1:amd64... I: Configuring libustr-1.0-1:amd64... I: Configuring libaudit1:amd64... I: Configuring libtinfo5:amd64... I: Configuring libattr1:amd64... I: Configuring libss2:amd64... I: Configuring liblzma5:amd64... I: Configuring base-passwd... I: Configuring e2fslibs:amd64... I: Configuring libdb5.3:amd64... I: Configuring zlib1g:amd64... I: Configuring libsemanage1:amd64... I: Configuring libacl1:amd64... I: Configuring ncurses-bin... I: Configuring libncurses5:amd64... I: Configuring coreutils... I: Configuring tar... I: Configuring dpkg... I: Configuring sed... I: Configuring perl-base... I: Configuring grep... I: Configuring debconf... I: Configuring tzdata... I: Configuring gzip... I: Configuring dash... I: Configuring libtext-iconv-perl... I: Configuring sysv-rc... I: Configuring liblocale-gettext-perl... I: Configuring libtext-charwidth-perl... I: Configuring libpam0g:amd64... I: Configuring libpam-modules-bin... I: Configuring bash... I: Configuring libtext-wrapi18n-perl... I: Configuring libpam-modules:amd64... I: Configuring libpam-runtime... I: Configuring debconf-i18n... I: Configuring passwd... I: Configuring login... I: Configuring libuuid1:amd64... I: Configuring libblkid1:amd64... I: Configuring libmount1:amd64... I: Configuring mount... I: Configuring libfdisk1:amd64... I: Configuring initscripts... I: Configuring util-linux... I: Configuring e2fsprogs... I: Configuring sysvinit-core... I: Configuring init... I: Configuring libc-bin... I: Unpacking the base system... I: Unpacking devuan-baseconf... I: Unpacking devuan-keyring... I: Unpacking init-system-helpers... I: Unpacking sysvinit... I: Unpacking tasksel... I: Unpacking tasksel-data... I: Unpacking adduser... I: Unpacking apt... I: Unpacking apt-utils... I: Unpacking libapt-inst1.5:amd64... I: Unpacking libapt-pkg4.12:amd64... I: Unpacking libdns-export100... I: Unpacking libirs-export91... I: Unpacking libisc-export95... I: Unpacking libisccfg-export90... I: Unpacking libboost-iostreams1.55.0:amd64... I: Unpacking bsdmainutils... I: Unpacking cpio... I: Unpacking cron... I: Unpacking debian-archive-keyring... I: Unpacking dmidecode... I: Unpacking libstdc++6:amd64... I: Unpacking libgdbm3:amd64... I: Unpacking libgmp10:amd64... I: Unpacking gnupg... I: Unpacking gpgv... I: Unpacking libgnutls-deb0-28:amd64... I: Unpacking libgnutls-openssl27:amd64... I: Unpacking groff-base... I: Unpacking libicu52:amd64... I: Unpacking ifupdown... I: Unpacking iproute2... I: Unpacking iptables... I: Unpacking libxtables10... I: Unpacking iputils-ping... I: Unpacking isc-dhcp-client... I: Unpacking isc-dhcp-common... I: Unpacking libjson-c2:amd64... I: Unpacking kmod... I: Unpacking libkmod2:amd64... I: Unpacking less... I: Unpacking libcap2:amd64... I: Unpacking libestr0... I: Unpacking libffi6:amd64... I: Unpacking libidn11:amd64... I: Unpacking liblogging-stdlog0:amd64... I: Unpacking liblognorm1:amd64... I: Unpacking libmnl0:amd64... I: Unpacking libnetfilter-acct1:amd64... I: Unpacking libnfnetlink0:amd64... I: Unpacking libpipeline1:amd64... I: Unpacking libpsl0:amd64... I: Unpacking libsigc++-2.0-0c2a:amd64... I: Unpacking libtasn1-6:amd64... I: Unpacking libusb-0.1-4:amd64... I: Unpacking logrotate... I: Unpacking man-db... I: Unpacking manpages... I: Unpacking nano... I: Unpacking libncursesw5:amd64... I: Unpacking net-tools... I: Unpacking netbase... I: Unpacking netcat-traditional... I: Unpacking libhogweed2:amd64... I: Unpacking libnettle4:amd64... I: Unpacking libnewt0.52:amd64... I: Unpacking whiptail... I: Unpacking nfacct... I: Unpacking libssl1.0.0:amd64... I: Unpacking libp11-kit0:amd64... I: Unpacking libpopt0:amd64... I: Unpacking libprocps3:amd64... I: Unpacking procps... I: Unpacking libreadline6:amd64... I: Unpacking readline-common... I: Unpacking rsyslog... I: Unpacking libudev1:amd64... I: Unpacking udev... I: Unpacking traceroute... I: Unpacking vim-common... I: Unpacking vim-tiny... I: Unpacking wget... I: Configuring the base system... I: Configuring readline-common... I: Configuring libgdbm3:amd64... I: Configuring manpages... I: Configuring libudev1:amd64... I: Configuring libxtables10... I: Configuring cpio... I: Configuring libpopt0:amd64... I: Configuring libestr0... I: Configuring less... I: Configuring libssl1.0.0:amd64... I: Configuring libncursesw5:amd64... I: Configuring dmidecode... I: Configuring gpgv... I: Configuring libcap2:amd64... I: Configuring liblogging-stdlog0:amd64... I: Configuring netcat-traditional... I: Configuring libprocps3:amd64... I: Configuring libpipeline1:amd64... I: Configuring iproute2... I: Configuring libkmod2:amd64... I: Configuring libtasn1-6:amd64... I: Configuring procps... I: Configuring nano... I: Configuring libgmp10:amd64... I: Configuring libisc-export95... I: Configuring devuan-keyring... I: Configuring init-system-helpers... I: Configuring sysvinit... I: Configuring libnettle4:amd64... I: Configuring debian-archive-keyring... I: Configuring vim-common... I: Configuring devuan-baseconf... I: Configuring libnfnetlink0:amd64... I: Configuring libstdc++6:amd64... I: Configuring libffi6:amd64... I: Configuring libnewt0.52:amd64... I: Configuring bsdmainutils... I: Configuring net-tools... I: Configuring adduser... I: Configuring cron... I: Configuring libmnl0:amd64... I: Configuring libapt-pkg4.12:amd64... I: Configuring libusb-0.1-4:amd64... I: Configuring traceroute... I: Configuring logrotate... I: Configuring libidn11:amd64... I: Configuring libreadline6:amd64... I: Configuring libjson-c2:amd64... I: Configuring libicu52:amd64... I: Configuring netbase... I: Configuring vim-tiny... I: Configuring kmod... I: Configuring libhogweed2:amd64... I: Configuring ifupdown... I: Configuring libisccfg-export90... I: Configuring libsigc++-2.0-0c2a:amd64... I: Configuring groff-base... I: Configuring liblognorm1:amd64... I: Configuring whiptail... I: Configuring gnupg... I: Configuring libpsl0:amd64... I: Configuring libboost-iostreams1.55.0:amd64... I: Configuring libdns-export100... I: Configuring udev... I: Configuring iptables... I: Configuring libapt-inst1.5:amd64... I: Configuring libp11-kit0:amd64... I: Configuring libgnutls-deb0-28:amd64... I: Configuring wget... I: Configuring apt... I: Configuring man-db... I: Configuring libnetfilter-acct1:amd64... I: Configuring rsyslog... I: Configuring nfacct... I: Configuring apt-utils... I: Configuring libirs-export91... I: Configuring libgnutls-openssl27:amd64... I: Configuring iputils-ping... I: Configuring isc-dhcp-common... I: Configuring isc-dhcp-client... I: Configuring tasksel... I: Configuring tasksel-data... I: Configuring libc-bin... I: Base system installed successfully.

[chroot] Some necessary configuration changes inside the new container

For the next steps, you must chroot into your lxc container:
root@colibri:/# chroot my_lxc_container/
Make sure you don't perform any of the following steps outside the chroot!

Change the password

root@colibri:/# passwd
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully

Set your language


Reading package lists... Done Building dependency tree... Done The following NEW packages will be installed: locales 0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 3937 kB of archives. After this operation, 16.7 MB of additional disk space will be used. Get:1 http://auto.mirror.devuan.org/merged/ jessie/main locales all 2.19-18+deb8u9 [3937 kB] Fetched 3937 kB in 1s (2043 kB/s) perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_TIME = "en_DK.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory Preconfiguring packages ... E: Can not write log (Is /dev/pts mounted?) - posix_openpt (2: No such file or directory) Selecting previously unselected package locales. (Reading database ... 9076 files and directories currently installed.) Preparing to unpack .../locales_2.19-18+deb8u9_all.deb ... Unpacking locales (2.19-18+deb8u9) ... Processing triggers for man-db (2.7.0.2-5) ... Setting up locales (2.19-18+deb8u9) ... locale: Cannot set LC_ALL to default locale: No such file or directory Generating locales (this might take a while)... Generation complete.
perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_TIME = "en_DK.UTF-8", LANG = "en_US.UTF-8" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). locale: Cannot set LC_CTYPE to default locale: No such file or directory locale: Cannot set LC_MESSAGES to default locale: No such file or directory locale: Cannot set LC_ALL to default locale: No such file or directory /usr/bin/locale: Cannot set LC_CTYPE to default locale: No such file or directory /usr/bin/locale: Cannot set LC_MESSAGES to default locale: No such file or directory /usr/bin/locale: Cannot set LC_ALL to default locale: No such file or directory Generating locales (this might take a while)... en_US.UTF-8... done Generation complete. perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_TIME = "en_DK.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C"). perl: warning: Setting locale failed. perl: warning: Please check that your locale settings: LANGUAGE = "en_US:en", LC_ALL = (unset), LC_TIME = "en_DK.UTF-8", LANG = "C" are supported and installed on your system. perl: warning: Falling back to the standard locale ("C").

Set the host name

root@colibri:/# echo "Your-new-hostname" > /etc/hostname

Disable spawning of non-existant consoles

We'll only define one console later in libvirt, which will only create one tty, namely /dev/pts/0, but the container tries to spawn 6 consoles. To change this, we need to comment out all lines which look like ":23:respawn:/sbin/getty". Only the first line shouldn't be commented out. The following command will do that for you:
root@colibri:/# sed -i 's|.:23:respawn:/sbin/getty|#\0|' /etc/inittab

Disable pam_loginuid.so

pam_loginuid.so tries try to write to /proc/self/loginuid on login if it is enabled in the kernel, but it's mounted readonly in libvirt-lxc, which may cause the login attemp to fail. So we just comment it out:
root@colibri:/# sed -i 's/session    required     pam_loginuid.so/#\0/' /etc/pam.d/*

Allow libvirts' console (/dev/pts/0) for logins

Just add pts/0 to /etc/securetty:
root@colibri:/# echo 'pts/0' >> /etc/securetty

Disable checksum offloading & configure dhcp

UDP-Checksum offloading may cause invalid UDP checksums, which may cause dhclient to fail. Disable it using ethtool and /etc/network/interfaces:
root@colibri:/# apt-get install ethtool
root@colibri:/# cat > /etc/network/interfaces <<EOF
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet dhcp
  pre-up ethtool --offload eth0 rx off tx off

EOF
You can now leave the changeroot using "exit" or CTRL+D.

Create the XML Config for your libvirt-lxc container

Here is an example config. The rest of this tutorial assums it to be in /var/virt/my_lxc_container.xml The following config assums that you want to use the network config "default" for this domain and your LXC Countainer root directory is at /vm/my_lxc_container/. You may need to start the default network first, or change/add/remove settings if you want a different configuration.
<domain type='lxc'>
  <name>my_lxc_container</name>
  <memory unit='GiB'>1</memory>
  <os>
    <type>exe</type>
    <init>/sbin/init</init>
  </os>
  <vcpu>1</vcpu>
  <features>
    <privnet/>
  </features>
  <clock offset='utc'/>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>destroy</on_crash>
  <devices>
    <filesystem type='mount'>
      <source dir='/vm/my_lxc_container/' />
      <target dir='/' />
    </filesystem>
    <interface type='network'>
      <mac address='00:f0:12:34:56:78'/>
      <source network='default'/>
    </interface>
    <console type='pty' />
  </devices>
</domain>

Define the domain for your libvirt LXC container using your XML config

root@colibri:/vm# virsh -c lxc:/// define /var/virt/my_lxc_container.xml
Domain my_lxc_container defined from /var/virt/my_lxc_container.xml

Start your default network interface & set it as autostart

root@colibri:/vm# virsh net-start default
root@colibri:/vm# virsh net-autostart default
Network default marked as autostarted

Start your container

root@colibri:/vm# virsh -c lxc:/// start my_lxc_container
Domain my_lxc_container started

Open the console of your Container and login


Connected to domain my_lxc_container Escape character is ^] INIT: version 2.88 booting [info] Using makefile-style concurrent boot in runlevel S. [warn] udev does not support containers, not started ... (warning). [info] Setting the system clock. hwclock: Cannot access the Hardware Clock via any known method. hwclock: Use the --debug option to see the details of our search for an access method. [warn] Unable to set System Clock to: Sun May 21 13:30:49 UTC 2017 ... (warning). [ ok ] Activating swap...done. [warn] Creating compatibility symlink from /etc/mtab to /proc/mounts. ... (warning). [ ok ] Activating lvm and md swap...done. [....] Checking file systems...fsck from util-linux 2.25.2 done. [ ok ] Cleaning up temporary files... /tmp. [ ok ] Mounting local filesystems...done. [ ok ] Activating swapfile swap...done. [ ok ] Cleaning up temporary files.... [ ok ] Setting kernel variables ...done. [ ok ] Configuring network interfaces...done. [ ok ] Cleaning up temporary files.... INIT: Entering runlevel: 2 [info] Using makefile-style concurrent boot in runlevel 2. [ ok ] Starting enhanced syslogd: rsyslogd. [ ok ] Starting periodic command scheduler: cron. Devuan GNU/Linux 1 my_lxc_container tty1 my_lxc_container login: root Password: Last login: Sun May 21 13:38:33 UTC 2017 on pts/0 Linux my_lxc_container 4.9.29 #1 SMP Sat May 20 16:45:20 UTC 2017 x86_64 The programs included with the Devuan GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Devuan GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. root@my_lxc_container:~# logout Devuan GNU/Linux 1 my_lxc_container tty1 my_lxc_container login: ^] root@colibri:/vm#
Congratulations, you just configured your first libvirt-lxc container.