[lxc-users] cannot start lxc instance when set hook.mount

Nick Ma skywalker.nick at gmail.com
Sat Feb 15 15:21:29 UTC 2014


Hi, all

I've already set up a nested container environment using ubuntu 13.10.
After set lxc.hook.mount = /usr/share/lxc/hooks/mountcgroups, I can
easily create different namespace inside the container. My container
image is a generic base image of ubuntu 13.10.

However, when I exit the container shell and enter, it prints out the
error below.

lxc-start 1392476847.789 ERROR    lxc_start - failed to setup the container
lxc-start 1392476847.790 ERROR    lxc_sync - invalid sequence number 1.
expected 2
lxc-start 1392476847.790 ERROR    lxc_start - failed to spawn '...'
lxc-info 1392476847.791 ERROR    lxc_commands - command get_init_pid
failed to receive response
lxc-start 1392476870.542 ERROR    lxc_conf - Script exited with status 1
lxc-start 1392476870.542 ERROR    lxc_conf - failed to run mount hooks
for container '...'.


How should I do to get rid of the error? It seems that I cannot stop my
container and restart it.

I'd appreciate any helps or hints.

-- 

cheers,
Li Ma



More information about the lxc-users mailing list