Do you want to open or run VirtualBox virtual machines in MS virtual PC? if yes, then it can be done after converting disk file VDI to VHD. MS Virtual PC doesn’t support VDI ( VirtualBox hard disk file), therefore it should be converted to VHD (MS Virtual Disk format). Here, I’m showing how to convert a Windows XP VM on VirtualBox to VHD and run it in Virtual PC.
No any third party software required for this conversion, VirtualBox built in command tool is enough. It’s very simple too. Windows 7 is my host in this example.
Follow the steps to convert VDI to VHD.
1) Always better to uninstall VB guest additions tools from virtual machine. This may cause issue on VPC.
2) VirtualBox snapshots keep separate VDI files for each machine. So if you convert the original base VDI file, you will not get the latest state of virtual machine. Also, you can’t convert snapshot VDI files separately. Therefore it’s recommended to delete snapshots, which will allow to merge current machine’s state to single original disk file.
Read more about snapshots and how to delete them
3) After completing above two steps, run the following command
vboxmanage clonehd WinXP.vdi F:\winxp.vhd --format VHD
WinXP.vdi – Working VM hard disk
F:\winxp.vhd – Destination and file name of VHD
The above command returned following error.
This is because of it is attached to one machine and listed in virtual media manager. Release and remove the disk from virtual media manager (Note – Do not remove the VDI file from physical hard disk).
Run the command again, which returned following successful VDI to VHD conversion message.
4) Now create a new machine and select correct Operating System ( Windows XP in this example) in Virtual PC. Choose existing disk option and browse the converted VHD file.
Power on machine. VPC will install some addition drivers for it’s platform. Restart the machine after completion, also install Virtual machine additions to get more display and performance improvement in MS virtual PC.
Here is the screenshot of running same virtual machine on both desktop virtualization software.
It hardly took 5 minutes to convert this working machine (2GB VDI) to Virtual PC. Some blogs and forums mentioned about third party software to convert VDI to VHD, but it can be done easily by VirtualBox command as shown here.
Do you face any difficulties? Feel free to share. If this information helpful then don’t miss to leave a comment.