VM Disk suddenly missing, VM still responsive/running

brigzzy

New Member
Sep 30, 2013
19
0
1
Hi All,

I'm running Proxmox 2.2-32.

I have a VM that had a failed backup last night. The backup failed with the error stating "Backup of VM 102 failed - volume 'lithium-vms:102/vm-102-disk-1.qcow2' does not exist"

I checked the mount on the Proxmox host, and the actual storage on the file server (Open Filer 2.99 exported via NFS) and the disk is indeed missing. I searched on both servers for vm-102-disk-1.qcow2 and cannot find it.

The really strange thing it that the VM is still running and the console is still responsive. I can RDP to it, and access it through the console.

My question is how can I recover this VM? Where did my disk go? Any assistance would be appreciated. Please let me know if I can provide any additional details to resolve this issue.

Thanks!
 
I saw this solution mentioned by udo on another topic: http://forum.proxmox.com/threads/14...ed-running-VM-with-WinSCP-how-to-rstore-image

So find out the process id of kvm on the host, issue a kill -stop process, then find the file descriptor of the image by issuing:
ls -l /proc/<procid>/fd
see which one shows vm-102-disk-1.qcow2

then issue for control: qemu-img info /proc/<procid>/fd/<number from previous cmd>
If it returns file-format: qcow2 then you can go on and issue:

qemu-img convert -p -f qcow2 -O raw /proc/<procid>/fd/<number> vm-102-disk-1.raw

( just issue this command somewhere you have space to store it in raw uncompressed format.. )
 
Last edited:
Would running a backup from the vm work? Disk2vhd for a image?

Sent from my MT27i using Tapatalk