Quoting Mark Clarkson (mark.clark...@smorg.co.uk):
> Hi,
> On a Fedora 15 host (systemd) with lxc 0.7.5, centos container fails to
> start:
> 
>  ... mountpoint for old rootfs is '/usr/local/lib/lxc/rootfs/mnt'
>  ... ERROR    lxc_conf - Invalid argument - pivot_root syscall failed
>  ... ERROR    lxc_conf - failed to setup pivot root
>  ... ERROR    lxc_conf - failed to set rootfs for 'centos'
> 
> I changed source to chroot instead of pivot_root and container now
> starts.
> 
> Any ideas what's wrong with pivot_root and how to fix?

/ (or, even worse, the old / from initramfs) is probably MS_SHARED.

You can try doing 'mount --make-rprivate /' in an early init script, and
if that doesn't work, also in your initrd's init.

-serge

------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2dcopy2
_______________________________________________
Lxc-users mailing list
Lxc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/lxc-users

Reply via email to