Re: [Lxc-users] lxc-start fails when / is a shared mount
On Mon, Sep 19, 2011 at 21:53, Ram Pai linux...@us.ibm.com wrote: digging through my long lost memory. hmm..ok here is my recollection. Pivot root involves two move-mount operations. We had decided to not allow moving a mount that is currently below a shared mount. The reason being; it will lead to unmount of all the trees under their corresponding peer mounts. Since pivot_root involves two atomic move-mount operations, and since moving mounts below shared mounts is a invalid operation, the pivot_root operation below shared mounts becomes a invalid operation. Thanks for the explanation. It would be nice if this was documented somewhere, maybe in pivot_root(2). -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
[Lxc-users] lxc-start fails when / is a shared mount
Hi list, I just ran into this problem: If you do # mount --make-shared / to mark / as a shared mount then lxc-start fails when you have specified a lxc.rootfs in the configuration file. The error that lxc-start gives is the following: Invalid argument - pivot_root syscall failed Is this the normal behavior or is this a kernel bug? -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users
Re: [Lxc-users] lxc-start fails when / is a shared mount
Quoting Marios Titas (redneb8...@gmail.com): Hi list, I just ran into this problem: If you do # mount --make-shared / to mark / as a shared mount then lxc-start fails when you have specified a lxc.rootfs in the configuration file. The error that lxc-start gives is the following: Invalid argument - pivot_root syscall failed Is this the normal behavior or is this a kernel bug? It is normal behavior. Perhaps lxc should fall back to chroot when pivot_root fails. -serge -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ Lxc-users mailing list Lxc-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users