[lxc-users] lxc-start is failing with error " lxc_conf - Invalid argument - pivot_root syscall failed"

linux developer linuxdeveloper7 at gmail.com
Fri Jan 24 08:27:04 UTC 2014


Hi All,

I am trying to run ubuntu on top of Android kernel using LXC.

When I started lxc container (./lxc-start -n ubuntu -f
/data/lxc/containers/ubuntu/config), following errors being generated

     lxc-start 1390550877.885 ERROR    lxc_conf - Invalid argument -
pivot_root syscall failed
      lxc-start 1390550877.886 ERROR    lxc_conf - failed to setup pivot root
      lxc-start 1390550877.886 ERROR    lxc_conf - failed to set
rootfs for 'ubuntu'
      lxc-start 1390550877.886 ERROR    lxc_start - failed to setup
the container
      lxc-start 1390550877.886 ERROR    lxc_sync - invalid sequence
number 1. expected 2
      lxc-start 1390550877.926 ERROR    lxc_start - failed to spawn 'ubuntu'
I will appreciated, If you can provide inputs to resolve this issue.


Here are some needed info and logs:
=========================

$sh lxc-version
lxc version: 1.0.0.alpha1

$busybox uname -a
Linux localhost 3.1.10-gfd8d03e-dirty #9 SMP PREEMPT Thu Jan 23
19:32:01 IST 2014 armv7l GNU/Linux

Logs:
      lxc-start 1390550877.833 WARN     lxc_log - lxc_log_init called
with log already initialized
      lxc-start 1390550877.835 WARN     lxc_start - inherited fd 9
      lxc-start 1390550877.836 WARN     lxc_start - inherited fd 10
      lxc-start 1390550877.836 INFO     lxc_apparmor - aa_enabled set to 0

      lxc-start 1390550877.844 DEBUG    lxc_conf - allocated pty
'/dev/pts/1' (5/6)
      lxc-start 1390550877.847 DEBUG    lxc_conf - allocated pty
'/dev/pts/2' (7/8)
      lxc-start 1390550877.848 DEBUG    lxc_conf - allocated pty
'/dev/pts/3' (11/12)
      lxc-start 1390550877.849 DEBUG    lxc_conf - allocated pty
'/dev/pts/4' (13/14)
      lxc-start 1390550877.849 INFO     lxc_conf - tty's configured
      lxc-start 1390550877.849 DEBUG    lxc_start - sigchild handler set
      lxc-start 1390550877.851 DEBUG    lxc_console - opening /dev/tty
for console peer
      lxc-start 1390550877.851 DEBUG    lxc_console - using '/dev/tty'
as console
      lxc-start 1390550877.851 DEBUG    lxc_console - 4613 got SIGWINCH fd 19
      lxc-start 1390550877.851 DEBUG    lxc_console - set winsz
dstfd:16 cols:0 rows:0
      lxc-start 1390550877.851 INFO     lxc_start - 'ubuntu' is initialized
      lxc-start 1390550877.855 DEBUG    lxc_start - Dropping cap_sys_boot

      lxc-start 1390550877.878 DEBUG    lxc_start - Dropped cap_sys_boot

      lxc-start 1390550877.878 INFO     lxc_conf - 'ubuntu' hostname
has been setup
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .88 88
0:1 / / rw,relatime - rootfs rootfs rw
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .89 88
0:12 / /dev rw,nosuid,relatime - tmpfs tmpfs rw,mode=755
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /dev.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .90 89
0:9 / /dev/pts rw,relatime - devpts devpts rw,mode=600,ptmxmode=000
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /dev/pts.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .91 89
0:18 / /dev/cpuctl rw,relatime - cgroup none rw,cpu
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /dev/cpuctl.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .92 88
0:3 / /proc rw,relatime - proc proc rw
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /proc.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .93 88
0:13 / /sys rw,relatime - sysfs sysfs rw
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /sys.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .94 93
0:5 / /sys/kernel/debug rw,relatime - debugfs debugfs rw
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /sys/kernel/debug.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .95 93
0:33 / /sys/fs/cgroup rw,relatime - tmpfs none rw
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is . /sys/fs/cgroup.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .96 95
0:34 / /sys/fs/cgroup/cpuset rw,relatime - cgroup cgroup
rw,cpuset,clone_children
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is .
/sys/fs/cgroup/cpuset.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .97 95
0:18 / /sys/fs/cgroup/cpu rw,relatime - cgroup cgroup rw,cpu
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is .
/sys/fs/cgroup/cpu.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .98 95
0:14 / /sys/fs/cgroup/cpuacct rw,relatime - cgroup cgroup rw,cpuacct
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is .
/sys/fs/cgroup/cpuacct.
      lxc-start 1390550877.879 INFO     lxc_conf - looking at .99 95
0:35 / /sys/fs/cgroup/memory rw,relatime - cgroup cgroup rw,memory
.
      lxc-start 1390550877.879 INFO     lxc_conf - now p is .
/sys/fs/cgroup/memory.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .100 95
0:36 / /sys/fs/cgroup/devices rw,relatime - cgroup cgroup rw,devices
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is .
/sys/fs/cgroup/devices.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .101 95
0:37 / /sys/fs/cgroup/freezer rw,relatime - cgroup cgroup rw,freezer
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is .
/sys/fs/cgroup/freezer.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .202 95
0:38 / /sys/fs/cgroup/blkio rw,relatime - cgroup cgroup rw,blkio
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is .
/sys/fs/cgroup/blkio.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .203 95
0:39 / /sys/fs/cgroup/perf_event rw,relatime - cgroup cgroup
rw,perf_event
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is .
/sys/fs/cgroup/perf_event.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .204 88
0:14 / /acct rw,relatime - cgroup none rw,cpuacct
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /acct.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .205 88
0:15 / /mnt/secure rw,relatime - tmpfs tmpfs rw,mode=700
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /mnt/secure.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .206 88
0:16 / /mnt/asec rw,relatime - tmpfs tmpfs rw,mode=755,gid=1000
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /mnt/asec.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .208 88
0:17 / /mnt/obb rw,relatime - tmpfs tmpfs rw,mode=755,gid=1000
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /mnt/obb.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .210 88
179:3 / /system rw,relatime - ext4
/dev/block/platform/sdhci-tegra.3/by-name/APP
rw,user_xattr,acl,barrier=1,data=ordered
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /system.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .212 88
179:4 / /cache rw,nosuid,nodev,noatime - ext4
/dev/block/platform/sdhci-tegra.3/by-name/CAC
rw,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /cache.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .214 88
179:9 / /data rw,nosuid,nodev,noatime - ext4
/dev/block/platform/sdhci-tegra.3/by-name/UDA
rw,errors=panic,user_xattr,acl,barrier=1,nomblk_io_submit,data=ordered
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is . /data.
      lxc-start 1390550877.880 INFO     lxc_conf - looking at .216 88
0:19 / /mnt/shell/emulated rw,nosuid,nodev,relatime - fuse /dev/fuse
rw,user_id=1023,group_id=1023,default_permissions,allow_other
.
      lxc-start 1390550877.880 INFO     lxc_conf - now p is .
/mnt/shell/emulated.
      lxc-start 1390550877.882 DEBUG    lxc_conf - mounted
'/data/lxc/containers/ubuntu/rootfs' on
'/usr/lib/arm-linux-gnueabihf/lxc'
      lxc-start 1390550877.882 INFO     lxc_conf - Mounting /dev under
/usr/lib/arm-linux-gnueabihf/lxc

      lxc-start 1390550877.883 INFO     lxc_conf - Mounted /dev under
/usr/lib/arm-linux-gnueabihf/lxc

      lxc-start 1390550877.883 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/arm-linux-gnueabihf/lxc//dev/pts', type 'devpts'
      lxc-start 1390550877.883 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/arm-linux-gnueabihf/lxc//proc', type 'proc'
      lxc-start 1390550877.883 DEBUG    lxc_conf - mounted 'none' on
'/usr/lib/arm-linux-gnueabihf/lxc//sys', type 'sysfs'
      lxc-start 1390550877.883 INFO     lxc_conf - mount points have been setup
      lxc-start 1390550877.883 INFO     lxc_conf - Creating initial
consoles under /usr/lib/arm-linux-gnueabihf/lxc/dev

      lxc-start 1390550877.884 INFO     lxc_conf - Populating /dev
under /usr/lib/arm-linux-gnueabihf/lxc

      lxc-start 1390550877.884 INFO     lxc_conf - Populated /dev
under /usr/lib/arm-linux-gnueabihf/lxc

      lxc-start 1390550877.884 INFO     lxc_conf - console has been setup
      lxc-start 1390550877.884 INFO     lxc_conf - 4 tty(s) has been setup
      lxc-start 1390550877.884 INFO     lxc_conf - rootfs path is
./data/lxc/containers/ubuntu/rootfs., mount is
./usr/lib/arm-linux-gnueabihf/lxc.
      lxc-start 1390550877.885 INFO     lxc_apparmor - I am 1,
/proc/self points to 1

      lxc-start 1390550877.885 DEBUG    lxc_conf - mountpoint for old
rootfs is '/usr/lib/arm-linux-gnueabihf/lxc/lxc_putold'
      lxc-start 1390550877.885 ERROR    lxc_conf - Invalid argument -
pivot_root syscall failed
      lxc-start 1390550877.886 ERROR    lxc_conf - failed to setup pivot root
      lxc-start 1390550877.886 ERROR    lxc_conf - failed to set
rootfs for 'ubuntu'
      lxc-start 1390550877.886 ERROR    lxc_start - failed to setup
the container
      lxc-start 1390550877.886 ERROR    lxc_sync - invalid sequence
number 1. expected 2
      lxc-start 1390550877.926 ERROR    lxc_start - failed to spawn 'ubuntu'


More information about the lxc-users mailing list