First time using LXC (normally a VM guy) so this is a new issue for me. I spun up an Ubuntu/Emby container. Woohoo that worked. Took a snapshot and then stopped for the night. Over night my backup schedule ran and backed up the LXC without issue.
Next day I set up bind mounts of CIFS shares for my media as described in this post. That worked, Wooho again. Got all my media added to Emby, most of the configuration done, and tested hardware transcoding to make sure the host gpu is getting passed to the LXC properly. Then I decided I should get a baseline backup done before I screw anything up...but that backup failed. Hmmm. Tried to take a snapshot but it wasn't giving me an option to do that and it said "The current guest configuration does not support taking new snapshots". I tried to delete the one snapshot I had to see if it would let me and of course that worked so I don't have any snapshots anymore (boo). So something isn't right. I then tried a backup on a different VM running on the same host and that completed just fine so the backup process does work and it is able to write to both an NFS export and a PBS.
## /etc/pve/lxc/105.conf
arch: amd64
cores: 2
description: <div align='center'>%0A <a href='https%3A//Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>%0A <img src='https%3A//raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width%3A81px;height%3A112px;'/>%0A </a>%0A%0A <h2 style='font-size%3A 24px; margin%3A 20px 0;'>Emby LXC</h2>%0A%0A <p style='margin%3A 16px 0;'>%0A <a href='https%3A//ko-fi.com/community_scripts' target='_blank' rel='noopener noreferrer'>%0A <img src='https%3A//img.shields.io/badge/☕-Buy us a coffee-blue' alt='spend Coffee' />%0A </a>%0A </p>%0A %0A <span style='margin%3A 0 10px;'>%0A <i class="fa fa-github fa-fw" style="color%3A #f5f5f5;"></i>%0A <a href='https%3A//github.com/community-scripts/ProxmoxVE' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>GitHub</a>%0A </span>%0A <span style='margin%3A 0 10px;'>%0A <i class="fa fa-comments fa-fw" style="color%3A #f5f5f5;"></i>%0A <a href='https%3A//github.com/community-scripts/ProxmoxVE/discussions' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>Discussions</a>%0A </span>%0A <span style='margin%3A 0 10px;'>%0A <i class="fa fa-exclamation-circle fa-fw" style="color%3A #f5f5f5;"></i>%0A <a href='https%3A//github.com/community-scripts/ProxmoxVE/issues' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>Issues</a>%0A </span>%0A</div>%0A
dev0: /dev/dri/card0,gid=44
dev1: /dev/dri/renderD128,gid=104
features: keyctl=1,nesting=1
hostname: ct-ub-emby
memory: 2048
mp0: /mnt/LXC_Downloads-ro/,mp=/mnt/LXC_DownloadsYo,ro=1
mp1: /mnt/LXC_Movies-ro/,mp=/mnt/LXC_Movies,ro=1
mp2: /mnt/LXC_TVShows-ro/,mp=/mnt/LXC_TVShows,ro=1
mp3: /mnt/LXC_Podcasts-ro/,mp=/mnt/LXC_Podcasts,ro=1
mp4: /mnt/LXC_Emby_backup-rwx/,mp=/mnt/LXC_Backup
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:13:82:54,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: MSI-VM-Store:105/vm-105-disk-0.raw,size=8G
swap: 512
tags: community-script;media
unprivileged: 1
## backup to nfs job
INFO: starting new backup job: vzdump 105 --node msi-pve --notification-mode auto --mode stop --remove 0 --storage nfs-backy --notes-template '{{guestname}}' --compress 0
INFO: Starting Backup of VM 105 (lxc)
INFO: Backup started at 2025-04-19 19:25:01
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: ct-ub-emby
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('/mnt/LXC_DownloadsYo') from backup (not a volume)
INFO: excluding bind mount point mp1 ('/mnt/LXC_Movies') from backup (not a volume)
INFO: excluding bind mount point mp2 ('/mnt/LXC_TVShows') from backup (not a volume)
INFO: excluding bind mount point mp3 ('/mnt/LXC_Podcasts') from backup (not a volume)
INFO: excluding bind mount point mp4 ('/mnt/LXC_Backup') from backup (not a volume)
INFO: creating vzdump archive '/mnt/pve/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.tar'
INFO: tar: /mnt/pve/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
ERROR: Backup of VM 105 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/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.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' ./ >/mnt/pve/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.dat' failed: exit code 2
INFO: Failed at 2025-04-19 19:25:02
INFO: Backup job finished with errors
TASK ERROR: job errors
I was able to get a backup of the LXC back to the same storage it is hosted on so at least I have something. It's real weird that it is having permission issues to the normal backup locations that I use. Any ideas on what is going on here?
Next day I set up bind mounts of CIFS shares for my media as described in this post. That worked, Wooho again. Got all my media added to Emby, most of the configuration done, and tested hardware transcoding to make sure the host gpu is getting passed to the LXC properly. Then I decided I should get a baseline backup done before I screw anything up...but that backup failed. Hmmm. Tried to take a snapshot but it wasn't giving me an option to do that and it said "The current guest configuration does not support taking new snapshots". I tried to delete the one snapshot I had to see if it would let me and of course that worked so I don't have any snapshots anymore (boo). So something isn't right. I then tried a backup on a different VM running on the same host and that completed just fine so the backup process does work and it is able to write to both an NFS export and a PBS.
## /etc/pve/lxc/105.conf
arch: amd64
cores: 2
description: <div align='center'>%0A <a href='https%3A//Helper-Scripts.com' target='_blank' rel='noopener noreferrer'>%0A <img src='https%3A//raw.githubusercontent.com/community-scripts/ProxmoxVE/main/misc/images/logo-81x112.png' alt='Logo' style='width%3A81px;height%3A112px;'/>%0A </a>%0A%0A <h2 style='font-size%3A 24px; margin%3A 20px 0;'>Emby LXC</h2>%0A%0A <p style='margin%3A 16px 0;'>%0A <a href='https%3A//ko-fi.com/community_scripts' target='_blank' rel='noopener noreferrer'>%0A <img src='https%3A//img.shields.io/badge/☕-Buy us a coffee-blue' alt='spend Coffee' />%0A </a>%0A </p>%0A %0A <span style='margin%3A 0 10px;'>%0A <i class="fa fa-github fa-fw" style="color%3A #f5f5f5;"></i>%0A <a href='https%3A//github.com/community-scripts/ProxmoxVE' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>GitHub</a>%0A </span>%0A <span style='margin%3A 0 10px;'>%0A <i class="fa fa-comments fa-fw" style="color%3A #f5f5f5;"></i>%0A <a href='https%3A//github.com/community-scripts/ProxmoxVE/discussions' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>Discussions</a>%0A </span>%0A <span style='margin%3A 0 10px;'>%0A <i class="fa fa-exclamation-circle fa-fw" style="color%3A #f5f5f5;"></i>%0A <a href='https%3A//github.com/community-scripts/ProxmoxVE/issues' target='_blank' rel='noopener noreferrer' style='text-decoration%3A none; color%3A #00617f;'>Issues</a>%0A </span>%0A</div>%0A
dev0: /dev/dri/card0,gid=44
dev1: /dev/dri/renderD128,gid=104
features: keyctl=1,nesting=1
hostname: ct-ub-emby
memory: 2048
mp0: /mnt/LXC_Downloads-ro/,mp=/mnt/LXC_DownloadsYo,ro=1
mp1: /mnt/LXC_Movies-ro/,mp=/mnt/LXC_Movies,ro=1
mp2: /mnt/LXC_TVShows-ro/,mp=/mnt/LXC_TVShows,ro=1
mp3: /mnt/LXC_Podcasts-ro/,mp=/mnt/LXC_Podcasts,ro=1
mp4: /mnt/LXC_Emby_backup-rwx/,mp=/mnt/LXC_Backup
net0: name=eth0,bridge=vmbr0,hwaddr=BC:24:11:13:82:54,ip=dhcp,type=veth
onboot: 1
ostype: ubuntu
rootfs: MSI-VM-Store:105/vm-105-disk-0.raw,size=8G
swap: 512
tags: community-script;media
unprivileged: 1
## backup to nfs job
INFO: starting new backup job: vzdump 105 --node msi-pve --notification-mode auto --mode stop --remove 0 --storage nfs-backy --notes-template '{{guestname}}' --compress 0
INFO: Starting Backup of VM 105 (lxc)
INFO: Backup started at 2025-04-19 19:25:01
INFO: status = stopped
INFO: backup mode: stop
INFO: ionice priority: 7
INFO: CT Name: ct-ub-emby
INFO: including mount point rootfs ('/') in backup
INFO: excluding bind mount point mp0 ('/mnt/LXC_DownloadsYo') from backup (not a volume)
INFO: excluding bind mount point mp1 ('/mnt/LXC_Movies') from backup (not a volume)
INFO: excluding bind mount point mp2 ('/mnt/LXC_TVShows') from backup (not a volume)
INFO: excluding bind mount point mp3 ('/mnt/LXC_Podcasts') from backup (not a volume)
INFO: excluding bind mount point mp4 ('/mnt/LXC_Backup') from backup (not a volume)
INFO: creating vzdump archive '/mnt/pve/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.tar'
INFO: tar: /mnt/pve/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.tmp: Cannot open: Permission denied
INFO: tar: Error is not recoverable: exiting now
ERROR: Backup of VM 105 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/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.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' ./ >/mnt/pve/nfs-backy/dump/vzdump-lxc-105-2025_04_19-19_25_01.dat' failed: exit code 2
INFO: Failed at 2025-04-19 19:25:02
INFO: Backup job finished with errors
TASK ERROR: job errors
I was able to get a backup of the LXC back to the same storage it is hosted on so at least I have something. It's real weird that it is having permission issues to the normal backup locations that I use. Any ideas on what is going on here?