Backup VM works, Lxc not

t_heinrich

New Member
May 24, 2021
17
0
1
43
Hello,

my backup target is a nfs share on my Synology.
I try to backup all my VM und LXC.
Backing up my VM (Win10) works fine, but I get errors for LXC.
Do you have a hint for me? :)

Regards Thomas

INFO: starting new backup job: vzdump 101 --mailnotification failure --node proxmox --compress lzo --storage proxmox --all 0 --quiet 1 --mode snapshot[COLOR=rgb(184, 49, 47)][/COLOR] INFO: Starting Backup of VM 101 (lxc) INFO: Backup started at 2021-05-24 06:53:07 INFO: status = running INFO: CT Name: UniFi INFO: including mount point rootfs ('/') in backup INFO: backup mode: snapshot INFO: ionice priority: 7 INFO: create storage snapshot 'vzdump' Logical volume "snap_vm-101-disk-0_vzdump" created. INFO: creating vzdump archive '/mnt/pve/proxmox/dump/vzdump-lxc-101-2021_05_24-06_53_07.tar.lzo' [B][COLOR=rgb(184, 49, 47)]INFO: tar: /mnt/pve/proxmox/dump/vzdump-lxc-101-2021_05_24-06_53_07.tmp: Cannot open: Permission denied INFO: tar: Error is not recoverable: exiting now[/COLOR][/B] INFO: cleanup temporary 'vzdump' snapshot Logical volume "snap_vm-101-disk-0_vzdump" successfully removed ERROR: Backup of VM 101 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/proxmox/dump/vzdump-lxc-101-2021_05_24-06_53_07.tmp' ./etc/vzdump/pct.conf ./etc/vzdump/pct.fw '--directory=/mnt/vzsnap0' --no-anchored '--exclude=lost+found' --anchored '--exclude=./tmp/?*' '--exclude=./var/tmp/?*' '--exclude=./var/run/?*.pid' ./ | lzop >/mnt/pve/proxmox/dump/vzdump-lxc-101-2021_05_24-06_53_07.tar.dat' failed: exit code 2 INFO: Failed at 2021-05-24 06:53:08 INFO: Backup job finished with errors TASK ERROR: job errors
 
Seems there is a permission problem on /mnt/pve/proxmox/. Please make sure user 'root' can access and write that mount point.
 
Hi Dietmar,
I use the same backup-job for my VM and this works without problems.
That's why I'm wondering.

Bildschirmfoto 2021-05-24 um 09.47.22.png
 
OK it seems that "my" problem is that I'm using "Unprivileged LXC containers".
I read that I should backup and reinstall the LXC container to change from unprivileged to privileged.
But I can't backup.
 
OK, I solved it with a local backup.
Then I put the local backup back and changed from unprivileged to privileged.
 

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!