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

Santhosh Kokala Santhosh.Kokala at riverbed.com
Fri Mar 28 18:28:10 UTC 2014


I tried this

root at ubuntu:/var/lib/lxc/imap# cat /root/install/imap.conf       --> Created a container conf file with the mount points for proc,sysfs and devpts but I still see the errors

# Template used to create this container: (null)
# Parameters passed to the template:
lxc.mount.entry =proc /var/lib/lxc/imap/proc proc nodev,noexec,nosuid 0 0
lxc.mount.entry=devpts /var/lib/lxc/imap/dev/pts devpts defaults 0 0
lxc.mount.entry =sysfs /var/lib/lxc/imap/sys sysfs defaults  0 0
lxc.tty = 2
lxc.pts = 1024
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
lxc.cgroup.devices.allow = c 5:1 rwm
lxc.cgroup.devices.allow = c 5:0 rwm
lxc.cgroup.devices.allow = c 4:0 rwm
lxc.cgroup.devices.allow = c 4:1 rwm
lxc.cgroup.devices.allow = c 1:9 rwm
lxc.cgroup.devices.allow = c 1:8 rwm
lxc.cgroup.devices.allow = c 136:* rwm
lxc.cgroup.devices.allow = c 5:2 rwm
lxc.cgroup.devices.allow = c 254:0 rm
lxc.utsname = imap
lxc.rootfs = /var/lib/lxc/imap/rootfs


root at ubuntu:/var/lib/lxc/imap# cd /var/lib/^C
root at ubuntu:/var/lib/lxc/imap# lxc-execute -n imap -- /bin/bash
lxc-execute: No such file or directory - failed to create symlink for kmsg
lxc-execute: failed to setup kmsg for 'imap'
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 'imap'
root at ubuntu:/var/lib/lxc/imap#

From: lxc-users-bounces at lists.linuxcontainers.org [mailto:lxc-users-bounces at lists.linuxcontainers.org] On Behalf Of Nels Nelson
Sent: Friday, March 28, 2014 9:04 AM
To: LXC users mailing-list
Subject: Re: [lxc-users] Error with lxc-execute on version 1.0.0.alpha1

May the rootfs be specified using a small configuration file?

    # cat /tmp/dummy-lxc-config
    lxc.rootfs = /tmp/dummy-lxc/
    # lxc-create -f /tmp/dummy-lxc-config -n dummy

Or something like that?

Also, isn't lxc-create failing without a template parameter related to this issue?
https://github.com/lxc/lxc/issues/179

Thanks,
-Nels

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20140328/37f75713/attachment.html>


More information about the lxc-users mailing list