[Lxc-users] pivot_root fails on Fedora 15 host

Serge E. Hallyn serge.hallyn at canonical.com
Fri Sep 23 14:38:31 UTC 2011


Quoting Mark Clarkson (mark.clarkson at 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




More information about the lxc-users mailing list