:: Re: [DNG] LXC template for Devuan
Top Page
Delete this message
Reply to this message
Author: Greg Olsen
Date:  
To: dng
Subject: Re: [DNG] LXC template for Devuan
Greetings,

Just a quick update.

The problem we had with lxc-devuan is indeed a version incompatibility
between the later LXC version 1.1.5 and the Devuan version 1.0.6. But
hey, at least we're ready for the later version!

I haven't updated on GitLab yet, but the good news is I already have a
fix ready for the incompatibility problem, and have successfully tested
it with Devuan's lxc package. Please see test info at bottom.

*All* other issues identified up to this point have also been fixed,
including those pesky Perl warnings (Thanks KatolaZ for your response on
that!)

To support earlier releases the easiest thing is to supply a different
config directory. The updated template works fine for both the old and
new releases, so that won't require special treatment.

I intend to do a bit more testing tomorrow PM before pushing the updates
to GitLab. I'll let everyone know once it's available.


Simon, Once the updates are in GitLab, and since you expressed an
interest, can I email you directly about testing?

I successfully nested LXC within LXC so that technique can be used to
test lxc-devuan inside some other OS distros.

Once the wrinkles have been ironed out, we can write a simple install
script to figure out the install path, and detect which config to copy.

Thanks,

Greg


Test info:

# cat /etc/os-release
PRETTY_NAME="Devuan GNU/Linux 1 (jessie)"
NAME="Devuan GNU/Linux"
VERSION_ID="1"
VERSION="1 (jessie)"
ID=devuan
HOME_URL="http://www.devuan.org/"
SUPPORT_URL="http://www.devuan.org/support/"
BUG_REPORT_URL="https://bugs.devuan.org/"

# apt-cache show lxc
Package: lxc
Version: 1:1.0.6-6+deb8u2

# lxc-attach -n test
root@test:/etc# ps aux
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
root         1  0.0  0.0  15484  1712 ?        Ss   04:51   0:00 init [3]
root       408  0.0  0.0  25396  8476 ?        Ss   04:52   0:00 
dhclient -v -pf /run/dhclient.eth0.pid -lf 
/var/lib/dhcp/dhclient.eth0.leases eth0
root       494  0.0  0.0  55184  2432 ?        Ss   04:52   0:00 
/usr/sbin/sshd
root       505  0.0  0.0  12664  1700 lxc/console Ss+ 04:52   0:00 
/sbin/getty 38400 console
root       506  0.0  0.0  12664  1760 lxc/tty1 Ss+  04:52   0:00 
/sbin/getty 38400 tty1 linux
root       507  0.0  0.0  12664  1856 lxc/tty2 Ss+  04:52   0:00 
/sbin/getty 38400 tty2 linux
root       508  0.0  0.0  12664  1728 lxc/tty3 Ss+  04:52   0:00 
/sbin/getty 38400 tty3 linux
root       509  0.0  0.0  12664  1872 lxc/tty4 Ss+  04:52   0:00 
/sbin/getty 38400 tty4 linux
root       548  0.0  0.0  21856  3424 ?        S    05:37   0:00 /bin/bash
root       549  0.0  0.0  19100  2448 ?        R+   05:38   0:00 ps aux