Xen Client VM to work with Oracle Virtual Box

To convert my Xen Client VM to Oracle Virtual Box I did the following:
UPDATE : 30 March 2017
A more easier way is to export the VM in the normal way that will export a system.vhd file.

Now just Extract the system.vhd to a folder on the PC. Go then to Oracle Virtual Box, select new VM
NewVM

Make sure you select Use Existing Virtual Hard Disk and browse to the system.vhd.

Click on the Create VM. After that BEFORE YOU RUN IT, go to settings and ADD an IDE controller.
After that add the system.vhd to the IDE controller and remove it from the SATA Controller.
it should look like:
Storage Settings VM

Save and start the VM,it should work fine.

I have exported my Windows 7 Xen Client VM using XenConvert XenConvert_Install2.5.exe.
Although this is used for P2V I used it to convert my Xen Virtual Machine to Open Virtualization Format.
Note this will ask you to specify the type and select Open Virtualization Format.

When the process is done you will end up with YourVirtualMachineName.ova, if you try to import into Virtual Box you will get an error:

The Appliance YourVirtualMachineName.ova could not be imported.
Document labelled UTF-16 but has UTF-8 content.
Location: ‘YourVirtualMachineName.ova’, line 1 (0), column 36.

Details:
Error code: VBOX_E_FILE_ERROR (0x80BB0004)
Component: Appliance
Interface: IAppliance {SOMEXXXXXNUMBER}

Now I untarred the .ova by typing tar -xvf YourVirtualMachineName.ova on your linux console. (Maybe try 7zip if you are running windows).

This will leave you with a YourVirtualMachineName.vhd. You can use one of the many Other Links on the internet to see how to import a VHD to virtual box. Now the problem is when you start it, it starts up and then a quick blue screen flash and it dies. Mine gave Stop error code 0x0000007B I think…

To solve this stop the virtual machine. Go to the Storage settings. Delete the SATA Controller with the attached VHD disk. Dont delete the disk though just the connection to the SATA. Then go and create a new IDE controller. Add the Virtual Disk YourVirtualMachineName.vhd and remember to also add an CD Rom. Whola!

Leave a Reply

Your email address will not be published. Required fields are marked *


CAPTCHA Image
Reload Image