As, I was installing my FreePBX server with Asterisk. I decided to move the installed virtual machine on Virtualbox to VMware Esxi Server. So, it will be running non-stop. It took me lot of time and research to accomplish this task. Even it seem fairly easy. That’s why, I would like share with you guys.
How to convert VirtualBox OVA to Vsphere OVF
I am running my vm machine Esixi server 5.0 and Virtualbox 4.2.6
I moving Debian Virtual Machine.
Tool need to complete this tasks :
1. Vware OVF Tool : http://communities.vmware.com/community/vmtn/server/vsphere/automationtools/ovf (It is FREE to download but you need have a VMware account )
2. Microsoft Checksum Verify utility : http://support.microsoft.com/kb/841290 (Need to check SHA1)
3. Text editor Notepad or any other tools : I prepare Notepad++
First of all, export your virtual machine from Virtualbox. Give the location for the file and save as ova file
After, Install the VMware OVF Tool. I am using the version 3.0.1
Once, the file has been created and the tool is installed.
Open the command line and navigate to the OVF tool folder.
Type the command below : ovftool.exe –lax <source.ova> <destination.ovf> Do not forget the option –lax
You can conslut the guide for this tool at : http://www.vmware.com/support/developer/ovf/ovf301/ovftool-301-userguide.pdf
ovftool.exe –lax “C:\Users\ygotame\Desktop\Asterix Now.ova” “C:\Users\ygotame\Desktop\Asterix Now.ovf”
Once the command is complete, you will see three files :
1. Asterix Now.mf SHA1 Info File
2. Asterix Now.ovf Configuration file
3. Asterix Now-disk.vmdk Virtual Hard drive
Now open, Vsphere client and click to deploy ovf file.
Give the OVF file location and try to upload to the server.
You might this error : Unsupported hardware family virtualbox-2.2
Error: OVF Package is not supported by target: Line 25: Unsupported hardware family 'virtualbox-2.2'.
If it is the case for you, open the ovf file with your favorite text editor.
And, change the line :
To avoid the error message : Line 66: OVF hardware element ‘ResourceType’ with instance ID ‘5’: No support for the virtual hardware device type ’20’
In the same file, modify the item Instance 5:
Save the change and try again to deploy
At this time, you will get the error saying the file fail the control of integrity and could be corrupted. As the vpshere sever check the <file>.mf to verify the integrity. We will modify that to make sure the correct information is enter.
For that, download the Microsoft toll that I mention above and extract the file where you prepare. I will dump it at C:\Temp
Now, we need to find out new SHA1 key for <file>.ovf because we made some change. Therefore, open command line and navigate to the place where you had extracted the Microsoft tool.
Execute the command : fciv.exe -sha1 <filename.ovf>
fciv.exe C:\Users\ygotame\Desktop\ItSecure\OVF file new SHA1.png
Now, copy the new SHA1 key 51bd98… and open <filename>.mf
Paste the new value in the file and save it.
Once that has been done, try one more time to deploy the vm machine. This time, it should be working without any issue.
That’s all for now folks.
If you have any other issue or need more information. Leave a comment below. I will be happy to assist you.
Disclaimer: All work shared in this post is property of IT Secure Net