(Thanks to Jeff Cody for both writing the code and helping me to get it to work).
New in qemu 1.5 is read-only support for Hyper-V‘s native disk format, vhdx. You can now open vhdx files in libguestfs just like any other:
$ guestfish --ro --format=vhdx -a /tmp/f18x64.vhdx -i
Welcome to guestfish, the guest filesystem shell for
editing virtual machine filesystems and disk images.
Type: 'help' for help on commands
'man' to read the manual
'quit' to quit the shell
Operating system: Fedora release 18 (Spherical Cow)
/dev/fedora/root mounted on /
/dev/sda1 mounted on /boot
Notes:
- As stated above, you will need the very latest qemu for this to work.
- You must specify
--format=vhdxat the moment because of a missing feature in libvirt. - You must specify
--robecause writing is not supported (by the qemu driver).
