VHD images generated by qemu-img are not accepted by Hyper-V

Solution Unverified - Updated -

Issue

We create VHD images with:

qemu-img create -f raw test.raw 1G
qemu-img convert -O vpc test.raw test.vhd

The resulting image cannot be mounted under Hyper-V:

Mount-VHD test.vhd

gives the error:

The file or directory is corrupted and unreadable. (0x80070570).

Environment

  • Red Hat Enterprise Linux 6
  • qemu-img

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content