[Lxc-users] error starting lxc containers

Michael H. Warfield mhw at WittsEnd.com
Sat Jan 19 23:27:27 UTC 2013


On Sat, 2013-01-19 at 23:33 +0200, Ramez Hanna wrote:
> host: fedora 17
> kernel: 3.6.11-5.fc17.x86_64
> lxc: 0.9 alpha2
> systemd: systemd-44-23.fc17.x86_64
> selinux is disabled

I have a Fedora 17 host (and several other hosts as well as Fedora 18
for testing)...  The latest update to systemd broke lxc due to the
pivot_root problem with their use of the MS_SHARED mount attribute that
has been under active discussion for the last couple of weeks.  No, it
is not functional under 0.9.0 alpha2.  It is, more or less, fixed under
current staging (fixed with a lot of uglyness that we're trying to
address).

Your errors reported below don't seem to exactly correspond to the
errors I would expect but, I would expect that, if you had recently
upgraded that Fedora 17 host to the latest systemd, you are going to
fail, period.  Most likely, I would expect you to fail with a
"pivot_root" failure but anything is possible.  It's broken and we know
it.

> lxc-start -n build02
> build02 is a wheezy container built with the debina template was working
> fine both kernel and systemd were upgraded (can't tell which one broke it)

Most likely, it's the systemd upgrade that caused the failure.  Fedora
17 with the latest systemd from fedora-upgrades has broken lxc and even
0.9.0 alpha2 does not fix it.  You have to use staging from git and
build your own.

Regards,
Mike

> error is
> 
>       lxc-start 1358593239.324 INFO     lxc_conf - cgroup has been setup
>       lxc-start 1358593239.324 INFO     lxc_conf - console has been setup
>       lxc-start 1358593239.325 ERROR    lxc_conf - Operation not permitted
> - error creating /usr/lib64/lxc/rootfs/dev/tty1
> 
>       lxc-start 1358593239.329 ERROR    lxc_conf - Operation not permitted
> - error creating /usr/lib64/lxc/rootfs/dev/tty2
> 
>       lxc-start 1358593239.330 ERROR    lxc_conf - Operation not permitted
> - error creating /usr/lib64/lxc/rootfs/dev/tty3
> 
>       lxc-start 1358593239.332 ERROR    lxc_conf - Operation not permitted
> - error creating /usr/lib64/lxc/rootfs/dev/tty4
> 
>       lxc-start 1358593239.334 INFO     lxc_conf - 4 tty(s) has been setup
>       lxc-start 1358593239.334 DEBUG    lxc_conf - mountpoint for old
> rootfs is '/usr/lib64/lxc/rootfs/lxc_putold'
>       lxc-start 1358593239.334 ERROR    lxc_conf - Invalid argument -
> pivot_root syscall failed
>       lxc-start 1358593239.336 ERROR    lxc_conf - failed to setup pivot
> root
>       lxc-start 1358593239.337 ERROR    lxc_conf - failed to set rootfs for
> 'f17'
>       lxc-start 1358593239.338 ERROR    lxc_start - failed to setup the
> container
>       lxc-start 1358593239.339 ERROR    lxc_sync - invalid sequence number
> 1. expected 2
>       lxc-start 1358593239.340 ERROR    lxc_start - failed to spawn 'f17'
> 
> any pointers to where this comes from?
> 
> -- 
> BR
> RH
> http://informatiq.org
> 
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. SALE $99.99 this month only -- learn more at:
> http://p.sf.net/sfu/learnmore_122912
> _______________________________________________ Lxc-users mailing list Lxc-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/lxc-users

-- 
Michael H. Warfield (AI4NB) | (770) 985-6132 |  mhw at 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!
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 482 bytes
Desc: This is a digitally signed message part
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20130119/a66f510e/attachment.pgp>


More information about the lxc-users mailing list