When restore vm backup disk was removed from vm

duda

New Member
Mar 28, 2023
6
0
1
hello,

i used this command to passthrough my hdd to my vm.
Code:
/sbin/qm set [VM-ID] -scsi0 /dev/disk/by-id/[DISK-ID]

so far so god,
but when i restore a backup of this vm, this drive was missing.
I run this command again to fix it.
 
A restore destroys the existing VM when restoring as the same VMID. Then it creates a new VM based on the backupped virtual disks. Passthroughed disks are not part of the backup, so they won't be part of the newly crated VM. Similar thing with virtual disks excluded from backup. Those also won't be attached to the restored VM but show up as a unattached disk.

But don't ask me why they did it that way. My guess would be that you could restore the VM on another node where that physical disk then might be missing so the VM won't refuse to start as the disk can't be found.
 
Last edited:
ok thanks,
is there a way to also backup the whole config of a vm? So after a restore of a backup i can reset the old config including discs?
 
The config file is already included in the backup archive.

How I solved it:
You can write a note to each VM. I added the "qm set ..." commands as a note. So after a restore I just copy the commands from the restored note and paste it into the PVE nodes shell to add them again.
 

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!