To import a virtual machine stored on a VMware Hosted product to an ESX/ESXi host, the virtual machine should first be converted using VMware vCenter Converter 6.3. For more information on conversion, see the
VMware vCenter Converter documentation .
Alternatively, to work around this issue in ESXi 5.0 and earlier versions, reformat the VMDK using the
vmkfstools command, detach the currently attached VMDK from the virtual machine and then reattach it:
- Connect to the ESX/ESXi host via SSH.
- Run this command:
vmkfstools -i HostedVirtualDisk ESXVirtualDisk
Where HostedVirtualDisk is the path to the vmdk on the host and ESXVirtualDisk is the vmdk to be output by the command.
For example:
vmkfstools -i /vmfs/volumes/datastore/virtual_machine_folder/virtual_machine.vmdk /vmfs/volumes/datastore/new_virtual_machine_folder/virtual_machine.vmdk
- Detach the currently attached VMDK from the virtual machine:
- In the vSphere Client or vSphere Web Client, right-click the virtual machine and click Edit Settings.
- Select the hard disk.
- Click Remove.
- Select the Remove from virtual machine option.
- Click OK.
- Reattach the newly formatted VMDK from Step 2:
- In the vSphere Client or vSphere Web Client, right-click the virtual machine and click Edit Settings.
- Click Add.
- Select the hard disk.
- Click Next.
- Select the Use an existing virtual disk option.
- Click Next.
- Click Browse and locate the new VMDK created in Step 2.
- Click Next.
- Click Next.
- Click Finish to close the Add Hardware window.
- Click OK to close the Virtual Machine properties window.
- Power on the virtual machine.
Note: To access the command line on an ESXi host, you must enable SSH service. For more information, see
Enable Access to ESXi Shell