Selasa, 06 Oktober 2020

ESXI-unsuport hardisk

 ESXI

[Solved] : Failed to open disk scsi0:0: Unsupported and/or invalid disk type 7

i have got this error “Failed to open disk scsi0:0: Unsupported and/or invalid disk type 7. Did you forget to import the disk first?” while powering on a Virtual machine was imported from Workstation so how to solve this error

2017-11-19_8-26-17

first the Cause of this Error 

This issue occurs if a virtual machine that is meant for VMware Hosted products such as VMware Workstation, VMware Player or VMware Fusion is powered-on on an ESXi host.
 The underlying format used to store virtual machines on VMware Hosted products differs from the format used to store virtual machines on ESXi hosts.
Resolution

virtual machine should first be converted using VMware vCenter Converter or you can use alternative solution

the work around , reformat the VMDK using the vmkfstools command, detach the currently attached VMDK from the virtual machine and then reattach it:

  1. Connect to the ESXi host via SSH.
  2. Run this command:vmkfstools -i  HostedVirtualDisk  ESXVirtualDiskWhere 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

  3. Detach the currently attached VMDK from the virtual machine:
    1. In the vSphere Client or vSphere Web Client, right-click the virtual machine and click Edit Settings.
    2. Select the hard disk.
    3. Click Remove.
    4. Select the Remove from virtual machine option.
    5. Click OK.
  4. Reattach the newly formatted VMDK from Step 2:
    1. In the vSphere Client or vSphere Web Client, right-click the virtual machine and click Edit Settings.
    2. Click Add.
    3. Select the hard disk.
    4. Click Next.
    5. Select the Use an existing virtual disk option.
    6. Click Next.
    7. Click Browse and locate the new VMDK created in Step 2.
    8. Click Next.
    9. Click Next.
    10. Click Finish to close the Add Hardware window.
    11. Click OK to close the Virtual Machine properties window.
  5. Power on the virtual machine.

for more info you can check VMware KB1028943

Tidak ada komentar:

Posting Komentar