LXC Container will not start
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
lxc (Ubuntu) |
Invalid
|
Undecided
|
Unassigned |
Bug Description
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.
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,
# added by lxc-android-boot for /data
/dev/dm-10 /data ext4 noatime,
/system/vendor /vendor auto ro,bind 0 0
/system /var/lib/
/dev/dm-0 /webos ext4 ro,noatime,
/dev/dm-6 /sdcard vfat rw,errors=
root@ubuntu-
rm: cannot remove '/var/lib/
rm: cannot remove '/var/lib/
rm: cannot remove '/var/lib/
rm: cannot remove '/var/lib/
rm: cannot remove '/var/lib/
rm: cannot remove '/var/lib/
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/
lxc-start: failed to spawn 'android'
root@ubuntu-
lxc-start: command get_init_pid failed to receive response
I am running the pstore patch that has the bind optional fstab entry for pstore.