John Drescher wrote:
I think the problem is coming from the /dev/shm tmpfs directory is
overwritten by the next udev tmpfs mount.
So the lxc code finds, in /proc/mounts, the /dev/shm mount point and tries
to unmount it, but this one is not visible yet because /dev has to be
unmounted before.
This is something to be fixed before the 0.6.5 release.
But I think the /dev/shm mount point is useless and IMO you can comment it
from your /fstab and check if the container starts.
The container did not start without /dev/shm either.
Actually I did not have /dev/shm mounted or in my /etc/fstab until
Michael Warfield suggested he had a similar problem caused when
/dev/shm was mounted so I tried to see if toggling between mounted and
not mounted caused it to work at least 1 time.
I have not had this issue with 0.6.4 or 0.6.3 in the few hours (6 to
12) I have tested each.
Do you mind to test the patch in attachment ?
---
src/lxc/conf.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
Index: lxc/src/lxc/conf.c
===================================================================
--- lxc.orig/src/lxc/conf.c
+++ lxc/src/lxc/conf.c
@@ -516,6 +516,13 @@ static int setup_rootfs_pivot_root(const
lxc_list_for_each(iterator, &mountlist) {
+ /* the mount point is not visible, very likely
+ * there is something else mounted on top of it */
+ if (access((char *)iterator->elem, F_OK)) {
+ still_mounted++;
+ continue;
+ }
+
if (!umount(iterator->elem)) {
DEBUG("umounted '%s'", (char *)iterator->elem);
lxc_list_del(iterator);
@@ -523,7 +530,8 @@ static int setup_rootfs_pivot_root(const
}
if (errno != EBUSY) {
- SYSERROR("failed to umount '%s'", (char *)iterator->elem);
+ SYSERROR("failed to umount '%s'",
+ (char *)iterator->elem);
return -1;
}
------------------------------------------------------------------------------
Throughout its 18-year history, RSA Conference consistently attracts the
world's best and brightest in the field, creating opportunities for Conference
attendees to learn about information security's most important issues through
interactions with peers, luminaries and emerging and established companies.
http://p.sf.net/sfu/rsaconf-dev2dev
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users