From VirtualBox to VmWare VM

export vm from VirtualBox

VBoxManage export "VMNAME" -o "VMNAME.ova"

convert vm into VmWare format

ovftool --lax "VMNAME.ova" "VMNAME.ovf"

edit ovf file to change virtual system type:

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

to <vssd:VirtualSystemType>vmx-07</vssd:VirtualSystemType>

edit ovf file to update SATA controller with a SCSI controller:

from

<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>

remove file “VMNAME.mf”

import now vmdk into ESXi and after use SSH to access into shell. Now convert vmdk into ESXi format using:

vmkfstools -i VMDISK.vmdk  -d thin VMDISK-ESXi.vmdk

after use vi editor to edit disk

vi VMDISK-ESXi.vmdk

to update ddb.adapterType from ide to lsilogic:

ddb.adapterType = "lsilogic"

During boot you need to regenerate initramfs (in CentOS or Red Hat) using rescue kernel configuration and launch dracut command:

dracut -f /boot/initramfs-<KERNEL>.img <KERNEL>

es: dracut -f /boot/initramfs-4.1.13-100.fc21.x86_64.img 4.1.13-100.fc21.x86_64

after install vmware tools but first you need to install dependencies

yum -y install kernel-devel gcc dracut make perl eject policycoreutils-python