[lxc-devel] lxc 0.7.3 console problem

Trent W. Buck twb at cybersource.com.au
Fri Dec 24 00:33:46 UTC 2010


twb at cybersource.com.au (Trent W. Buck)
writes:

> Daniel Lezcano <daniel.lezcano at free.fr> writes:
>
>> some changes to 0.7.3 broke the mount points. We try to keep backward
>> compatibility but sometimes that does not happen :S
>>
>> I will try to fix this and release a 0.7.4 version.
>>
>> 	"none /lxc/test1/dev/pts  devpts defaults  0 0"
>>
>> becomes:
>>
>> 	"none dev/pts devpts defaults 0 0"
>
> I'm confused -- the former still works for me in 0.7.3...

PS: I just checked and it doesn't work for me.  Removing
"/srv/lxc/imago/" from the mount points:

root at omega:~# lxc-start -n image -f /etc/lxc/imago.conf
lxc-start: No such file or directory - failed to mount 'none' on 'dev/shm'
lxc-start: failed to setup the mount entries for 'image'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'image'
root at omega:~# egrep -v '^[[:space:]]*(#|$)' /etc/lxc/imago.conf
lxc.utsname = imago
lxc.console = /var/log/lxc/imago.console
lxc.rootfs = /srv/lxc/imago
lxc.tty = 4
lxc.pts = 1024
lxc.network.type = veth
lxc.network.link = br-managed
lxc.network.name = managed
lxc.network.flags = up
lxc.cgroup.memory.soft_limit_in_bytes = 128M
lxc.cgroup.memory.limit_in_bytes = 256M
lxc.cgroup.memory.memsw.limit_in_bytes = 512M
lxc.cgroup.devices.deny = a
lxc.cgroup.devices.allow = c 1:3 rw
lxc.cgroup.devices.allow = c 1:5 rw
lxc.cgroup.devices.allow = c 1:8 rw
lxc.cgroup.devices.allow = c 1:9 rw
lxc.cgroup.devices.allow = c 4:* rw
lxc.cgroup.devices.allow = c 5:0 rw
lxc.cgroup.devices.allow = c 5:1 rw
lxc.cgroup.devices.allow = c 5:2 rw
lxc.cgroup.devices.allow = c 136:* rw
lxc.cgroup.devices.allow = c 254:0 r
lxc.cap.drop = sys_admin
lxc.mount.entry  = none dev/shm tmpfs nosuid,nodev
lxc.mount.entry  = none lib/init/rw tmpfs mode=0755,nosuid,size=8m
lxc.mount.entry  = none proc proc nodev,noexec,nosuid
lxc.mount.entry  = none tmp tmpfs defaults
lxc.mount.entry  = none var/lock tmpfs nodev,noexec,nosuid,size=8m
lxc.mount.entry  = /srv/mirror srv/mirror none bind,ro
lxc.mount.entry  = /home       home       none bind
lxc.cap.drop = audit_control audit_write linux_immutable mac_admin
lxc.cap.drop = mac_override mknod setfcap setpcap sys_admin sys_boot
lxc.cap.drop = sys_module sys_pacct sys_rawio sys_resource sys_time
lxc.cap.drop = sys_tty_config
root at omega:~#





More information about the lxc-devel mailing list