I’m copying an unprivileged container from default
/var/lib/lxc/ location to another with:
sudo lxc-copy -n xxx -N yyy --newpath=/mnt/xxx/yyy
but upon finishing the copy and lxc-starting it with:
sudo lxc-start -n xxx -f /run/media/xxx/yyy/config
it gets marked as privileged in lxc-ls
My initial assumption was because my first copy-target was an NTFS partition (hence everything is owned by root), but even on regular ext4 (inside a loop mounted raw img) it still marks the container as privileged afterwards, what could be the cause? my user is the owner of the ext4 img mount and subfolders.
If I try to lxc-copy to my own users home-folder that’s not mounted in any irregular way, it can’t start the container with a permission denied error, stating it failed to open rootfs.