[lxc-devel] Unable to launch a LXC container
Hemavathi Lakkalapudi
hemavathil at gmail.com
Wed Dec 7 05:06:06 UTC 2016
Hello All,
I am trying to run openWRT Chaos Calmer 15.05 with Malta in a LXC container
on MIPS based CPE.
Generated openWRT image with default configuration for MIPS target to run
in the container.
I created a container name maltab under /lxc and placed into the files
directory so it get integrated into the main GW image.
On GW image, LXC and its dependency packages are selected , image is
generated with maltab container and loaded on to the DUT. I can see
config,fstab and rootfs files under maltab .
When I tried to start the container, I am getting the following error. I
didn't do lxc-create as container is present under /lxc/maltab
lxc-start: sync.c: __sync_wait: 51 invalid sequence number 1. expected 2
lxc-start: start.c: __lxc_start: 1192 failed to spawn 'maltabe'
lxc-start: lxc_start.c: main: 344 The container failed to start.
I suspected issues with seccomp and then disabled seccomp package and
verified. Now the container is started with following errors. Please help
me to resolve these issues.
#######################################################################################################
root at ugwcpe:~# lxc-start -n maltabe -F -P /lxc -o /lxc/test6.log -l trace
[ 94.850000] device vethRIQKWJ entered promiscuous mode
[ 94.850000] IPv6: ADDRCONF(NETDEV_UP): vethRIQKWJ: link is not ready
[ 94.860000] br0: port 1(vethRIQKWJ) entered forwarding state
[ 94.870000] br0: port 1(vethRIQKWJ) entered forwarding state
[ 94.870000] br0: port 1(vethRIQKWJ) entered disabled state
[ 95.100000] IPv6: ADDRCONF(NETDEV_CHANGE): vethRIQKWJ: link becomes ready
[ 95.110000] br0: port 1(vethRIQKWJ) entered forwarding state
[ 95.110000] br0: port 1(vethRIQKWJ) entered forwarding state
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level
[ 99.540000] i2c-lantiq 16a00000.i2c: setup clocks (in 200000000 kHz, bus
100000 kHz,rmc =20 dec=50 10000000)
[ 100.040000] i2c-lantiq 16a00000.i2c: setup clocks (in 200000000 kHz, bus
100000 kHz,rmc =20 dec=50 10000000)
[ 100.790000] UBI error: ubi_open_volume: cannot open device 0, volume 8,
error -16
Dec 2 14:31:15 udevd[5749]: failed to execute '/sbin/blkid' '/sbin/blkid
-o udev -p /dev/loop1': No such file or directory
Dec 2 14:31:15 udevd[5748]: failed to execute '/sbin/blkid' '/sbin/blkid
-o udev -p /dev/loop0': No such file or directory
Dec 2 14:31:15 udevd[5752]: failed to execute '/sbin/blkid' '/sbin/blkid
-o udev -p /dev/ram0': No such file or directory
Please press Enter to activate this console.
[ 105.380000] overlayfs: ERROR - failed to whiteout '02-network'
[ 105.460000] overlayfs: ERROR - failed to whiteout '10_migrate-shadow'
[ 105.470000] overlayfs: ERROR - failed to whiteout '11_migrate-sysctl'
[ 105.560000] overlayfs: ERROR - failed to whiteout
'12_network-generate-ula'
[ 105.610000] overlayfs: ERROR - failed to whiteout '20_migrate-feeds'
[ 107.060000] br0: port 1(vethRIQKWJ) entered disabled state
[ 107.080000] br0: port 1(vethRIQKWJ) entered forwarding state
[ 107.080000] br0: port 1(vethRIQKWJ) entered forwarding state
#############################################################
When I check trace6.log file, the following error are observed but
container seems to be started.
lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1922 - cgroup 'devices.allow' set
to '
lxc_cgfs - cgfs.c:do_setup_cgroup_limits:1926 - cgroup has been setup
lxc_seccomp - seccomp.c:use_seccomp:527 - Seccomp is not enabled in the
kernel
lxc_start - start.c:start:1274 - exec'ing '/sbin/init'
lxc_start - start.c:post_start:1285 - '/sbin/init' started with pid '10135'
lxc_start - start.c:signal_handler:312 - invalid pid for SIGCHLD
lxc_start - start.c:signal_handler:316 - container init process exited
lxc_start - start.c:__lxc_start:1220 - Container halting
lxc_start - start.c:__lxc_start:1235 - Pushing physical nics back to host
names
lxc_start - start.c:__lxc_start:1238 - Tearing down virtual network devices
use
lxc_conf - conf.c:lxc_delete_network:3114 - failed to remove interface
'(null)'
lxc_error - error.c:lxc_error_set_and_log:55 - child <10135> ended on
signal (2
lxc_conf - conf.c:lxc_delete_network:3114 - failed to remove interface
'(null)'
#################################################################
The following issues are observed
· lxc-ls gives information about running containers . This is not
working currently.
· lxc-console command is not working as it doesn’t have information
about running containers.
Kindly please help me to resolve the above issues.
Regards,
Hema
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20161207/c1baa310/attachment-0001.html>
More information about the lxc-devel
mailing list