Skip to content

LXD containers wont start on Odroid C1 Ubuntu Linux - Operation not permitted - failed to remove sys_time capability #269

@digitalspider

Description

@digitalspider

LXD: https://linuxcontainers.org/lxd/getting-started-cli/

When I try to start an lxd container on Ubuntu 16.04 I get the following error:

$ lxc start alpine
error: Error calling 'lxd forkstart alpine /var/lib/lxd/containers /var/log/lxd/alpine/lxc.conf': err='exit status 1'
  lxc 20160216130334.855 ERROR lxc_conf - conf.c:setup_caps:2138 - Operation not permitted - failed to remove sys_time capability
  lxc 20160216130334.856 ERROR lxc_conf - conf.c:lxc_setup:3973 - failed to drop capabilities
  lxc 20160216130334.856 ERROR lxc_start - start.c:do_start:811 - Failed to setup container "alpine".
  lxc 20160216130334.856 ERROR lxc_sync - sync.c:__sync_wait:57 - An error occurred in another process (expected sequence number 3)
  lxc 20160216130334.915 ERROR lxc_start - start.c:__lxc_start:1346 - Failed to spawn container "alpine".
  lxc 20160216130335.514 ERROR lxc_conf - conf.c:run_buffer:405 - Script exited with status 1.
  lxc 20160216130335.514 ERROR lxc_start - start.c:lxc_fini:546 - Failed to run lxc.hook.post-stop for container "alpine".

My config:

# uname -a
Linux odr2 3.10.104-182 #1 SMP PREEMPT Tue Jan 31 23:12:12 UTC 2017 armv7l armv7l armv7l GNU/Linux
# cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.2 LTS (Xenial Xerus)"
...

After some research I found the issue is as per this:

The solution is as per:

Any chance this could be added to the next release of the Odroid linux kernel?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions