Regarding the recovery of VMs after reinstalling the Proxmox 7.4 system

winwingmgm

New Member
Mar 28, 2024
7
1
3
My system version is Proxmox 7.4. The data disk is mounted in "Directory" mode with the XFS filesystem, located at /mnt/pve/ssd-data. I store some VMs in ssd-data, using the qcow2 disk format.
If I need to reinstall the system on this server, what configuration files should I back up in advance to ensure a quick recovery of my VMs?

After reinstalling the system, how can I remount the old ssd-data without losing any data?
 
Save /etc/* which includes your pve, fstab and network configs which is all you need.
As long as you did not install a new pve on the drive which is now mounted as "ssd-data" drive all will stay there unchanged and ready to reuse.
 
Thank you very much for your reply. In my Proxmox VE 7 system, the OS boot drive and the VM data disk are separate physical devices. If I need to reconnect the SSD (ssd-data) containing the old VMs, is restoring the /etc/pve/storage.cfg file sufficient?
 
Thank you everyone for your help!
Concerned that directly using version 8.4 might cause compatibility issues during restoration, I decided to stick with the original version 7.4.
After restoring the following three files, both the old hard drive and virtual machines were successfully recovered and can now boot up normally:
/etc/systemd/system/mnt-pve-ssd\x2ddata.mount #systemctl start mnt-pve-ssd\x2ddata.mount
/etc/pve/storage.cfg
/etc/pve/qemu-server/*
 
  • Like
Reactions: waltar