Restore schlägt fail Container

mathschut

Active Member
Sep 5, 2017
29
0
41
37
Hallo,

ich hoffe ihr könnt mir helfen. Ich wollte heute einen Container aus dem Backup zurücksichern. Dabei hat er den originalen Container gelöscht und dann versucht einen neuen aus dem Backup zurückzusichern. Leider fällt der Restore immer fail. Hat jemand eine Lösung für mich, die VM ist für mich sehr wichtig.

Using default stripesize 64.00 KiB.
Logical volume "vm-106-disk-0" created.
mke2fs 1.43.4 (31-Jan-2017)
Discarding device blocks: 4096/2359296 done
Creating filesystem with 2359296 4k blocks and 589824 inodes
Filesystem UUID: f3b1f3eb-8cd0-4ec5-b685-1729b381d872
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632

Allocating group tables: 0/72 done
Writing inode tables: 0/72 done
Creating journal (16384 blocks): done
Multiple mount protection is enabled with update interval 5 seconds.
Writing superblocks and filesystem accounting information: 0/72 done

extracting archive '/mnt/backup//dump/vzdump-lxc-106-2019_03_23-12_18_58.tar.gz'
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: 6741104640 (6.3GiB, 77MiB/s)
tar: Exiting with failure status due to previous errors
Logical volume "vm-106-disk-0" successfully removed
TASK ERROR: unable to restore CT 106 - command 'set -o pipefail && cstream -t 0 | lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar xpf - -z --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/106/rootfs --skip-old-files --anchored --exclude './dev/*'' failed: exit code 2
 
Restore den container als privilegierten Container - device-nodes sind in unprivilegierten containern nicht erlaubt.
 
Restore den container als privilegierten Container - device-nodes sind in unprivilegierten containern nicht erlaubt.
Ja da bin ich jetzt auch ein paar mal drüber gestolpert. Kommt man zuerst ja gar nicht schnell dahinter. Teilweise bekommt man Meldungen mit Permission Denied...

Es hat sich der Default in PVE geändert. Das Häckchen "unprivilegierten Container" ist default angehackt. Die Frage ist man da nicht was einbauen kann damit der Ottonormaluser mit bekommt das dieses Häckchen weg muss. Je nachdem was der Benutzer vorher für eine Containerart hatte.
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!