Ok, this is a .qcow2 Windows 2012 VM with VirtIO drivers. I have a very important database running in it, if I could only recover that DB it would be great.
The VM was running fine but then I decided to transfer it to another node. This other node is not Proxmox based so I couldn't use the new Proxmox backup tool (which generates .vma files) so I used this command to make a backup:
dd if=/var/lib/vz/images/402/vm-402-disk-1.raw | gzip | dd of=/var/lib/vz/images/402/vm-402-disk-1.gz bs=4096
I forgot to shutdown the VM before I executed the command above, so I stopped the dd process. Then I decided to forget about DD and just use the Proxmox's backup tool instead because I found a tutorial teaching how to convert the .vma backups to .tgz. Since we can set the backup mode to "Stop", I didn't shut the VM down, and asked the backup tool to do it for me.
The backup tool couldn't shutdown the VM by itself, so the backup failed.
This is the log that Proxmox generated before my VM got screwed..:
Sep 04 00:38:25 INFO: Starting Backup of VM 402 (qemu)
Sep 04 00:38:25 INFO: status = running
Sep 04 00:38:28 INFO: backup mode: stop
Sep 04 00:38:28 INFO: bandwidth limit: 60000 KB/s
Sep 04 00:38:28 INFO: ionice priority: 7
Sep 04 00:38:28 INFO: stopping vm
Sep 04 00:48:29 INFO: VM quit/powerdown failed - got timeout
Sep 04 00:48:29 ERROR: Backup of VM 402 failed - command 'qm shutdown 402 --skiplock --keepActive --timeout 600' failed: exit code 255
Then I opened the console of that VM and the VM was trying to boot but showing this message: boot failed: not a bootable disk after failed backup
I restarted the VM several times, using write back, write back (unsafe), write through, no cache, and nothing works.
I tried to mount the .qcow2 image but I failed. I converted the .qcow2 to .raw, downloaded ntfs-3g so debian could recognize the ntfs partitions and tried to mount the .raw image and it failed too. I tried running both Windows 2012 and Windows 7 isos and tried to repair the Windows installation but both failed too.
Is there any way I could at least access the files inside the image??? I had a firebird database running in it, I just need to recover a 3gb .FDB file so I can restore it in a new VM.
Help
Thanks.
Edit: I loaded the Windows 7 ISO and it shows that my drive has 120gb of free space in 120gb of unallocated space.. does it mean that I lost everything ???????? :/
Linux disk utility shows this: http://d.pr/i/pZuF
Is there anything I can do to try to recover the files??
The VM was running fine but then I decided to transfer it to another node. This other node is not Proxmox based so I couldn't use the new Proxmox backup tool (which generates .vma files) so I used this command to make a backup:
dd if=/var/lib/vz/images/402/vm-402-disk-1.raw | gzip | dd of=/var/lib/vz/images/402/vm-402-disk-1.gz bs=4096
I forgot to shutdown the VM before I executed the command above, so I stopped the dd process. Then I decided to forget about DD and just use the Proxmox's backup tool instead because I found a tutorial teaching how to convert the .vma backups to .tgz. Since we can set the backup mode to "Stop", I didn't shut the VM down, and asked the backup tool to do it for me.
The backup tool couldn't shutdown the VM by itself, so the backup failed.
This is the log that Proxmox generated before my VM got screwed..:
Sep 04 00:38:25 INFO: Starting Backup of VM 402 (qemu)
Sep 04 00:38:25 INFO: status = running
Sep 04 00:38:28 INFO: backup mode: stop
Sep 04 00:38:28 INFO: bandwidth limit: 60000 KB/s
Sep 04 00:38:28 INFO: ionice priority: 7
Sep 04 00:38:28 INFO: stopping vm
Sep 04 00:48:29 INFO: VM quit/powerdown failed - got timeout
Sep 04 00:48:29 ERROR: Backup of VM 402 failed - command 'qm shutdown 402 --skiplock --keepActive --timeout 600' failed: exit code 255
Then I opened the console of that VM and the VM was trying to boot but showing this message: boot failed: not a bootable disk after failed backup
I restarted the VM several times, using write back, write back (unsafe), write through, no cache, and nothing works.
I tried to mount the .qcow2 image but I failed. I converted the .qcow2 to .raw, downloaded ntfs-3g so debian could recognize the ntfs partitions and tried to mount the .raw image and it failed too. I tried running both Windows 2012 and Windows 7 isos and tried to repair the Windows installation but both failed too.
Is there any way I could at least access the files inside the image??? I had a firebird database running in it, I just need to recover a 3gb .FDB file so I can restore it in a new VM.
Help
Thanks.
Edit: I loaded the Windows 7 ISO and it shows that my drive has 120gb of free space in 120gb of unallocated space.. does it mean that I lost everything ???????? :/
Linux disk utility shows this: http://d.pr/i/pZuF
Is there anything I can do to try to recover the files??
Last edited: