VM crashed - help to recover data needed

krystofr

Member
Dec 30, 2016
20
1
23
churchweb.uk
To cut a long story short. My VM crashed, and became unusable, The OS support couldn't get it to function properly and their efforts resulted in it failing to boot with a catologue of errors. Before the failed attempt to reboot, it was clear that the data I need from it (website domain files, and databases) were still present and at least appeared intact.

#pveversion pve-manager/6.4-9/5f5c0e3f (running kernel: 5.11.21-1-pve)
My proxmox installation is ZFS and the VM is EXT4 (I can't remember if it's LVM or standard - it's been running for years)

I can access the proxmox installation itself just fine, and have a new VM created to receive the files once I have recovered it.
I've followed instructions on other forum posts, but they don't seem to apply, as I can't figure out how to mount the partition/volume (sorry not good with these terms) I need.

Is this the right approach to mount the off-line VM, or should I be trying to load the VM using a live install CD (and then I have no idea how to get access to the files from the recovery prompt)

Can anyone help please?
 
You really should create backups. You can easily create a automated daily/weekly backup using proxmox's WebGUI so if something happens you can just a new VM from your yesterdays backup.

Do a backup of the VM now, so you can't damage anything more while rescuing data.
I would start the damaged VM, boot into the Live Linux of your choice, run fsck on the unmounted virtual disk and mount it afterwards so you can download it (I like WinSCP to browse and download stuff if SSH is enabled and you are using windows as a client).