[Bug 1227092] [NEW] LXC Container will not start
Justin Shafer
1227092 at bugs.launchpad.net
Wed Sep 18 12:12:19 UTC 2013
Public bug reported:
I was able to run lxc version lxc_0.9.0-0ubuntu23 with Ubuntu Touch
running kernel version 2.6.35, without AppArmor or PSTORE , without
having a mountpoint sys/fs/security (security filesystem), with a cgroup
mount at startup patch!
But with lxc version lxc_1.0.0~alpha1-0ubuntu4 I get this error starting up:
I have also had to add this manually for my fstab as update-fstab does
not find my vendor partition, nor has it mounted /system under in my lxc
container rootfs, so I added it myself.
cat /etc/fstab
# override the forced fsck from /lib/init/fstab, we use a bindmount which confuses mountall
/dev/root / rootfs defaults 0 0
# swap file
/SWAP.swap none swap sw 0 0
# added by lxc-android-boot for /system
/dev/dm-8 /system ext4 ro,noatime,nodiratime,errors=remount-ro 0 0
# added by lxc-android-boot for /data
/dev/dm-10 /data ext4 noatime,nodiratime,errors=remount-ro 0 0
/system/vendor /vendor auto ro,bind 0 0
/system /var/lib/lxc/android/rootfs/system auto ro,bind 0 0
/dev/dm-0 /webos ext4 ro,noatime,nodiratime,errors=remount-ro 0 0
/dev/dm-6 /sdcard vfat rw,errors=remount-ro,uid=phablet,gid=phablet,noexec,umask=0000 0 0
root at ubuntu-phablet:/# lxc-start -n android
rm: cannot remove '/var/lib/lxc/android/rootfs/system/xbin/xargs': Read-only file system
rm: cannot remove '/var/lib/lxc/android/rootfs/system/xbin/xz': Read-only file system
rm: cannot remove '/var/lib/lxc/android/rootfs/system/xbin/xzcat': Read-only file system
rm: cannot remove '/var/lib/lxc/android/rootfs/system/xbin/yes': Read-only file system
rm: cannot remove '/var/lib/lxc/android/rootfs/system/xbin/zcat': Read-only file system
rm: cannot remove '/var/lib/lxc/android/rootfs/socket': Device or resource busy
cpio: system: Cannot change ownership to uid 0, gid 0: Read-only file system
cpio: system: Cannot change mode to rwxr-xr-x: Read-only file system
775 blocks
mount: No such file or directory
lxc-start: Operation not permitted - Error writing pid to /sys/fs/cgroup/ns//android/tasks to enter cgroup
lxc-start: failed to spawn 'android'
root at ubuntu-phablet:/# cat /var/log/upstart/lxc-android-config.log
lxc-start: command get_init_pid failed to receive response
** Affects: lxc (Ubuntu)
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of Ubuntu
Server Team, which is subscribed to lxc in Ubuntu.
https://bugs.launchpad.net/bugs/1227092
Title:
LXC Container will not start
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1227092/+subscriptions
More information about the Ubuntu-server-bugs
mailing list