[TUTORIAL] How to setup PBS as a VM in Unraid and uses Virtiofs to passthrough shares

Did you manage to solve this problem?
I would guess it has to do with the mover if you are using a cache drive. I would suggest to people using this method to backup to either setup the backup folder for PBS onto an unassigned device (its a backup, so no need to be on array), or if you want redundancy, I have setup cache pools with BTRFS mirrors for doing this kind of thing. The mover tends to break NFS shares as well (which is how I manage many remote backups). So either put directly on the Array (slow as we all know in unRAID), or its own drive/mirror.
 
I'm going to join the chorus and say thank you for this guide! Amazingly helpful!
 
Thank you for this guide!

for future users using unraid 6.12.6 or newer: follow part one and go to part 2 - step 15 without creating the vm. All the xml configuration is done by default by selecting virtio as the unraid share after creating the VM the first time around.
 
If I already have PBS installed as a VM on my Proxmox node, does it make sense to do all of this (to move PBS from Proxmox to Unraid), rather than just make a new share on Unraid and mount it to the PBS?
 
Thank you for the great tutorial. Any idea how i get past this?
View attachment 66238
Your VM is booting but you have not given it any boot "disk" you need to add the Proxmox Backup Server ISO to your ISO folder and then add it as the #1 boot disk in the vm settings. this should get you to the proxmox setup page, complete wizard.
Then you need to go back to the VM edit page and change boot order again to set the Vdisk as boot #1 and set iso as #2 or just remove the iso from the mount selection.
 
just followed the guide, joined here o say thank you.

currently working and no issues. backing up a test vm in my homelab as i type this message.
 
How does I use the unraid mount from within the proxmox backup server?

Got it to work properly but only lxc snapshots are working, vm backups fail always:

ERROR: VM 100 qmp command 'backup' failed - backup register image failed: command error: ENODEV: No such device
INFO: aborting backup job
INFO: resuming VM again
ERROR: Backup of VM 100 failed - VM 100 qmp command 'backup' failed - backup register image failed: command error: ENODEV: No such device
INFO: Failed at 2024-07-08 17:10:02
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors

Any tipps?
 
Last edited:
How does I use the unraid mount from within the proxmox backup server?

Got it to work properly but only lxc snapshots are working, vm backups fail always:

ERROR: VM 100 qmp command 'backup' failed - backup register image failed: command error: ENODEV: No such device
INFO: aborting backup job
INFO: resuming VM again
ERROR: Backup of VM 100 failed - VM 100 qmp command 'backup' failed - backup register image failed: command error: ENODEV: No such device
INFO: Failed at 2024-07-08 17:10:02
INFO: Backup job finished with errors
INFO: notified via target `mail-to-root`
TASK ERROR: job errors

Any tipps?
Mine also started to fail some days ago.

Have you updated to Unraid 7.0 Beta? I did and i think issues started from there. Containers working fine, but VMs running into problems.
 
Mine also started to fail some days ago.

Have you updated to Unraid 7.0 Beta? I did and i think issues started from there. Containers working fine, but VMs running into problems.
Yep, I already updated to Unraid 7.0 Beta and startet from there. Switched to the docker Container from the App Store in Unraid an its working as expected.
 
Yep, I already updated to Unraid 7.0 Beta and startet from there. Switched to the docker Container from the App Store in Unraid an its working as expected.


Where you able to use your existing backup storage or have you started from scratch?
 
Where you able to use your existing backup storage or have you started from scratch?
I just started with setting up an PBS, so I had not really build up an important backup store, so it was easy for me to just try the docker version.
 
First of all: this guide worked great!
Posting a problem that spontaniously appeared days ago + my solution below so others can benefit.

---

My setup somehow started to fail some days ago. It appears to be on the PBS end: it does not see "pbs" as a directory.
Running Unraid 6.12.11 and BPS (Proxmox Backup Server) 3.2-4 ..

If you see one of these problems:

A. In PVE (Proxmox Virtual Engine) a backup fails with this error in the log:

Code:
INFO: creating Proxmox Backup Server archive 'vm/102/2024-08-08T05:00:28Z'
INFO: starting kvm to execute backup task
ERROR: VM 102 qmp command 'backup' failed - backup connect failed: command error: unable to create backup group "/mnt/backup_proxmox/pbs/vm/102" - Not a directory (os error 20)
INFO: aborting backup job

B. In PBS (Proxmox Backup Server) a backup fails with this error in the log:

Code:
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating Proxmox Backup Server archive 'vm/102/2024-08-08T05:00:48Z'
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
ERROR: VM 105 qmp command 'backup' failed - backup connect failed: command error: unable to create backup group "/mnt/backup_proxmox/pbs/vm/102" - Not a directory (os error 20)
INFO: aborting backup job

C. On PBS console, the folder is apparently not recognized as a folder anymore:

Code:
root@pbs:/mnt/backup_proxmox/pbs# ls
ls: cannot open directory '.': Not a directory

D. As a result of the above, in PVE (or PBS) the webinterface can show an error 400/500 when navigating the Storage/Backups screens.

Try these steps:
  • On PVE > datacenter > Storage remove and add the PBS storage.
  • On PVE > datacenter > Backups edit and re-select this PBS storage.
  • Reboot both PBS and PVE.
These steps allowed me to trigger manual backup jobs in PVE.
I found that other systems (or the NAS/Unraid itself) can browse this folder without problems, so thats why I expect the problem to be in the VM or BPS itself.

Cause unknown to me:

No settings have not been altered, the backup just stopped working days ago. Might be after I updated PVE/PBS packages ..?
Insights welcome.
 
Last edited:

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!