[Lxc-users] lxc-start fails when / is a shared mount

Serge Hallyn serge.hallyn at canonical.com
Mon Sep 19 13:35:10 UTC 2011


Quoting Marios Titas (redneb8888 at 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




More information about the lxc-users mailing list