Hello!
I've this one container on a node with LVM storage that I now want to move to another node with ZFS storage.
Both the source and target are running PVE v7.1. The container is unprivileged on the source node.
Restore on the ZFS node fails with permissions denied. I can successfully restore it on the source node AND I can restore it on the destination node with --unprivileged 0.
Is there anything I can do to restore it as unprivileged on the destination node?
Configuration as backed up on the source:
/etc/subuid and /etc/subgid look identical on both nodes.
I've this one container on a node with LVM storage that I now want to move to another node with ZFS storage.
Both the source and target are running PVE v7.1. The container is unprivileged on the source node.
Restore on the ZFS node fails with permissions denied. I can successfully restore it on the source node AND I can restore it on the destination node with --unprivileged 0.
Is there anything I can do to restore it as unprivileged on the destination node?
Code:
$ pct restore 190 /var/lib/vz/dump/vzdump-lxc-190-2021_12_13-18_07_50.tar.zst --storage local-zfs
recovering backed-up configuration from '/var/lib/vz/dump/vzdump-lxc-190-2021_12_13-18_07_50.tar.zst'
restoring '/var/lib/vz/dump/vzdump-lxc-190-2021_12_13-18_07_50.tar.zst' now..
extracting archive '/var/lib/vz/dump/vzdump-lxc-190-2021_12_13-18_07_50.tar.zst'
tar: /var/lib/lxc/190/rootfs: Cannot open: Permission denied
tar: Error is not recoverable: exiting now
unable to restore CT 190 - 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/190/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
Configuration as backed up on the source:
Code:
arch: amd64
cores: 2
cpulimit: 1.5
hostname: hostname.domain.com
memory: 512
mp0: /dev/backup/backup,mp=/mnt/backup
net0: name=eth0,bridge=vmbr0,firewall=1,hwaddr=46:DA:CA:F6:6D:80,ip=dhcp,type=veth
onboot: 1
ostype: centos
rootfs: local-lvm:vm-190-disk-0,size=8G
swap: 0
unprivileged: 1
/etc/subuid and /etc/subgid look identical on both nodes.
Last edited: