[lxc-devel] bugs with LXC container : mount and rmmod command
Elias Olivares
eolivares at 1g6.biz
Wed Jan 6 09:45:21 UTC 2010
Hi
My Lxc configuration file : ( /var/lib/lxc/xxx.1g6.biz /config )
lxc.utsname = xxx.1g6.biz
lxc.tty = 4
lxc.pts = 1024
lxc.network.type = veth
lxc.network.flags = up
lxc.network.link = br0
lxc.network.name = eth0
lxc.network.mtu = 1500
#lxc.mount =
lxc.rootfs = /mnt/vmr1/xxx.1g6.biz
lxc.cgroup.devices.deny = a
# /dev/null and zero
lxc.cgroup.devices.allow = c 1:3 rwm
lxc.cgroup.devices.allow = c 1:5 rwm
# consoles
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
# /dev/{,u}random
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
# rtc
lxc.cgroup.devices.allow = c 254:0 rwm
# lxc-version
lxc version: 0.6.3
Elias
----- Mail Original -----
De: "Daniel Lezcano" <daniel.lezcano at free.fr>
À: "Elias Olivares" <eolivares at 1g6.biz>
Cc: lxc-devel at lists.sourceforge.net
Envoyé: Mardi 5 Janvier 2010 21:27:44
Objet: Re: [lxc-devel] bugs with LXC container : mount and rmmod command
Elias Olivares wrote:
> Hi !
>
> To reproduce the "mount bug" :
>
> You have stop some services inside the container (cron,syslog,bind9) :
>
> dns:~# ps xua
> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND
> root 1 0.0 0.0 1984 696 ? Ss 19:03 0:00 init [2]
> root 349 0.0 0.0 3040 984 ? Ss 19:03 0:00 /sbin/syslogd
> root 358 0.0 0.0 1648 404 ? Ss 19:03 0:00 /sbin/klogd -x
> bind 375 0.2 0.0 108284 17524 ? Ssl 19:03 0:00 /usr/sbin/named -u bind
> root 396 0.0 0.0 5276 976 ? Ss 19:03 0:00 /usr/sbin/sshd
> root 420 0.0 0.0 2384 804 ? Ss 19:03 0:00 /usr/sbin/cron
> root 438 0.0 0.0 6028 2912 console Ss 19:03 0:00 /bin/login --
> root 439 0.0 0.0 1992 568 tty1 Ss+ 19:03 0:00 /sbin/getty 38400 tty1 linux
> root 440 0.0 0.0 1992 572 tty2 Ss+ 19:03 0:00 /sbin/getty 38400 tty2 linux
> root 441 0.0 0.0 1992 572 tty3 Ss+ 19:03 0:00 /sbin/getty 38400 tty3 linux
> root 442 0.0 0.0 1992 572 tty4 Ss+ 19:03 0:00 /sbin/getty 38400 tty4 linux
> root 443 0.7 0.0 4132 2652 console S 19:03 0:00 -bash
> root 456 0.0 0.0 2644 948 console R+ 19:04 0:00 ps xua
> dns:~# mount -o remount,ro /
> mount: / is busy
> dns:~# /etc/init.d/sysklogd stop
> Stopping system log daemon....
> dns:~# /etc/init.d/cron stop
> Stopping periodic command scheduler: crond.
> dns:~# /etc/init.d/bind9 stop
> Stopping domain name service...: bind9 waiting for pid 375 to die.
> dns:~# mount -o remount,ro /
>
Gah, I am still not able to 'remount /'
Do you mind to provide the configuration file of lxc please ?
Thanks
-- Daniel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20100106/41cdde76/attachment.html>
More information about the lxc-devel
mailing list