virtualbox to vmware

Make the VM on Virtual Box then export applicance.

This will create an OVA file, which if you try and import VSphere will reject with some nasty error.

This is becuase there is a reference to a VirtualBox HardDrive in the OVA file.

Hack the OVA File !!

We need to expand the OVA file

mkdir hova
cd hova
tar -xav ../Centos.ova

Now look for this type of line

<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>

In my current file it looks like this

<VirtualHardwareSection>
      <Info>Virtual hardware requirements for a virtual machine</Info>
      <System>
        <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
        <vssd:InstanceID>0</vssd:InstanceID>
        <vssd:VirtualSystemIdentifier>Centos-ES-test</vssd:VirtualSystemIdentifier>
        <vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
      </System>
      <Item>

Now change the string virtualbox-2.2 to vmx-07

So it looks like this now

<Info>Virtual hardware requirements for a virtual machine</Info>
      <System>
        <vssd:ElementName>Virtual Hardware Family</vssd:ElementName>
        <vssd:InstanceID>0</vssd:InstanceID>
        <vssd:VirtualSystemIdentifier>Centos-ES-test</vssd:VirtualSystemIdentifier>
        <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
      </System>

Manifest

If you created a Manifest file (I usually do not) then you will need to remove the SHA1 digest

It looks something like this

SHA1 (MyVM.ovf)= 15d2f22b24990179e414df556fe4a2e4697caee7

Just delete the line !!

Make a new OVF file

tar -cvf ../Centos-ES-test-HACK.ova  *