1

I am trying to download an image from my Google Compute Engine VM Instances in Google Cloud Platform and I'm following this article to export the image to a GCS Bucket and download it locally. I need to restore/import this image in an on-premises Hyper-V VM for testing purposes.

How can I virtualize a Hyper-V VM from a GCE image?

  • Does it not boot already? What problem did you have when you tried it? If you did not try it, then you need to do that first, before posting here. – Michael Hampton Oct 29 '18 at 14:31
  • I download the image in RAW format but i dont know how to virtualize in HyperV. – Hector Restrepo Jimenez Oct 29 '18 at 14:38
2

If the file you downloaded is a raw image of the virtual hard drive, then you will need to convert it to a VHD or VHDX first. The tools available in VirtualBox are a good fit for this situation.

VBoxManage.exe clonehd "diskimage.img" "diskimage.vhd" -format vhd

or

VBoxManage.exe clonehd "diskimage.img" "diskimage.vhdx" -format vhdx
  • I was under the impression that Hyper-V could use raw disk images directly? Is that not so? – Michael Hampton Oct 29 '18 at 14:46
  • You can use raw disks (aka a pass-through disk), but you can't use a raw disk image. – longneck Oct 29 '18 at 14:48
  • Well that's not very cash money... – Michael Hampton Oct 29 '18 at 14:50
  • Thanks. I downloaded the image and i converted it with VBoxManage convertdd – Hector Restrepo Jimenez Oct 29 '18 at 17:48

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.