[lxc-users] Error with lxc-execute on version 1.0.0.alpha1
Serge Hallyn
serge.hallyn at ubuntu.com
Sat Mar 29 15:21:26 UTC 2014
Quoting Santhosh Kokala (Santhosh.Kokala at riverbed.com):
> Hi,
> I am facing a strange issue when starting a container, I see the following errors when I do lxc-execute. These errors happen only on lxc 1.0.0.alpha1 version. Version 0.9.0 works perfectly. I am using Ubuntu 13.04 Server and I got lxc 1.0.0.alpha1 from Ubuntu raring backports. It would be really great if someone can help me resolve this issue.
>
> Santhosh
>
> root at host:~# lxc-version
> lxc version: 1.0.0.alpha1
>
> root at host:~# lxc-create -n dummy --> Create a dummy container
>
> root at host:~# lxc-list
> WARNING: lxc-list is deprecated, please use lxc-ls --fancy.
> This symlink will be dropped in LXC 1.0.
>
> NAME STATE IPV4 IPV6 AUTOSTART
> -------------------------------------
> dummy STOPPED - - NO
>
> root at host:~# lxc-execute -n dummy -- /bin/bash --> Launch bash inside container
> lxc-execute: No such file or directory - failed to create symlink for kmsg
> lxc-execute: failed to setup kmsg for 'dummy'
> lxc-execute: No such file or directory - failed to mount /proc in the container.
> lxc-execute: failed to setup the container
> lxc-execute: invalid sequence number 1. expected 2
> lxc-execute: failed to spawn 'dummy'
That's fixed in later lxc where failure to mount proc oesn't
stop the container from starting. Still, just create /proc
in your container rootfs as i suspect you'll want it.
More information about the lxc-users
mailing list