[lxc-users] new bug report open: "autostart on boot not working"
Flo
florian.engelmann at gmail.com
Tue Feb 23 10:36:03 UTC 2016
fyi
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1548731
Description: Ubuntu 14.04.4 LTS
Release: 14.04
lxc:
Installed: 1.0.8-0ubuntu0.3
Candidate: 1.0.8-0ubuntu0.3
Upstart service /etc/init/lxc.conf should start all LXC containers
having set "lxc.start.auto = 1" if /etc/default/lxc got
LXC_AUTO="true".
This does not work on a "reboot"/"shutdown -r now" but it does work
after a reboot using "restart lxc".
It fails because of missing network devices (early boot up stage):
lxc-start: conf.c: instantiate_veth: 3105 failed to attach
'vethMCUSEO' to the bridge 'lxcfr258': No such device
lxc-start: conf.c: lxc_create_network: 3388 failed to create netdev
lxc-start: start.c: lxc_spawn: 856 failed to create the network
lxc-start: start.c: __lxc_start: 1121 failed to spawn 'xxxxxxxxxx'
lxc-start: lxc_start.c: main: 341 The container failed to start.
lxc-start: lxc_start.c: main: 345 Additional information can be
obtained by setting the --logfile and --logpriority options.
We do use a special veth setup but the lxc upstart service should
still cover this case.
--- /etc/init/lxc.conf 2015-11-18 20:08:53.000000000 +0100
+++ /tmp/lxc.conf 2016-02-23 11:30:08.704830042 +0100
@@ -1,7 +1,7 @@
description "lxc"
author "Serge Hallyn <serge.hallyn at canonical.com>"
-start on runlevel [2345]
+start on started networking
stop on starting rc RUNLEVEL=[016]
env LXC_AUTO="false"
More information about the lxc-users
mailing list