<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><font size="2"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><font size="3"><span style="font-family: times new roman,new york,times,serif;">Hi !<br><br>To reproduce the "mount bug" : <br><br>You have stop some services inside the container (cron,syslog,bind9) :</span></font><br><br>dns:~# ps xua</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root         1  0.0  0.0   1984   696 ?        Ss   19:03   0:00 init [2]  </span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       349  0.0  0.0   3040   984 ?        Ss   19:03   0:00 /sbin/syslogd</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       358  0.0  0.0   1648   404 ?        Ss   19:03   0:00 /sbin/klogd -x</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">bind       375  0.2  0.0 108284 17524 ?        Ssl  19:03   0:00 /usr/sbin/named -u bind</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       396  0.0  0.0   5276   976 ?        Ss   19:03   0:00 /usr/sbin/sshd</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       420  0.0  0.0   2384   804 ?        Ss   19:03   0:00 /usr/sbin/cron</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       438  0.0  0.0   6028  2912 console  Ss   19:03   0:00 /bin/login --     </span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       439  0.0  0.0   1992   568 tty1     Ss+  19:03   0:00 /sbin/getty 38400 tty1 linux</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       440  0.0  0.0   1992   572 tty2     Ss+  19:03   0:00 /sbin/getty 38400 tty2 linux</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       441  0.0  0.0   1992   572 tty3     Ss+  19:03   0:00 /sbin/getty 38400 tty3 linux</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       442  0.0  0.0   1992   572 tty4     Ss+  19:03   0:00 /sbin/getty 38400 tty4 linux</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       443  0.7  0.0   4132  2652 console  S    19:03   0:00 -bash</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">root       456  0.0  0.0   2644   948 console  R+   19:04   0:00 ps xua</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">dns:~# mount -o remount,ro /</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">mount: / is busy</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">dns:~# /etc/init.d/sysklogd stop</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Stopping system log daemon....</span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"></span><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">         </span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">dns:~# /etc/init.d/cron stop</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Stopping periodic command scheduler: crond.</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">dns:~# /etc/init.d/bind9 stop</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">Stopping domain name service...: bind9 waiting for pid 375 to die.</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">dns:~# mount -o remount,ro /</span></font><br><br>Regards,<br><br>Elias Olivares<br><br><br>----- Mail Original -----<br>De: "Elias Olivares" <eolivares@1g6.biz><br>À: lxc-devel@lists.sourceforge.net<br>Envoyé: Mardi 5 Janvier 2010 15:34:53<br>Objet: [lxc-devel]  bugs with LXC container : mount and rmmod command<br><br><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">Hello,<br><br>My company is looking for migrate from OpenVz to LXC container tools but we have found some isolation problems.<br><br>I've created a dedicated partition to share my containers in : /mnt/vmr1/<br><br>I've  created a container with an debian debootstrap there : /mnt/vmr1/debiandebootstrap<br><br>Then I enter into a container (lxc-console -n debiandebootstrap) and I use this specific mount command : " mount -o remount,ro /  " .<br><br>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. <br><br>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.<br><br>Someone can help me ?<br><br>Regards,<br><br>Elias Olivares<br><br><br><br><br></div><br>------------------------------------------------------------------------------<br>This SF.Net email is sponsored by the Verizon Developer Community<br>Take advantage of Verizon's best-in-class app development support<br>A streamlined, 14 day to market process makes app distribution fast and easy<br>Join now and get one step closer to millions of Verizon customers<br>http://p.sf.net/sfu/verizon-dev2dev <br>_______________________________________________<br>Lxc-devel mailing list<br>Lxc-devel@lists.sourceforge.net<br>https://lists.sourceforge.net/lists/listinfo/lxc-devel<br></div></body></html>