Sanity Check: Reinstall PVE with VM recovery

jppowers

Member
Apr 18, 2020
10
1
6
40
Hello!

I'm looking for a sanity check on a vague plan I'm making for a PVE reinstall on my homelab main server. (TL;DR at bottom)

Basically, when I originally deployed my main pve server, I had intended to setup a hypervisor, virtualized gaming PC, and file server all in one. I spec'd it with specific CPU's and did some CLI tuning/tweaks to try and get the most out of it, and for the most part it worked as I hoped but the gaming performance was crap. Since it didn't fully work I've build another pve host since the CPU's I spec'd were higher speed but lower core count but I wanted to spin up some more always-on VM's. I also have a Synology in another room I back up the file share and VM's to with pve's backup utility (file share is backed up with a basic rsync script).

Now, I've got a new dedicated file server on order that'll be running TrueNAS, side-grading my CPU's to higher core count but lower speed CPUs and going to expand/get bigger SSD's for the VM storage, and then going to repurpose the second pve host as a backup server (to replace the Synology).

Anyways, since my original plans were different I had made a bunch of silly changes to pve. I don't think they're hurting anything but they're not helping, either. With all these changes, I think it makes sense to do a fresh install of pve on the hypervisor and re-import the VM's. I had considered moving all the VM's to my second host then back when I was done, but I don't have the storage on it to support that. So, I need to back up and import. I think I understand this right, but since I already use PVE's backup feature, after I reinstall pve, re-attach the backup location, I can just restore from the backups and the VM's shouldn't really know the difference, right?

TL;DR: So, in short, as long as I have PVE backing up the VM's to a NFS host, if I reinstall PVE on the same box and just re-add the NFS storage location to the datacenter storage, I should be able to restore the VM's from the backups to the fresh install and ... everything's fine?
 
Yes, that's how it works.
If you change the storage name for the VM disks, you'll have to specify the target storage on restore. When selecting the backup storage's content view and clicking restore on a backup, you should see the option for VMID and target storage available in the dialog.
 
Last edited: