[lxc-users] Error "failed to get real path for .." starting copied container

Wajih Ahmed wajih.ahmed at gmail.com
Wed Jun 3 02:09:16 UTC 2015


I stop a container and then copy it as follows

lxc copy am1 am2

When i do lxc start am2 i see the following error

$ lxc start am2
error: starting the container failed

The new container's directory is missing an ACL as the "+" is missing.

Also here is the log

lxc_container 1433284577.743 INFO     lxc_monitor -
monitor.c:lxc_monitor_sock_name:177 - using monitor sock name
lxc/92ea7555d42fc75c//var/lib/lxd/lxc
  lxc_container 1433284577.744 INFO     lxc_start -
start.c:resolve_clone_flags:848 - Cloning a new user namespace
  lxc_container 1433284577.747 DEBUG    lxc_conf -
conf.c:instantiate_veth:2685 - instantiated veth 'vethOXTIWH/veth19CJMA',
index is '25'
  lxc_container 1433284577.747 INFO     lxc_cgroup -
cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for am2
  lxc_container 1433284577.782 DEBUG    lxc_conf -
conf.c:lxc_assign_network:3102 - move '(null)' to '9299'
  lxc_container 1433284577.787 NOTICE   lxc_start - start.c:do_start:667 -
switching to gid/uid 0 in new user namespace
  lxc_container 1433284577.790 ERROR    lxc_conf - conf.c:mount_rootfs:872
- Permission denied - failed to get real path for
'/var/lib/lxd/lxc/am2/rootfs'
  lxc_container 1433284577.790 ERROR    lxc_conf - conf.c:setup_rootfs:1279
- failed to mount rootfs
  lxc_container 1433284577.790 ERROR    lxc_conf -
conf.c:do_rootfs_setup:3712 - failed to setup rootfs for 'am2'
  lxc_container 1433284577.790 ERROR    lxc_conf - conf.c:lxc_setup:3794 -
Error setting up rootfs mount after spawn
  lxc_container 1433284577.790 ERROR    lxc_start - start.c:do_start:699 -
failed to setup the container
  lxc_container 1433284577.791 ERROR    lxc_sync - sync.c:__sync_wait:51 -
invalid sequence number 1. expected 2
  lxc_container 1433284577.791 WARN     lxc_conf -
conf.c:lxc_delete_network:2978 - failed to remove interface '(null)'
  lxc_container 1433284577.791 ERROR    lxc_start -
start.c:__lxc_start:1164 - failed to spawn 'am2'
  lxc_container 1433284577.791 WARN     lxc_commands -
commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive
response
  lxc_container 1433284577.792 WARN     lxc_cgmanager -
cgmanager.c:cgm_get:963 - do_cgm_get exited with error
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.linuxcontainers.org/pipermail/lxc-users/attachments/20150602/6d98ef90/attachment.html>


More information about the lxc-users mailing list