My proxmox host disk broken down, cannot boot, but can access on read only

wepx

New Member
Jan 18, 2025
3
2
3
Hi, yesterday my proxmox host disk are broken down, seems like a bad sector on the boot partition. it cant boot anymore but I still can access the file inside from another machine.
Luckily I saves all of my VM disk on another disk, so this disk only contains the proxmox host OS. I have backup but seems it is on the same disk (host OS disk), but not all is backed up..

I did reinstall proxmox on new SSD but I lost all of my VM config..
is there anyway to restore the VMs from the previous disk?
 
Mount your old disk "/" eg. to /net, then sqlite3 /net/var/lib/pve-cluster/config.db .dump > ~/oldpve.dump
Maybe you need /net/etc/network/* for restore sdn networks also.
 
Last edited:
  • Like
Reactions: wepx
Another possibility, install a new proxmox host on a new disk, connect the damaged disk afterwards to the new host, mount it and copy the VM's to your new disk, config files can be found in /etc/pve/qemu-server
 
Thanks for the help, I did dd the disk at the first time connects with my computer, but seems the corruption is already gone wild, so I decided to reinstall everything, got new ssd with new proxmox OS, doing manual backup by mounting each .raw and store it somewhere else, and literally recreating all of my VM..
but this time I configure backup on hetzner storage boxes..
anyway, lesson learned, and thankyou for all help given..
 
  • Like
Reactions: DBS and waltar