Unsupported or invalid disk type 2 for 'scsi0:0'. Ensure that the disk has been imported

31,655

Solution 1

I solved the issue by changing the Virtual Device Node from SCSI controller 0 to IDE controller 0 at the hard disk settings of the virtual machine.

Solution 2

If anyone has also the same issue, check this article from Vmware. It solved for me: https://kb.vmware.com/s/article/1028943

1.Connect to the ESX/ESXi host via SSH. I used Putty for that.

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

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

  1. Reattach the newly formatted VMDK from Step 2:

  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.

5.Power on the virtual machine.

Share:
31,655
Jaz
Author by

Jaz

Updated on July 25, 2022

Comments

  • Jaz
    Jaz almost 2 years

    I just created a new virtual machine (kerio connect) on esxi 6.5 server from an existing .vmdk file.

    when I try to start the virtual machine, I keep getting the following error:

    Unsupported or invalid disk type 2 for 'scsi0:0'. Ensure that the disk has been imported.

    Any ideas?

  • Alexander Stumpf
    Alexander Stumpf about 6 years
    Perfect! The web is full of hints how to fix the "Unsupported and/or invalid disk type 7" error, but this is the only place that had the solution for "Unsupported and/or invalid disk type 2".
  • Jaz
    Jaz about 6 years
    I agree with you. Haven't found a single topic about type 2 error. Maybe I didn't search proberly that time...
  • Uwe Keim
    Uwe Keim over 4 years
    Just to detail it a bit more: I downloaded the VMX file from the ESXi datastore, opened it in Notepad (or similar) and replaced all occurrances of "scsi0" with "ide0", then uploaded the VMX again to the ESXi datastore. After that, the machine ran successfully.
  • Reddysekhar Gaduputi
    Reddysekhar Gaduputi about 2 years
    Was facing same issue, but when used vmkfstools observed that it expands the disk size to its limit even though disk was thin provisioned. Which may not be ideal always specially when disk limits are in TB size.
  • Dmitriy Ievlev
    Dmitriy Ievlev about 2 years
    It is also possible to fix it from web interface. Select VM -> Edit Settings -> Select HDD and unfold its settings -> change controller fro SCSI to IDE. good luck!
  • U. Windl
    U. Windl almost 2 years
    According to communities.vmware.com/t5/VMware-Workstation-Pro/… "type 2" is thinly provisioned. Unsure why VMware has problems with it, but it seems you can convert the image to fully provisioned.