Good morning i am having an issue with Ubuntu 18.04 container i would launch it fresh and do updates after a restart it crashes and never boots until i reboot the host. here are the logs
root@games:~# lxc stop test
root@games:~# lxc start test
Error: Failed to run: /usr/lib/lxd/lxd forkstart test /var/lib/lxd/containers /var/log/lxd/test/lxc.conf:
Try `lxc info --show-log test` for more info
root@games:~# lxc start test
Error: Failed to run: /usr/lib/lxd/lxd forkstart test /var/lib/lxd/containers /var/log/lxd/test/lxc.conf:
Try `lxc info --show-log test` for more info
root@games:~# lxc info --show-log test
Name: test
Remote: unix://
Architecture: x86_64
Created: 2018/11/06 13:32 UTC
Status: Stopped
Type: persistent
Profiles: macvlan
Log:
lxc test 20181106133942.763 ERROR network - network.c:lxc_setup_netdev_in_child_namespaces:2918 - Device or resource busy - Failed to set network device "eth0" up
lxc test 20181106133942.763 ERROR network - network.c:lxc_setup_network_in_child_namespaces:3031 - failed to setup netdev
lxc test 20181106133942.763 ERROR conf - conf.c:lxc_setup:3530 - Failed to setup network
lxc test 20181106133942.763 ERROR start - start.c:do_start:1234 - Failed to setup container "test"
lxc test 20181106133942.763 ERROR sync - sync.c:__sync_wait:59 - An error occurred in another process (expected sequence number 5)
lxc test 20181106133942.763 ERROR lxccontainer - lxccontainer.c:wait_on_daemonized_start:840 - Received container state "ABORTING" instead of "RUNNING"
lxc test 20181106133942.763 ERROR start - start.c:__lxc_start:1910 - Failed to spawn container "test"
lxc 20181106133942.771 WARN commands - commands.c:lxc_cmd_rsp_recv:130 - Connection reset by peer - Failed to receive response for command "get_state"
i found a quick way to avoid the problem, instead of doing a “reboot now” in the container i exit the container then do a “lxc stop c1” and “lxc start c1” and it never crashes. but somehow reboot now does not let the container start again until the host reboots and this is only with the ubuntu:18.04 image every other image i can reboot just fine.