FS#31211 - [lxc] cannot lxc-start container (pivot_root fails)

Attached to Project: Community Packages
Opened by Maciej Mazur (mamciek) - Monday, 20 August 2012, 12:48 GMT
Last edited by Dave Reisner (falconindy) - Monday, 20 August 2012, 14:13 GMT
Task Type Bug Report
Category Packages
Status Closed
Assigned To No-one
Architecture All
Severity Critical
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
After upgrading to kernel 3.4.9 i cannot start any container. It camplains about pivot_root. The exact output is attached below. Before system upgrade it was working all ok.
I have also submitted issue to LXC bug tracker: https://sourceforge.net/tracker/?func=detail&aid=3559833&group_id=163076&atid=826303



Additional info:
* package version(s): lxc 0.8.0_rc2-1


Steps to reproduce:
$ lxc-create -t archlinux -n archtest
$ lxc-start -n archtest
lxc-start: Invalid argument - pivot_root syscall failed
lxc-start: failed to setup pivot root
lxc-start: failed to set rootfs for 'archtest'
lxc-start: failed to setup the container
lxc-start: invalid sequence number 1. expected 2
lxc-start: failed to spawn 'archtest'
This task depends upon

Closed by  Dave Reisner (falconindy)
Monday, 20 August 2012, 14:13 GMT
Reason for closing:  Won't fix
Additional comments about closing:  lxc isn't a supported package.
Comment by Maciej Mazur (mamciek) - Monday, 20 August 2012, 12:50 GMT
I am using kernel: Linux ktr-mmazur 3.4.9-1-ARCH #1 SMP PREEMPT Wed Aug 15 18:59:31 CEST 2012 x86_64 GNU/Linux
Comment by Maciej Mazur (mamciek) - Monday, 20 August 2012, 13:39 GMT
After further investigation I have found out that it not kernel upgrade
fault. LXC stopped working after upgrading systemd 187 -> 188
Comment by Dave Reisner (falconindy) - Monday, 20 August 2012, 14:00 GMT
You can work around this by remounting / as private (mount --make-rprivate /). It's supposedly a kernel bug that pivot_root fails on a shared mount, but it's not clear that there will be a fix. Would be better to have LXC fix this.

Loading...