[lxc-users] Unable to launch a LXC container

Muneeb Ahmad muneeb.gandapur at gmail.com
Fri Apr 8 20:48:41 UTC 2016


I'm trying to run LXC containers on ubuntu mate 15.10 on a raspberry pi 2.
The LXD and LXD-client versions are 2.0.0.rc9. Whenever I try to launch a
container, I get this error:

error: Error calling 'lxd forkstart test02 /var/lib/lxd/containers
/var/log/lxd/test02/lxc.conf': err='exit status 1'

Try `lxc info --show-log test02` for more info

Any idea what's wrong? the container log shows few errors:

            lxc 20160409012147.844 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 231072
range 65536

            lxc 20160409012147.844 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 231072
range 65536

            lxc 20160409012312.827 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 231072
range 65536

            lxc 20160409012312.828 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 231072
range 65536

            lxc 20160409012313.000 INFO     lxc_start -
start.c:lxc_check_inherited:251 - closed inherited fd 3

            lxc 20160409012313.001 INFO     lxc_start -
start.c:lxc_check_inherited:251 - closed inherited fd 9

            lxc 20160409012313.019 INFO     lxc_container -
lxccontainer.c:do_lxcapi_start:797 - Attempting to set proc title to [lxc
monitor] /var/lib/lxd/containers test02

            lxc 20160409012313.020 INFO     lxc_utils -
utils.c:setproctitle:1460 - setting cmdline failed - Invalid argument

            lxc 20160409012313.023 INFO     lxc_start -
start.c:lxc_check_inherited:251 - closed inherited fd 9

            lxc 20160409012313.025 INFO     lxc_lsm - lsm/lsm.c:lsm_init:48
- LSM security driver nop

            lxc 20160409012313.026 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .reject_force_umount  # comment
this to allow umount -f;  not recommended.

            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:436 - Adding native rule for reject_force_umount
action 0

            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:do_resolve_add_rule:216 - Setting seccomp rule to reject force
umounts


            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .[all].

            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .kexec_load errno 1.

            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:436 - Adding native rule for kexec_load action
327681

            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .open_by_handle_at errno 1.

            lxc 20160409012313.027 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:436 - Adding native rule for open_by_handle_at
action 327681

            lxc 20160409012313.028 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .init_module errno 1.

            lxc 20160409012313.028 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:436 - Adding native rule for init_module action
327681

            lxc 20160409012313.028 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .finit_module errno 1.

            lxc 20160409012313.028 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:436 - Adding native rule for finit_module action
327681

            lxc 20160409012313.028 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:342 - processing: .delete_module errno 1.

            lxc 20160409012313.028 INFO     lxc_seccomp -
seccomp.c:parse_config_v2:436 - Adding native rule for delete_module action
327681

            lxc 20160409012313.029 INFO     lxc_conf -
conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook
/var/lib/lxd 11 start' for container 'test02', config section 'lxc'

            lxc 20160409012313.029 INFO     lxc_start -
start.c:lxc_check_inherited:251 - closed inherited fd 3

            lxc 20160409012313.030 INFO     lxc_start -
start.c:lxc_check_inherited:251 - closed inherited fd 9

            lxc 20160409012313.046 INFO     lxc_monitor -
monitor.c:lxc_monitor_sock_name:178 - using monitor sock name
lxc/d78a9d7e97b4b375//var/lib/lxd/containers

            lxc 20160409012313.235 DEBUG    lxc_start -
start.c:setup_signal_fd:289 - sigchild handler set

            lxc 20160409012313.239 DEBUG    lxc_console -
console.c:lxc_console_peer_default:473 - no console peer

            lxc 20160409012313.239 INFO     lxc_start -
start.c:lxc_init:488 - 'test02' is initialized

            lxc 20160409012313.240 ERROR    lxc_start -
start.c:must_drop_cap_sys_boot:647 - failed to clone (0x30000011): Invalid
argument (includes CLONE_NEWUSER)

            lxc 20160409012313.240 DEBUG    lxc_start -
start.c:__lxc_start:1297 - Dropping cap_sys_boot

            lxc 20160409012313.240 INFO     lxc_start -
start.c:resolve_clone_flags:999 - Cloning a new user namespace

            lxc 20160409012313.281 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 231072
range 65536

            lxc 20160409012313.282 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 231072
range 65536

            lxc 20160409012313.314 DEBUG    lxc_conf -
conf.c:instantiate_veth:2613 - instantiated veth 'vethB5EGMP/veth3U2D90',
index is '8'

            lxc 20160409012313.314 INFO     lxc_cgroup -
cgroup.c:cgroup_init:68 - cgroup driver cgroupfs-ng initing for test02

            lxc 20160409012313.322 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x7c020000): Invalid argument

            lxc 20160409012313.323 ERROR    lxc_start -
start.c:lxc_spawn:1123 - Invalid argument - failed to fork into a new
namespace

            lxc 20160409012313.393 ERROR    lxc_start -
start.c:__lxc_start:1329 - failed to spawn 'test02'

            lxc 20160409012313.393 INFO     lxc_conf -
conf.c:run_script_argv:367 - Executing script
'/usr/share/lxcfs/lxc.reboot.hook' for container 'test02', config section
'lxc'

            lxc 20160409012313.922 INFO     lxc_conf -
conf.c:run_script_argv:367 - Executing script '/usr/bin/lxd callhook
/var/lib/lxd 11 stop' for container 'test02', config section 'lxc'

            lxc 20160409012314.051 WARN     lxc_commands -
commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive
response

            lxc 20160409012314.051 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.051 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/systemd//lxc/test02

            lxc 20160409012314.051 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.051 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/devices//lxc/test02

            lxc 20160409012314.051 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.052 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/net_cls//lxc/test02

            lxc 20160409012314.052 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.052 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/cpuset//lxc/test02

            lxc 20160409012314.052 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.052 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/cpu//lxc/test02

            lxc 20160409012314.052 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.052 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/blkio//lxc/test02

            lxc 20160409012314.053 ERROR    lxc_namespace -
namespace.c:lxc_clone:67 - failed to clone (0x10000000): Invalid argument

            lxc 20160409012314.053 ERROR    lxc_cgfsng -
cgfsng.c:recursive_destroy:999 - Error destroying
/sys/fs/cgroup/freezer//lxc/test02

            lxc 20160409012314.055 WARN     lxc_commands -
commands.c:lxc_cmd_rsp_recv:172 - command get_cgroup failed to receive
response

            lxc 20160409012314.086 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 231072
range 65536

            lxc 20160409012314.086 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 231072
range 65536

            lxc 20160409012526.154 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 231072
range 65536

            lxc 20160409012526.154 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 231072
range 65536

            lxc 20160409012526.200 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type u nsid 0 hostid 231072
range 65536

            lxc 20160409012526.200 INFO     lxc_confile -
confile.c:config_idmap:1498 - read uid map: type g nsid 0 hostid 231072
range 65536
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20160409/54c3a35b/attachment-0001.html>


More information about the lxc-users mailing list