LXD: Imported container doesn't start - Problem with ACLs

I am just trying to launch a container, which was created on an other machine. I’ve done this the following way:

$ lxc snapshot container_name snapshot_name
$ lxc publish container_name/snapshot_name --alias image_name
$ lxc image export image_name

Copied the image to the other host with scp, then:

$ lxc image import dd2fd708361...a125d0d5885.tar.gz --alias image_name

$ lxc launch image_name container_name

Unfortunately, launching the container fails with:

Failed to change ACLs on /var/lib/lxd/storage-pools/default/containers/$CONTAINERNAME/rootfs/var/lib/samba/sysvol

The container ran in privileged mode, it is running Samba and Bind.

Can somebody please assist?

Thanks in advance :slight_smile:

What version of LXD?

It is version 3.0.3 on Ubuntu 18.04 from the ubuntu-repos. Thank you for help.

Ok, so that’s a bug we fixed in the shifting logic since. 3.0.5 should probably get it, otherwise 4.0.0 definitely has it.

1 Like

Hi Stéphane,

thank you for your support. I’ve installed version 4.0 with snap and now everything works fine! :slight_smile:

Thanks again!