[lxc-devel] bugs with LXC container : mount and rmmod command
Elias Olivares
eolivares at 1g6.biz
Tue Jan 5 18:11:46 UTC 2010
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 /
Regards,
Elias Olivares
----- Mail Original -----
De: "Elias Olivares" <eolivares at 1g6.biz>
À: lxc-devel at lists.sourceforge.net
Envoyé: Mardi 5 Janvier 2010 15:34:53
Objet: [lxc-devel] bugs with LXC container : mount and rmmod command
Hello,
My company is looking for migrate from OpenVz to LXC container tools but we have found some isolation problems.
I've created a dedicated partition to share my containers in : /mnt/vmr1/
I've created a container with an debian debootstrap there : /mnt/vmr1/debiandebootstrap
Then I enter into a container (lxc-console -n debiandebootstrap) and I use this specific mount command : " mount -o remount,ro / " .
When I return to the Host , /mnt/vmr1/ is set in "read only". The mount command ran in the guest has interacted with the host.
I have the same problem with "rmmod" command. When I try to remove some module in the guest container it remove it on the Host machine.
Someone can help me ?
Regards,
Elias Olivares
------------------------------------------------------------------------------
This SF.Net email is sponsored by the Verizon Developer Community
Take advantage of Verizon's best-in-class app development support
A streamlined, 14 day to market process makes app distribution fast and easy
Join now and get one step closer to millions of Verizon customers
http://p.sf.net/sfu/verizon-dev2dev
_______________________________________________
Lxc-devel mailing list
Lxc-devel at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-devel
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20100105/5cfc5f05/attachment.html>
More information about the lxc-devel
mailing list