<div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">Ok this did it (thanks to man page of setfacl). <br><br>/var/lib/lxd/lxc# getfacl am1 | setfacl --set-file=- am2<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">So somewhere the ACL are not being set properly by the lxc copy command. This is version 0.7.<br><br><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Jun 2, 2015 at 10:09 PM, Wajih Ahmed <span dir="ltr"><<a href="mailto:wajih.ahmed@gmail.com" target="_blank">wajih.ahmed@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div class="gmail_default" style="font-family:tahoma,sans-serif">I stop a container and then copy it as follows<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">lxc copy am1 am2<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">When i do lxc start am2 i see the following error<br><br>$ lxc start am2<br>error: starting the container failed<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">The new container's directory is missing an ACL as the "+" is missing.<br><br></div><div class="gmail_default" style="font-family:tahoma,sans-serif">Also here is the log<br><br>lxc_container 1433284577.743 INFO lxc_monitor - monitor.c:lxc_monitor_sock_name:177 - using monitor sock name lxc/92ea7555d42fc75c//var/lib/lxd/lxc<br> lxc_container 1433284577.744 INFO lxc_start - start.c:resolve_clone_flags:848 - Cloning a new user namespace<br> lxc_container 1433284577.747 DEBUG lxc_conf - conf.c:instantiate_veth:2685 - instantiated veth 'vethOXTIWH/veth19CJMA', index is '25'<br> lxc_container 1433284577.747 INFO lxc_cgroup - cgroup.c:cgroup_init:65 - cgroup driver cgmanager initing for am2<br> lxc_container 1433284577.782 DEBUG lxc_conf - conf.c:lxc_assign_network:3102 - move '(null)' to '9299'<br> lxc_container 1433284577.787 NOTICE lxc_start - start.c:do_start:667 - switching to gid/uid 0 in new user namespace<br> 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'<br> lxc_container 1433284577.790 ERROR lxc_conf - conf.c:setup_rootfs:1279 - failed to mount rootfs<br> lxc_container 1433284577.790 ERROR lxc_conf - conf.c:do_rootfs_setup:3712 - failed to setup rootfs for 'am2'<br> lxc_container 1433284577.790 ERROR lxc_conf - conf.c:lxc_setup:3794 - Error setting up rootfs mount after spawn<br> lxc_container 1433284577.790 ERROR lxc_start - start.c:do_start:699 - failed to setup the container<br> lxc_container 1433284577.791 ERROR lxc_sync - sync.c:__sync_wait:51 - invalid sequence number 1. expected 2<br> lxc_container 1433284577.791 WARN lxc_conf - conf.c:lxc_delete_network:2978 - failed to remove interface '(null)'<br> lxc_container 1433284577.791 ERROR lxc_start - start.c:__lxc_start:1164 - failed to spawn 'am2'<br> lxc_container 1433284577.791 WARN lxc_commands - commands.c:lxc_cmd_rsp_recv:172 - command get_init_pid failed to receive response<br> lxc_container 1433284577.792 WARN lxc_cgmanager - cgmanager.c:cgm_get:963 - do_cgm_get exited with error<br></div></div>
</blockquote></div><br></div>