I encountered an error restoring an unprivileged LXC container with the nesting=1,keyctl=1 options set (for use with Docker). Here's the relevant part of the log:
I've tried restoring as a privileged container (it works), but adding
Code:
extracting archive '/tank0/enc/proxmox/dump/vzdump-lxc-105-2020_07_09-20_34_11.tar.zst'
tar: ./var/lib/docker/overlay2/83740d2e44ae84691ea534a7ea046219bbd8d06e15c75c5a1494024715989e1b/diff/usr/lib/python3.7/site-packages/Radicale-2.1.12.dist-info: Cannot mknod: Operation not permitted
Total bytes read: 4846110720 (4.6GiB, 240MiB/s)
tar: Exiting with failure status due to previous errors
Logical volume "vm-105-disk-0" successfully removed
TASK ERROR: unable to restore CT 105 - command 'lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - --zstd --totals --one-file-system -p --sparse --numeric-owner --acls --xattrs '--xattrs-include=user.*' '--xattrs-include=security.capability' '--warning=no-file-ignored' '--warning=no-xattr-write' -C /var/lib/lxc/105/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
I've tried restoring as a privileged container (it works), but adding
unprivileged: 1
into the .conf file means I'm no longer able to log in. Any ideas, short of dumping the container's data and creating a new one? Thanks.