On Wed, 2013-10-09 at 10:10 -0500, Serge Hallyn wrote: > Quoting Michael H. Warfield (m...@wittsend.com): > > On Wed, 2013-10-09 at 09:50 -0500, Serge Hallyn wrote: > > > > lxc-create -n Ubuntu-test -t ubuntu > > > > > > > > Bingo... > > > > > > > > /dev/mapper/fedora-root on /usr/lib64/lxc/rootfs type ext4 > > > > (rw,relatime,seclabel,data=ordered) > > > > > > > > Why is lxc-create even creating that mount? I don't see any reason for > > > > > > Check lxccontainer.c:785 and line 805. We call bdev_mount() in case its > > > a blockdev. In the case of a dir-backed container we still end up doing > > > a bind mount of the rootfs. > > > > > > > it. We're never running the container in lxc-create. Running > > > > "umount /usr/lib64/lxc/rootfs" clears it and we're off to the races > > > > again. > > > > > > > > If I were to venture a WAG (Wild Ass Guess) some initialization code is > > > > creating that bind mount that is not needed and that the cleanup code in > > > > lxc-create is unaware of. But I haven't gone to the trouble of trying > > > > to track the code down yet. > > > > > Now is your / still MS_SHARED? The bdev create and templates > > > run in a private namespace, but if MS_SHARED then the mounts get > > > bounced back to host. Maybe we need to manually set MS_PRIVATE every > > > time after doing an unshare() in lxc code. > > > > It doesn't seem to be... Am I looking in the right spot. I don't see > > it in the options... > > > > [root@hydra mhw]# mount | grep ' / ' > > /dev/mapper/fedora-root on / type ext4 (rw,relatime,seclabel,data=ordered)
> What does /proc/self/mountinfo on the host looks like? [root@hydra mhw]# grep ' / ' /proc/self/mounts rootfs / rootfs rw 0 0 /dev/mapper/fedora-root / ext4 rw,seclabel,relatime,data=ordered 0 0 [root@hydra mhw]# grep ' /usr/lib64/lxc/rootfs ' /proc/self/mounts /dev/mapper/fedora-root /usr/lib64/lxc/rootfs ext4 rw,seclabel,relatime,data=ordered 0 0 Regards, Mike -- Michael H. Warfield (AI4NB) | (770) 985-6132 | m...@wittsend.com /\/\|=mhw=|\/\/ | (678) 463-0932 | http://www.wittsend.com/mhw/ NIC whois: MHW9 | An optimist believes we live in the best of all PGP Key: 0x674627FF | possible worlds. A pessimist is sure of it!
signature.asc
Description: This is a digitally signed message part
------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134071&iu=/4140/ostg.clktrk
_______________________________________________ Lxc-devel mailing list Lxc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-devel