<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: Times New Roman; font-size: 12pt; color: #000000'><style>p { margin: 0; }</style><div style="font-family: Times New Roman; font-size: 12pt; color: rgb(0, 0, 0);">Hi <br><br><br>My Lxc configuration file : <font style="font-family: times new roman,new york,times,serif;" size="3">( /var/lib/lxc/xxx.1g6.biz/config )</font><font size="3"><br style="font-family: times new roman,new york,times,serif;"></font><br><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.utsname = xxx.1g6.biz</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.tty = 4</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.pts = 1024</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.network.type = veth</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.network.flags = up</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.network.link = br0</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.network.name = eth0</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.network.mtu = 1500</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">#lxc.mount = </span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.rootfs = /mnt/vmr1/xxx.1g6.biz</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.deny = a</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"># /dev/null and zero</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 1:3 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 1:5 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"># consoles</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 5:1 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 5:0 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 4:0 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 4:1 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"># /dev/{,u}random</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 1:9 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 1:8 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 136:* rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 5:2 rwm</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"># rtc</span><br style="font-family: Courier New,courier,monaco,monospace,sans-serif;"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;">lxc.cgroup.devices.allow = c 254:0 rwm</span></font><br><br><font size="1"><span style="font-family: Courier New,courier,monaco,monospace,sans-serif;"></span></font># lxc-version<br>lxc version: 0.6.3<br><br><br> Elias<br><br><br>----- Mail Original -----<br>De: "Daniel Lezcano" <daniel.lezcano@free.fr><br>À: "Elias Olivares" <eolivares@1g6.biz><br>Cc: lxc-devel@lists.sourceforge.net<br>Envoyé: Mardi 5 Janvier 2010 21:27:44<br>Objet: Re: [lxc-devel] bugs with LXC container : mount and rmmod command<br><br>Elias Olivares wrote:<br>> Hi ! <br>><br>> To reproduce the "mount bug" : <br>><br>> You have stop some services inside the container (cron,syslog,bind9) : <br>><br>> dns:~# ps xua <br>> USER PID %CPU %MEM VSZ RSS TTY STAT START TIME COMMAND <br>> root 1 0.0 0.0 1984 696 ? Ss 19:03 0:00 init [2] <br>> root 349 0.0 0.0 3040 984 ? Ss 19:03 0:00 /sbin/syslogd <br>> root 358 0.0 0.0 1648 404 ? Ss 19:03 0:00 /sbin/klogd -x <br>> bind 375 0.2 0.0 108284 17524 ? Ssl 19:03 0:00 /usr/sbin/named -u bind <br>> root 396 0.0 0.0 5276 976 ? Ss 19:03 0:00 /usr/sbin/sshd <br>> root 420 0.0 0.0 2384 804 ? Ss 19:03 0:00 /usr/sbin/cron <br>> root 438 0.0 0.0 6028 2912 console Ss 19:03 0:00 /bin/login -- <br>> root 439 0.0 0.0 1992 568 tty1 Ss+ 19:03 0:00 /sbin/getty 38400 tty1 linux <br>> root 440 0.0 0.0 1992 572 tty2 Ss+ 19:03 0:00 /sbin/getty 38400 tty2 linux <br>> root 441 0.0 0.0 1992 572 tty3 Ss+ 19:03 0:00 /sbin/getty 38400 tty3 linux <br>> root 442 0.0 0.0 1992 572 tty4 Ss+ 19:03 0:00 /sbin/getty 38400 tty4 linux <br>> root 443 0.7 0.0 4132 2652 console S 19:03 0:00 -bash <br>> root 456 0.0 0.0 2644 948 console R+ 19:04 0:00 ps xua <br>> dns:~# mount -o remount,ro / <br>> mount: / is busy <br>> dns:~# /etc/init.d/sysklogd stop <br>> Stopping system log daemon.... <br>> dns:~# /etc/init.d/cron stop <br>> Stopping periodic command scheduler: crond. <br>> dns:~# /etc/init.d/bind9 stop <br>> Stopping domain name service...: bind9 waiting for pid 375 to die. <br>> dns:~# mount -o remount,ro / <br>>   <br>Gah, I am still not able to 'remount /'<br><br>Do you mind to provide the configuration file of lxc please ?<br><br>Thanks<br>  -- Daniel<br></div></div></body></html>