Can not read/access VM Disk after physical server locked up

Andreas.

New Member
Dec 29, 2012
17
0
1
Hey guys


Is it possible to repair or get access to the files from the VM disk


I have proxmox running on my home server and today the server just locked up.


So I powered it off/on and all my VM's came back up except for one.


It was my server holding my data.


It has 2 drive, a 10GB and a 700GB drive. (These are not physical drives)


So when I booted back up the OS and data appears to be gone.


I re-installed OS (ubuntu) and tried to add the 700GB drive back on but it thinks its blank drive.


Is there any way to add/mount this 700GB drive and pull the data from the VM disk?





thank you
 
Hello Andreas

Is it possible to repair or get access to the files from the VM disk

....


Is there any way to add/mount this 700GB drive and pull the data from the VM disk?

Get access to a qcow2 image as follows (example VM 607 disk1 on local storage, mount partition 1 in /mnt/temp):

Code:
qemu-nbd --connect=/dev/nbd0 /var/lib/vz/images/607/vm-607-disk-1.qcow2
mount /dev/nbd0p1 /mnt/temp


For checking repair etc. use

Code:
qemu-img

Have a look at man-pages for more information!


Kind regards

Mr.Holmes