[pkg-lxc-devel] Bug#905869: lxc-create fails creating ubuntu-bionic containers on stable/stretch

Michael Banck michael.banck at credativ.de
Tue Feb 5 11:43:54 GMT 2019


tags 905869 +patch
thanks

Hi,

thanks for the work-around! That way I got the bionic container to get
created.

However, networking wouldn't start, so further changes to the template
are required.

In the end, I extracted the lxc-ubuntu template from the 3.0.3-1 lxc-
templates package and had to do one more change on top of that.

--- /usr/share/lxc/templates/lxc-ubuntu	2018-12-04
08:47:01.000000000 +0100
+++ /usr/share/lxc/templates/lxc-ubuntu	2019-02-05
12:22:59.820862535 +0100
@@ -553,7 +553,7 @@
     [ -e "$path/config-auto" ] && cat $path/config-auto >> $path/config
&& rm $path/config-auto
     grep -q "^lxc.rootfs.path" $path/config 2>/dev/null || echo
"lxc.rootfs.path = $rootfs" >> $path/config
     cat <<EOF >> $path/config
-lxc.uts.name = $name
+lxc.utsname = $name
 lxc.arch = $arch
 EOF
 

After that, a bionic LXC container would come up fine on stretch with
networking for me.  The full diff for lxc-ubuntu is attached.


Michael905869 at bugs.debian.org

-- 
Michael Banck
Projektleiter / Senior Berater
Tel.: +49 2166 9901-171
Fax:  +49 2166 9901-100
Email: michael.banck at credativ.de

credativ GmbH, HRB Mönchengladbach 12080
USt-ID-Nummer: DE204566209
Trompeterallee 108, 41189 Mönchengladbach
Geschäftsführung: Dr. Michael Meskes, Jörg Folz, Sascha Heuer

Unser Umgang mit personenbezogenen Daten unterliegt
folgenden Bestimmungen: https://www.credativ.de/datenschutz
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lxc-ubuntu.diff
Type: text/x-patch
Size: 5537 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-lxc-devel/attachments/20190205/463e66bb/attachment.bin>


More information about the Pkg-lxc-devel mailing list