On a completely fresh install of Proxmox VE 5.1, I'm unable to create unprivileged containers from templates and creating backups. I get permission errors when I try.
The issue with creating the containers seems to be that templates gets saved with root ownership and strict permissions that doesn't allow the unprivileged user related to the unprivileged container to read it. This is explained in a few more details on my post on reddit which I cannot neither link to or post a direct screendump of as this forum won't allow that. Remove the spaces: i.imgur. com/ IFwcxkf.png
Another issue is that I'm unable to create backups of unprivileged containers. I guess this is also some variation of the issue described above. This is the log outputted:
I'm unsure how to go about this. I can find plenty of people on google having these issues, but no solutions.
Suggestions would be very much appreciated
The issue with creating the containers seems to be that templates gets saved with root ownership and strict permissions that doesn't allow the unprivileged user related to the unprivileged container to read it. This is explained in a few more details on my post on reddit which I cannot neither link to or post a direct screendump of as this forum won't allow that. Remove the spaces: i.imgur. com/ IFwcxkf.png
Another issue is that I'm unable to create backups of unprivileged containers. I guess this is also some variation of the issue described above. This is the log outputted:
INFO: starting new backup job: vzdump 100 --storage nas01-backup --remove 0 --node pxmx01 --mode snapshot --compress 0
INFO: Starting Backup of VM 100 (lxc)
INFO: status = running
INFO: CT Name: unifi
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: unifi
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/26112/root// to /mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp
INFO: Number of files: 27,336 (reg: 20,913, dir: 2,327, link: 4,066, special: 30)
INFO: Number of created files: 27,335 (reg: 20,913, dir: 2,326, link: 4,066, special: 30)
INFO: Number of deleted files: 0
INFO: Number of regular files transferred: 20,904
INFO: Total file size: 1,700,831,267 bytes
INFO: Total transferred file size: 1,693,646,152 bytes
INFO: Literal data: 1,693,646,378 bytes
INFO: Matched data: 0 bytes
INFO: File list size: 589,789
INFO: File list generation time: 0.001 seconds
INFO: File list transfer time: 0.000 seconds
INFO: Total bytes sent: 1,695,622,527
INFO: Total bytes received: 423,831
INFO: sent 1,695,622,527 bytes received 423,831 bytes 21,068,898.86 bytes/sec
INFO: total size is 1,700,831,267 speedup is 1.00
INFO: first sync finished (80 seconds)
INFO: suspend vm
INFO: starting final sync /proc/26112/root// to /mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp
INFO: Number of files: 27,336 (reg: 20,913, dir: 2,327, link: 4,066, special: 30)
INFO: Number of created files: 0
INFO: Number of deleted files: 0
INFO: Number of regular files transferred: 3
INFO: Total file size: 1,700,831,492 bytes
INFO: Total transferred file size: 1,070,804 bytes
INFO: Literal data: 5,789 bytes
INFO: Matched data: 1,065,015 bytes
INFO: File list size: 0
INFO: File list generation time: 0.001 seconds
INFO: File list transfer time: 0.000 seconds
INFO: Total bytes sent: 680,375
INFO: Total bytes received: 8,892
INFO: sent 680,375 bytes received 8,892 bytes 196,933.43 bytes/sec
INFO: total size is 1,700,831,492 speedup is 2,467.59
INFO: final sync finished (3 seconds)
INFO: resume vm
INFO: vm is online again after 3 seconds
INFO: creating archive '/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tar'
INFO: tar: ./etc/vzdump/pct.conf: Cannot stat: Permission denied
INFO: tar: ./etc/vzdump: Cannot open: Permission denied
INFO: tar: ./home/admdanni/.bash_history: Cannot open: Permission denied
INFO: tar: ./var/cache/apt/archives/partial: Cannot open: Permission denied
INFO: tar: ./var/lib/apt/lists/partial: Cannot open: Permission denied
INFO: tar: ./var/lib/postfix/master.lock: Cannot open: Permission denied
INFO: tar: ./var/lib/unifi: Cannot open: Permission denied
INFO: tar: ./var/log/unifi: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/active: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/bounce: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/corrupt: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/defer: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/deferred: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/flush: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/hold: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/incoming: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/maildrop: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/private: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/public: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/saved: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/trace: Cannot open: Permission denied
INFO: Total bytes written: 1299312640 (1.3GiB, 28MiB/s)
INFO: tar: Exiting with failure status due to previous errors
ERROR: Backup of VM 100 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --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' --one-file-system '--warning=no-file-ignored' '--directory=/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp' ./etc/vzdump/pct.conf '--directory=/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' . >/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.dat' failed: exit code 2
INFO: Backup job finished with errors
TASK ERROR: job errors
INFO: Starting Backup of VM 100 (lxc)
INFO: status = running
INFO: CT Name: unifi
INFO: mode failure - some volumes do not support snapshots
INFO: trying 'suspend' mode instead
INFO: backup mode: suspend
INFO: ionice priority: 7
INFO: CT Name: unifi
INFO: temporary directory is on NFS, disabling xattr and acl support, consider configuring a local tmpdir via /etc/vzdump.conf
INFO: starting first sync /proc/26112/root// to /mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp
INFO: Number of files: 27,336 (reg: 20,913, dir: 2,327, link: 4,066, special: 30)
INFO: Number of created files: 27,335 (reg: 20,913, dir: 2,326, link: 4,066, special: 30)
INFO: Number of deleted files: 0
INFO: Number of regular files transferred: 20,904
INFO: Total file size: 1,700,831,267 bytes
INFO: Total transferred file size: 1,693,646,152 bytes
INFO: Literal data: 1,693,646,378 bytes
INFO: Matched data: 0 bytes
INFO: File list size: 589,789
INFO: File list generation time: 0.001 seconds
INFO: File list transfer time: 0.000 seconds
INFO: Total bytes sent: 1,695,622,527
INFO: Total bytes received: 423,831
INFO: sent 1,695,622,527 bytes received 423,831 bytes 21,068,898.86 bytes/sec
INFO: total size is 1,700,831,267 speedup is 1.00
INFO: first sync finished (80 seconds)
INFO: suspend vm
INFO: starting final sync /proc/26112/root// to /mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp
INFO: Number of files: 27,336 (reg: 20,913, dir: 2,327, link: 4,066, special: 30)
INFO: Number of created files: 0
INFO: Number of deleted files: 0
INFO: Number of regular files transferred: 3
INFO: Total file size: 1,700,831,492 bytes
INFO: Total transferred file size: 1,070,804 bytes
INFO: Literal data: 5,789 bytes
INFO: Matched data: 1,065,015 bytes
INFO: File list size: 0
INFO: File list generation time: 0.001 seconds
INFO: File list transfer time: 0.000 seconds
INFO: Total bytes sent: 680,375
INFO: Total bytes received: 8,892
INFO: sent 680,375 bytes received 8,892 bytes 196,933.43 bytes/sec
INFO: total size is 1,700,831,492 speedup is 2,467.59
INFO: final sync finished (3 seconds)
INFO: resume vm
INFO: vm is online again after 3 seconds
INFO: creating archive '/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tar'
INFO: tar: ./etc/vzdump/pct.conf: Cannot stat: Permission denied
INFO: tar: ./etc/vzdump: Cannot open: Permission denied
INFO: tar: ./home/admdanni/.bash_history: Cannot open: Permission denied
INFO: tar: ./var/cache/apt/archives/partial: Cannot open: Permission denied
INFO: tar: ./var/lib/apt/lists/partial: Cannot open: Permission denied
INFO: tar: ./var/lib/postfix/master.lock: Cannot open: Permission denied
INFO: tar: ./var/lib/unifi: Cannot open: Permission denied
INFO: tar: ./var/log/unifi: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/active: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/bounce: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/corrupt: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/defer: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/deferred: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/flush: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/hold: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/incoming: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/maildrop: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/private: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/public: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/saved: Cannot open: Permission denied
INFO: tar: ./var/spool/postfix/trace: Cannot open: Permission denied
INFO: Total bytes written: 1299312640 (1.3GiB, 28MiB/s)
INFO: tar: Exiting with failure status due to previous errors
ERROR: Backup of VM 100 failed - command 'set -o pipefail && lxc-usernsexec -m u:0:100000:65536 -m g:0:100000:65536 -- tar cpf - --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' --one-file-system '--warning=no-file-ignored' '--directory=/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp' ./etc/vzdump/pct.conf '--directory=/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.tmp' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' . >/mnt/pve/nas01-backup/dump/vzdump-lxc-100-2018_03_13-18_00_09.dat' failed: exit code 2
INFO: Backup job finished with errors
TASK ERROR: job errors
I'm unsure how to go about this. I can find plenty of people on google having these issues, but no solutions.
Suggestions would be very much appreciated