Monday, 9 July 2018

Converting Virualbox to Vmware Esxi


1.     Converting Virualbox  to Vmware Esxi

1.1.    Power off virtual machine
1.2.    From virtualbox menu click file -> Export Appliance
1.3.    You will be presented with virual machine export dialog as shown in the figure below
1.4.     
1.5.    Select machine you want to export and click next
1.6.    You will be presented with storage setting as shown in the figure below
1.7.   

1.8.    Please select make sure to  mark checkbox Write manifest file and click next
1.9.    You will be presented with appliance setting as shown in the figure below
1.10.

1.11.Click export to export the virtual machine
1.12.Congratulation you have successfully export virtual machine.

2.     Deploying OVA to vmware ESXI

2.1.    Open vmware vsphere client
2.2.    Click file->Deploy OVF template
2.3.    Browse your formhub.ova file and click next
2.4.    The system raise error as shown in the figure below
2.5.   
2.6.    Extract formhub.ova file using 7z
2.7.    You will get  the following files
a.       formhub-disk001.vmdk
b.      formhub.ovf
c.       formhub.mf
2.8.    Now open foumhub.ovf using notepad
2.9.  And change Change the following line:
<vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType>
to
<vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>
2.10.Remove the following line
  <Item>
        <rasd:AddressOnParent>3</rasd:AddressOnParent>
        <rasd:AutomaticAllocation>false</rasd:AutomaticAllocation>
        <rasd:Caption>sound</rasd:Caption>
        <rasd:Description>Sound Card</rasd:Description>
        <rasd:ElementName>sound</rasd:ElementName>
        <rasd:InstanceID>6</rasd:InstanceID>
        <rasd:ResourceSubType>ensoniq1371</rasd:ResourceSubType>
        <rasd:ResourceType>35</rasd:ResourceType>
    </Item>
2.11.Change the following line
2.12.              Change this:
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Caption>sataController0</rasd:Caption>
<rasd:Description>SATA Controller</rasd:Description>
<rasd:ElementName>sataController0</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceSubType>AHCI</rasd:ResourceSubType>
<rasd:ResourceType>20</rasd:ResourceType>
</Item>
2.13.              with:
<Item>
<rasd:Address>0</rasd:Address>
<rasd:Caption>SCSIController</rasd:Caption>
<rasd:Description>SCSI Controller</rasd:Description>
<rasd:ElementName>SCSIController</rasd:ElementName>
<rasd:InstanceID>5</rasd:InstanceID>
<rasd:ResourceSubType>lsilogic</rasd:ResourceSubType>
<rasd:ResourceType>6</rasd:ResourceType>
</Item>
2.       Now  open formhub.mf file
3.       Remove line shown below which will be used for checksum of formhub.ovf . Since formhub.ovf file is change checksum is different
 SHA1 (formhub.ovf) = 15d2f22b24990179e414df556fe4a2e4697caee7
2.14.Now you are ready to import the virtual machine to vmware
2.15.Open vmware vsphere client and click file->Deploy OVF template
2.16.Select formhub.ovf you have updated and click next
2.17.You will be presented with the following warnining
2.18.
2.19.Please ignore and click yes
2.20.Now deployment will be started
2.21.After installation is completed you might get disk error
2.22.Login using root and run fsck  on terminal
2.23.Restart and everything will be working fine