Hyper-v VHD on VBox

Discussions about using Windows guests in VirtualBox.
Post Reply
williamx
Posts: 27
Joined: 18. Dec 2010, 05:58
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Ubuntu 10.10

Hyper-v VHD on VBox

Post by williamx »

Is there any way to add a Hyper-V Vhd to a VBox VM?

"i use the convertfromraw tool of VBoxManage and it appears to successful converted the HDD from VHD to VDI, but it wouldn't boot."
If you aren't in the path to become who you want to be, Then you are in the path to become who you don't want to be!!!
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Hyper-v VHD on VBox

Post by BillG »

I have never succeeded in getting a Hyper-V .vhd to boot in VirtualBox or WVPC (although other people claim to have done it).

The only method that works for me is to use sysinternals disk2vhd to clone the drive (after removing the integration components).
Bill
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Hyper-v VHD on VBox

Post by mpack »

williamx wrote:i use the convertfromraw tool of VBoxManage and it appears to successful converted the HDD from VHD to VDI, but it wouldn't boot.
Convertfromraw? A VHD is not a raw disk image.

All that convertfromraw does is take any old file you give it and wrap a VDI header around it, so of course it will "work". You can even mount the resulting drive in a VM and format it. What you can't do is access "the data", because unless you write your own sector level driver, you have nothing which can recognize the drive contents.

On a Windows host you should find the CloneVDI tool to be the easiest way to convert .VHD to .VDI, but note that converting the media may not make the contents VBox compatible.
williamx
Posts: 27
Joined: 18. Dec 2010, 05:58
Primary OS: Ubuntu other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows XP, Ubuntu 10.10

Re: Hyper-v VHD on VBox

Post by williamx »

Thanks where to download disk2vhd??
If you aren't in the path to become who you want to be, Then you are in the path to become who you don't want to be!!!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Hyper-v VHD on VBox

Post by Perryg »

mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Hyper-v VHD on VBox

Post by mpack »

Disk2VHD seems an odd choice for converting a disk image that's already in VHD format. I'm not aware of any variants of VHD that Hyper-v might be using which might be fixed by this procedure. ISTM this would just be an inefficient way of cloning the VHD. What the Hyper-V image might be doing is installing its equivalent of GAs, plus drivers for Hyper-v hardware. If so then neither of those issues would be fixed by Disk2VHD.
Post Reply