Answer the question
In order to leave comments, you need to log in
How to restore a container from an archive in Proxmox?
There are backups of the Zabbix container in Proxmox. After a power outage, the Zabbix container stopped working. When I try to restore from a backup, I get the following error:
Formatting '/var/lib/vz/images/100/vm-100-disk-1.raw', fmt=raw size=107374182400
mke2fs 1.44.5 (15-Dec-2018)
Discarding device blocks: 4096/26214400 done
Creating filesystem with 26214400 4k blocks and 6553600 inodes
Filesystem UUID: d1655f64-50c2-4bc0-b126-f0c1c1e71cbd
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Allocating group tables: 0/800 done
Writing inode tables: 0/800 done
Creating journal (131072 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/800 done
extracting archive '/mnt/pve/share/dump/vzdump-lxc-100-2021_03_03-10_21_24.tar.zst'
tar: ./var/spool/postfix/dev/urandom: Cannot mknod: Operation not permitted
tar: ./var/spool/postfix/dev/random: Cannot mknod: Operation not permitted
Total bytes read: 2426286080 (2.3GiB, 232MiB/s)
tar: Exiting with failure status due to previous errors
TASK ERROR: unable to restore CT 100 - 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/100/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
Answer the question
In order to leave comments, you need to log in
Remove the unprivileged flag when restoring, otherwise the device mapping will not be created.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question