[lxc-users] Error with lxc-execute on version 1.0.0.alpha1

Serge Hallyn serge.hallyn at ubuntu.com
Fri Mar 28 15:01:41 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

Since you didn't specify a template, there is no rootfs.  Therefore
there is no /dev, no /proc, etc, to mount those filesystems onto.
If you don't specify a template then you'll have to lay out a basic
rootfs yourself.

> 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'

> _______________________________________________
> lxc-users mailing list
> lxc-users at lists.linuxcontainers.org
> http://lists.linuxcontainers.org/listinfo/lxc-users



More information about the lxc-users mailing list