Saturday 6 December 2014

Adding a vdisk created in Workstation to an ESXi host

You can't just copy the disk into the ESXi datastore and hope it works,it won't, it needs converting:

  1. Open up an SSH session to the ESXi Host
  2. Run the following:

    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/datastore1/virtual_machine_folder/ virtual_machine.vmdk /vmfs/volumes/datastore1/new_virtual_machine_folder/ virtual_machine.vmdk
  3. Mount the new vmdk once the conversion is complete

No comments:

Post a Comment