lxc-create can't create bionic container on xenial

Bug #1760848 reported by h
32
This bug affects 6 people
Affects Status Importance Assigned to Milestone
lxc (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

I did run:

 lxc-create -t ubuntu -n ubu18.04 -- template-options -r bionic

which fails in the end:

(...)
Download complete
Copy /var/cache/lxc/bionic/rootfs-amd64 to /var/lib/lxc/ubu18.04/rootfs ...
Copying rootfs to /var/lib/lxc/ubu18.04/rootfs ...
Generating locales (this might take a while)...
  de_DE.UTF-8... done
Generation complete.
mv: Aufruf von stat für '/var/lib/lxc/ubu18.04/rootfs/etc/init/ssh.conf' nicht möglich: Datei oder Verzeichnis nicht gefunden
lxc-create: lxccontainer.c: create_run_template: 1295 container creation template for ubu18.04 failed
lxc-create: tools/lxc_create.c: main: 318 Error creating container ubu18.04

I've seen that when creating a xenial container this is the point where new sshd keys get created.

  dpkg -l 'lxc*'
||/ Name Version
+++-==============-======================-
ii lxc 2.0.8-0ubuntu1~16.04.2
ii lxc-common 2.0.8-0ubuntu1~16.04.2
ii lxc-templates 2.0.8-0ubuntu1~16.04.2
ii lxc1 2.0.8-0ubuntu1~16.04.2
ii lxcfs 2.0.8-0ubuntu1~16.04.2
un lxcguest <keine>
un lxctl <keine>

  lsb_release -rd
Description: Ubuntu 16.04.4 LTS
Release: 16.04

Revision history for this message
h (sairia-b) wrote :
Revision history for this message
Launchpad Janitor (janitor) wrote :

Status changed to 'Confirmed' because the bug affects multiple users.

Changed in lxc (Ubuntu):
status: New → Confirmed
Revision history for this message
Oliver Mueller (oliver-vpr) wrote :

In my case the underlying host is an ubuntu 16.04. I don't know, if that can cause trouble?

Revision history for this message
h (sairia-b) wrote :

Oliver, this bug is exactly about creating a bionic container on an ubuntu 16.04 host.

Revision history for this message
h (sairia-b) wrote :

This is fixed in lxc 2.1.1 which is available via ppa for 14.04 but has to be pushed to xenial updates.

Revision history for this message
Stéphane Graber (stgraber) wrote :

We're now using distrobuilder to build pre-made images avoiding the mess that was those scripts.

Changed in lxc (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.