{"action":"opened","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/2490","repository_url":"https://api.github.com/repos/lxc/lxd","labels_url":"https://api.github.com/repos/lxc/lxd/issues/2490/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/2490/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/2490/events","html_url":"https://github.com/lxc/lxd/issues/2490","id":182900379,"number":2490,"title":"Nested Container failed to start","user":{"login":"srkunze","id":1389648,"avatar_url":"https://avatars.githubusercontent.com/u/1389648?v=3","gravatar_id":"","url":"https://api.github.com/users/srkunze","html_url":"https://github.com/srkunze","followers_url":"https://api.github.com/users/srkunze/followers","following_url":"https://api.github.com/users/srkunze/following{/other_user}","gists_url":"https://api.github.com/users/srkunze/gists{/gist_id}","starred_url":"https://api.github.com/users/srkunze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/srkunze/subscriptions","organizations_url":"https://api.github.com/users/srkunze/orgs","repos_url":"https://api.github.com/users/srkunze/repos","events_url":"https://api.github.com/users/srkunze/events{/privacy}","received_events_url":"https://api.github.com/users/srkunze/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-10-13T21:03:29Z","updated_at":"2016-10-13T21:03:29Z","closed_at":null,"body":"I created a nested container but it failed to start. I wanted to test live migration from parent container to host lxd.\r\n\r\nAll distributions: Ubuntu 16.04, backend storage: dir, network: on for all.\r\n\r\n```\r\nroot@test:~# lxc launch ubuntu:16.04 inner-test\r\nCreating inner-test\r\nStarting inner-test\r\nerror: Error calling 'lxd forkstart inner-test /var/lib/lxd/containers /var/log/lxd/inner-test/lxc.conf': err='exit status 1'\r\n  lxc 20161013205248.986 ERROR lxc_utils - utils.c:safe_mount:1692 - Permission denied - Failed to mount proc onto /usr/lib/x86_64-linux-gnu/lxc/proc\r\n  lxc 20161013205248.987 ERROR lxc_conf - conf.c:lxc_mount_auto_mounts:743 - Permission denied - error mounting proc on /usr/lib/x86_64-linux-gnu/lxc/proc flags 14\r\n  lxc 20161013205248.987 ERROR lxc_conf - conf.c:lxc_setup:3732 - failed to setup the automatic mounts for 'inner-test'\r\n  lxc 20161013205248.987 ERROR lxc_start - start.c:do_start:834 - failed to setup the container\r\n  lxc 20161013205248.987 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)\r\n  lxc 20161013205248.987 ERROR lxc_start - start.c:__lxc_start:1354 - failed to spawn 'inner-test'\r\n\r\nTry `lxc info --show-log inner-test` for more info\r\nroot@test:~# lxc info --show-log inner-test\r\nName: inner-test\r\nArchitecture: x86_64\r\nCreated: 2016/10/13 20:52 UTC\r\nStatus: Stopped\r\nType: persistent\r\nProfiles: default\r\n\r\nLog:\r\n\r\n            lxc 20161013205248.872 INFO     lxc_start - start.c:lxc_check_inherited:252 - closed inherited fd 3\r\n            lxc 20161013205248.873 INFO     lxc_start - start.c:lxc_check_inherited:252 - closed inherited fd 8\r\n            lxc 20161013205248.877 INFO     lxc_container - lxccontainer.c:do_lxcapi_start:797 - Attempting to set proc title to [lxc monitor] /var/lib/lxd/containers inner-test\r\n            lxc 20161013205248.877 INFO     lxc_start - start.c:lxc_check_inherited:252 - closed inherited fd 8\r\n            lxc 20161013205248.877 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48 - LSM security driver AppArmor\r\n            lxc 20161013205248.877 INFO     lxc_seccomp - seccomp.c:use_seccomp:551 - Already seccomp-confined, not loading new policy\r\n            lxc 20161013205248.877 INFO     lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook /var/lib/lxd 1 start' for container 'inner-test', config section 'lxc'\r\n            lxc 20161013205248.879 INFO     lxc_start - start.c:lxc_check_inherited:252 - closed inherited fd 3\r\n            lxc 20161013205248.879 INFO     lxc_start - start.c:lxc_check_inherited:252 - closed inherited fd 8\r\n            lxc 20161013205248.882 INFO     lxc_monitor - monitor.c:lxc_monitor_sock_name:178 - using monitor sock name lxc/d78a9d7e97b4b375//var/lib/lxd/containers\r\n            lxc 20161013205248.916 DEBUG    lxc_start - start.c:setup_signal_fd:290 - sigchild handler set\r\n            lxc 20161013205248.917 DEBUG    lxc_console - console.c:lxc_console_peer_default:469 - no console peer\r\n            lxc 20161013205248.917 INFO     lxc_start - start.c:lxc_init:489 - 'inner-test' is initialized\r\n            lxc 20161013205248.917 DEBUG    lxc_start - start.c:__lxc_start:1327 - Not dropping cap_sys_boot or watching utmp\r\n            lxc 20161013205248.918 DEBUG    lxc_conf - conf.c:instantiate_veth:2615 - instantiated veth 'vethRW346O/vethEYPTWU', index is '6'\r\n            lxc 20161013205248.918 INFO     lxc_cgroup - cgroups/cgroup.c:cgroup_init:68 - cgroup driver cgroupfs-ng initing for inner-test\r\n            lxc 20161013205248.966 DEBUG    lxc_conf - conf.c:lxc_assign_network:3058 - move 'eth0' to '8625'\r\n            lxc 20161013205248.966 DEBUG    lxc_conf - conf.c:setup_rootfs:1215 - mounted '/var/lib/lxd/containers/inner-test/rootfs' on '/usr/lib/x86_64-linux-gnu/lxc'\r\n            lxc 20161013205248.966 INFO     lxc_conf - conf.c:setup_utsname:843 - 'inner-test' hostname has been setup\r\n            lxc 20161013205248.986 DEBUG    lxc_conf - conf.c:setup_hw_addr:2146 - mac address '00:16:3e:a4:f1:81' on 'eth0' has been setup\r\n            lxc 20161013205248.986 DEBUG    lxc_conf - conf.c:setup_netdev:2373 - 'eth0' has been setup\r\n            lxc 20161013205248.986 INFO     lxc_conf - conf.c:setup_network:2394 - network has been setup\r\n            lxc 20161013205248.986 INFO     lxc_conf - conf.c:mount_autodev:1072 - Mounting container /dev\r\n            lxc 20161013205248.986 INFO     lxc_conf - conf.c:mount_autodev:1095 - Mounted tmpfs onto /usr/lib/x86_64-linux-gnu/lxc/dev\r\n            lxc 20161013205248.986 INFO     lxc_conf - conf.c:mount_autodev:1113 - Mounted container /dev\r\n            lxc 20161013205248.986 ERROR    lxc_utils - utils.c:safe_mount:1692 - Permission denied - Failed to mount proc onto /usr/lib/x86_64-linux-gnu/lxc/proc\r\n            lxc 20161013205248.987 ERROR    lxc_conf - conf.c:lxc_mount_auto_mounts:743 - Permission denied - error mounting proc on /usr/lib/x86_64-linux-gnu/lxc/proc flags 14\r\n            lxc 20161013205248.987 ERROR    lxc_conf - conf.c:lxc_setup:3732 - failed to setup the automatic mounts for 'inner-test'\r\n            lxc 20161013205248.987 ERROR    lxc_start - start.c:do_start:834 - failed to setup the container\r\n            lxc 20161013205248.987 ERROR    lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)\r\n            lxc 20161013205248.987 WARN     lxc_conf - conf.c:lxc_delete_network:2919 - failed to remove interface 6 'eth0'\r\n            lxc 20161013205248.987 ERROR    lxc_start - start.c:__lxc_start:1354 - failed to spawn 'inner-test'\r\n            lxc 20161013205249.022 INFO     lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/share/lxcfs/lxc.reboot.hook' for container 'inner-test', config section 'lxc'\r\n            lxc 20161013205249.531 INFO     lxc_conf - conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook /var/lib/lxd 1 stop' for container 'inner-test', config section 'lxc'\r\n            lxc 20161013205249.548 WARN     lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response\r\n            lxc 20161013205249.548 WARN     lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive response\r\n\r\n```"}}
{"actor":{"display_login":"srkunze"}}