Mount crashed vm image.

Hi all i migrated a win 2008 server image from kvm to ovirt about a month back, it has been running fine until yesterday when is crashed and wouldn't restart. i have tried booting from cd image and repairing the image and tried redoing the boot sectors but nothing seems to be working at this stage. my question is can i somehow mount this image as a partition or is there any other way to access the data on the image without the image being up and running so that i can retrieve the data on it? i have installed a new windows vm and re-installed the required apps, but need to get the user data from the crashed image now? rgds, grant. --- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

See my comments inline Regards, Maor ----- Original Message -----
From: "Grant Pasley" <grant@xtranet.com.au> To: users@ovirt.org Sent: Tuesday, August 12, 2014 7:35:59 AM Subject: [ovirt-users] Mount crashed vm image.
Hi all
i migrated a win 2008 server image from kvm to ovirt about a month back, it has been running fine until yesterday when is crashed and wouldn't restart. Did you created snapshots which you can recover from? i have tried booting from cd image and repairing the image and tried redoing the boot sectors but nothing seems to be working at this stage. my question is can i somehow mount this image as a partition or is there any other way to access the data on the image without the image being up and running so that i can retrieve the data on it? i have installed a new windows vm and re-installed the required apps, but need to get the user data from the crashed image now? You can try to detach the disk from the VM and attach it to another VM.
rgds,
grant.
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

This is a multi-part message in MIME format. --------------080302090106040004020107 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit On 08/12/2014 01:56 PM, Maor Lipchuk wrote:
See my comments inline
Regards, Maor
----- Original Message -----
From: "Grant Pasley" <grant@xtranet.com.au> To: users@ovirt.org Sent: Tuesday, August 12, 2014 7:35:59 AM Subject: [ovirt-users] Mount crashed vm image.
Hi all
i migrated a win 2008 server image from kvm to ovirt about a month back, it has been running fine until yesterday when is crashed and wouldn't restart. Did you created snapshots which you can recover from? i have tried booting from cd image and repairing the image and tried redoing the boot sectors but nothing seems to be working at this stage. my question is can i somehow mount this image as a partition or is there any other way to access the data on the image without the image being up and running so that i can retrieve the data on it? i have installed a new windows vm and re-installed the required apps, but need to get the user data from the crashed image now? You can try to detach the disk from the VM and attach it to another VM.
First check the image integrity by running "qemu-img check <image_path>" command against it. "qemu-img" also has option to correct the corruption if there is any. You can use "*libguestfs"* to access data from virtual machine (VM) disk images. for more information visit: http://libguestfs.org/ Thanks, Prasad Mukhedkar
rgds,
grant.
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--------------080302090106040004020107 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit <html> <head> <meta content="text/html; charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#FFFFFF" text="#000000"> <br> <div class="moz-cite-prefix">On 08/12/2014 01:56 PM, Maor Lipchuk wrote:<br> </div> <blockquote cite="mid:623986823.36732004.1407831995842.JavaMail.zimbra@redhat.com" type="cite"> <pre wrap="">See my comments inline Regards, Maor ----- Original Message ----- </pre> <blockquote type="cite"> <pre wrap="">From: "Grant Pasley" <a class="moz-txt-link-rfc2396E" href="mailto:grant@xtranet.com.au"><grant@xtranet.com.au></a> To: <a class="moz-txt-link-abbreviated" href="mailto:users@ovirt.org">users@ovirt.org</a> Sent: Tuesday, August 12, 2014 7:35:59 AM Subject: [ovirt-users] Mount crashed vm image. Hi all i migrated a win 2008 server image from kvm to ovirt about a month back, it has been running fine until yesterday when is crashed and wouldn't restart. </pre> </blockquote> <pre wrap="">Did you created snapshots which you can recover from? </pre> <blockquote type="cite"> <pre wrap="">i have tried booting from cd image and repairing the image and tried redoing the boot sectors but nothing seems to be working at this stage. my question is can i somehow mount this image as a partition or is there any other way to access the data on the image without the image being up and running so that i can retrieve the data on it? i have installed a new windows vm and re-installed the required apps, but need to get the user data from the crashed image now? </pre> </blockquote> <pre wrap="">You can try to detach the disk from the VM and attach it to another VM.</pre> </blockquote> <br> First check the image integrity by running "qemu-img check <image_path>" command <br> against it. "qemu-img" also has option to correct the corruption if there is any.<br> <br> You can use "<b>libguestfs"</b> to access data from virtual machine (VM) disk images. <br> for more information visit: <a class="moz-txt-link-freetext" href="http://libguestfs.org/">http://libguestfs.org/</a><br> <br> Thanks,<br> Prasad Mukhedkar<br> <blockquote cite="mid:623986823.36732004.1407831995842.JavaMail.zimbra@redhat.com" type="cite"> <pre wrap=""> </pre> <blockquote type="cite"> <pre wrap=""> rgds, grant. --- This email is free from viruses and malware because avast! Antivirus protection is active. <a class="moz-txt-link-freetext" href="http://www.avast.com">http://www.avast.com</a> _______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <pre wrap="">_______________________________________________ Users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Users@ovirt.org">Users@ovirt.org</a> <a class="moz-txt-link-freetext" href="http://lists.ovirt.org/mailman/listinfo/users">http://lists.ovirt.org/mailman/listinfo/users</a> </pre> </blockquote> <br> </body> </html> --------------080302090106040004020107--

thank you maor for your feedback, i will most certainly try your suggestion wrt attaching disk to another vm, i have googled a bit though on the process to do this and don't seem to be having much success. does anyone know where i can find the documentation for this process? unfortunately i did not get around to making a snapshot before the system crashed, so my only hope of retrieving the data is to attach and access the image from another vm. thanks, grant. On 8/12/2014 10:26 AM, Maor Lipchuk wrote:
See my comments inline
Regards, Maor
----- Original Message -----
From: "Grant Pasley" <grant@xtranet.com.au> To: users@ovirt.org Sent: Tuesday, August 12, 2014 7:35:59 AM Subject: [ovirt-users] Mount crashed vm image.
Hi all
i migrated a win 2008 server image from kvm to ovirt about a month back, it has been running fine until yesterday when is crashed and wouldn't restart. Did you created snapshots which you can recover from? i have tried booting from cd image and repairing the image and tried redoing the boot sectors but nothing seems to be working at this stage. my question is can i somehow mount this image as a partition or is there any other way to access the data on the image without the image being up and running so that i can retrieve the data on it? i have installed a new windows vm and re-installed the required apps, but need to get the user data from the crashed image now? You can try to detach the disk from the VM and attach it to another VM. rgds,
grant.
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com

I'm not sure there is such a document. this document might be related http://www.ovirt.org/Features/DetailedFloatingDisk You just need to do the following: Virtual Machines Main tab -> pick the VM -> Disks sub tab -< Pick the disk -> Press remove At that point you will be asked if you are sure, pick OK and be sure that Remove permanently is *not* picked After doing that this disk should be floating, means no VMs are using it. Then go to the new VM that you created -> go to its disks sub tab -> press the "Add" button in the dialog pick "Attach Disk", adn choose the disk you have just removed. Tell me if you encounter any problems in the way Regards, Maor ----- Original Message ----- From: "Grant Pasley" <grant@xtranet.com.au> To: "Maor Lipchuk" <mlipchuk@redhat.com> Cc: users@ovirt.org Sent: Wednesday, August 13, 2014 7:04:08 AM Subject: Re: [ovirt-users] Mount crashed vm image. thank you maor for your feedback, i will most certainly try your suggestion wrt attaching disk to another vm, i have googled a bit though on the process to do this and don't seem to be having much success. does anyone know where i can find the documentation for this process? unfortunately i did not get around to making a snapshot before the system crashed, so my only hope of retrieving the data is to attach and access the image from another vm. thanks, grant. On 8/12/2014 10:26 AM, Maor Lipchuk wrote:
See my comments inline
Regards, Maor
----- Original Message -----
From: "Grant Pasley" <grant@xtranet.com.au> To: users@ovirt.org Sent: Tuesday, August 12, 2014 7:35:59 AM Subject: [ovirt-users] Mount crashed vm image.
Hi all
i migrated a win 2008 server image from kvm to ovirt about a month back, it has been running fine until yesterday when is crashed and wouldn't restart. Did you created snapshots which you can recover from? i have tried booting from cd image and repairing the image and tried redoing the boot sectors but nothing seems to be working at this stage. my question is can i somehow mount this image as a partition or is there any other way to access the data on the image without the image being up and running so that i can retrieve the data on it? i have installed a new windows vm and re-installed the required apps, but need to get the user data from the crashed image now? You can try to detach the disk from the VM and attach it to another VM. rgds,
grant.
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
--- This email is free from viruses and malware because avast! Antivirus protection is active. http://www.avast.com
participants (3)
-
Grant Pasley
-
Maor Lipchuk
-
Prasad Mukhedkar