On Veeam I used the 'instant restore' option to start VMs directly from backup, to e.g. test an nextcloud upgrade on a multi-TB VM, without restoring the VM.
In case someone did the same and is missing this possibility from PBS: It's easily possible to do this in PBS:
In case someone did the same and is missing this possibility from PBS: It's easily possible to do this in PBS:
- Create a new VM <NEWVMID> with the desired CPU/RAM/Network but without disks
- Map the disk(s) on the PVE
- proxmox-backup-client list --repository <pbs-server>:<datastore> | grep <VMID-to-run-from-backup>
- proxmox-backup-client map --repository <bps-server>:<datastore> "vm/<VMID>/<SNAPSHOTID from above>" drive-scsi0.img
- The mapped snapshot is readonly, so we only use it as backing for a new image
- mkdir -p /var/lib/vz/images/$NEWVMID
- qemu-img create -f qcow2 -b /dev/loop0 -F raw /var/lib/vz/images/$NEWVMID/vm-$NEWVMID-disk-0.qcow2
- Add the new disk to our VM
- qm set $NEWVMID --scsi0 local:$NEWVMID/vm-$NEWVMID-disk-0.qcow2
- Run VM, do stuff, shutdown VM
- Remove disk from VM
- qm unlink $NEWVMID --force --idlist scsi0
- Unmap disk
- proxmox-backup-client unmap /dev/loop0