Last active
July 10, 2018 14:02
-
-
Save geo-stanciu/8b6fbf78b9edda69b923b755e7d487f1 to your computer and use it in GitHub Desktop.
Convert Oracle VirtualBox Machines to vSphere / XEN
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Sources: | |
| https://jekil.sexy/blog/2015/this-ovf-package-requires-unsupported-hardware.html | |
| https://superuser.com/questions/245775/is-there-a-built-in-checksum-utility-on-windows-7/898377#898377 | |
| https://lukebarklimore.wordpress.com/2012/10/25/esxi-5-1-fixing-failed-to-deploy-ovf-package-the-task-was-canceled-by-a-user/ | |
| Download, install VMware Open Virtualization Format Tool (and put it in your path variable) | |
| https://communities.vmware.com/community/vmtn/server/vsphere/automationtools/ovf | |
| Now you can convert the OVA in an OVF | |
| ovftool.exe --lax source.ova destination.ovf | |
| Open the .OVF file in a text editor | |
| change | |
| <vssd:VirtualSystemType>virtualbox-2.2</vssd:VirtualSystemType> | |
| to | |
| <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType> | |
| change | |
| <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> | |
| to | |
| <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> | |
| Recalculate .OVF file SHA1 checksum (on Windows): | |
| certUtil -hashfile destination.ovf SHA1 | |
| For linuxtou can use: | |
| sha1sum destination.ovf | |
| Open the .MF file and change the SHA1 checksum for the ovf file with the new value. | |
| ------------------------------------------------------------------------------------- | |
| If on deploy, you get an error such as "Failed to deploy OVF package: The task was canceled by a user" | |
| you must open the ovf file again and search for the line: | |
| <rasd:ResourceSubType>vmware.cdrom.iso</rasd:ResourceSubType> | |
| and change it to: | |
| <rasd:ResourceSubType>vmware.cdrom.atapi</rasd:ResourceSubType> | |
| After this you must recalculate de sha1 of the ovf file again. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment