Vmware Vsphere 5 Error : Unsupported or invalid disk type 7. Ensure that the disk has been imported. "

AID: 8669
  • Status: Published

6200 points

  • Byjordannet
  • TypeTips/Tricks
  • Posted on2011-11-25 at 07:44:44
Problem : Unsupported or invalid disk type 7. Ensure that the disk has been imported.

You can run into this problem when you try to power on virtual machine on Esxi that converted from physical to virtual machine. An error message prompt and running of vm will stop. The message looks something like :

Module DevicePowerOn power on failed. Unable to create virtual SCSI device  for scsi0:0,  
'/vmfs/volumes/4e981593-1bbfd9e3-cbe6-00237de1f462/xxxx/xxxx/xxxx.vmdk'
Failed to open disk scsi0:0:
Unsupported or invalid disk type 7. Ensure that the disk has been imported.


This problem occurs when you are converting physical machine to virtual one , actually the The VMs were converted and set to preserve the controller, which was IDE. The disks were also in sparse format. The VM would not boot because the controller was set to lsi sas which will not work with sparse disks. If this is changed then the VM will power up successfully.

Resolution :

Method 1 :

First up, open putty SSH session then type the following :
cd vmfs
cd volumes
cd datastore1
                                    
1:
2:
3:

Select allOpen in new window


note that datastore1 is sample name , just type your datastore name , if you don't know what is it , just type "ls" after volumes you will see a folder in greeny color , it's the datastore name.

Then type :
mkfstools -i xxxxxx.vmdk xxxx-New.vmdk
                                    
1:

Select allOpen in new window


note that xxxxx is disk name of the related virtual machine , the process will convert  disk type to zerothick , if the process success try to run your machine , if its not successful the following message may appear :

Destination disk format: VMFS zeroedthick
Cloning disk 'DemoServer.E-Data.local-s001.vmdk'...
Failed to clone disk: There is not enough space on the file system for
the selected operation (13).

If it does appear, then move to method2 :

Method 2 :

You might need to create new virtual machine with IDE hard disk and SCSI controller , you need to edit vmx file and remove line of LSI logic SAS controller and add instead ide controller  configuration :
ide0:0.present = "TRUE"
ide0:0.fileName = "xxxxx.vmdk"
ide0:1.present = "TRUE"
ide0:1.autodetect = "TRUE"
ide0:1.filename = "auto detect"
                                    
1:
2:
3:
4:
5:

Select allOpen in new window


and under swap sections :
replay.filename = ""
ide0:0.redo = ""
                                    
1:
2:

Select allOpen in new window


then try to power on your machine.
 
In the future purposes when you are converting SAS Machine to virtual to avoid such case try to modify the machine configuration before you convert it never convert SAS disk to IDE on machine that have LSI Logic Card and SAS Disks ,  see the picture :
 
untitled.jpg
  • 158 KB
  • ESXi disk Conversion
ESXi disk Conversion
    Asked On
    2011-11-25 at 07:44:44ID8669
    Tags

    vmware

    ,

    esxi

    ,

    vsphere 5

    ,

    Unsupported or invalid disk type 7

    Topic

    VMware

    Views
    5038

    Comments

    Expert Comment

    by: Martin81 on 2011-12-14 at 07:45:40ID: 33654

    Good article, method 1 worked for me to convert a vmware workstation created disk to thick provisioned so I could boot it up with esxi.

    One typo, 'mkfstools -i xxxxxx.vmdk xxxx-New.vmdk' should be 'vmkfstools -i xxxxxx.vmdk xxxx-New.vmdk'

    Add your Comment

    Please Sign up or Log in to comment on this article.

    Join Experts Exchange Today

    Gain Access to all our Tech Resources

    Get personalized answers

    Ask unlimited questions

    Access Proven Solutions

    Search 3.2 million solutions

    Read In-Depth How-To Guides

    1000+ articles, demos, & tips

    Watch Step by Step Tutorials

    Learn direct from top tech pros

    And Much More!

    Your complete tech resource

    See Plans and Pricing

    30-day free trial. Register in 60 seconds.

    Loading Advertisement...

    Top VMware Experts

    1. hanccocka

      2,402,899

      Genius

      20,820 points yesterday

      Profile
      Rank: Genius
    2. coolsport00

      259,512

      Guru

      0 points yesterday

      Profile
      Rank: Genius
    3. paulsolov

      48,915

      400 points yesterday

      Profile
      Rank: Genius
    4. BestWay

      41,955

      600 points yesterday

      Profile
      Rank: Sage
    5. danm66

      39,761

      0 points yesterday

      Profile
      Rank: Wizard
    6. IanTh

      32,340

      0 points yesterday

      Profile
      Rank: Genius
    7. andyalder

      32,308

      0 points yesterday

      Profile
      Rank: Genius
    8. thinkpads_user

      24,520

      0 points yesterday

      Profile
      Rank: Genius
    9. kevinhsieh

      23,604

      0 points yesterday

      Profile
      Rank: Genius
    10. millardjk

      18,282

      0 points yesterday

      Profile
      Rank: Master
    11. rindi

      17,077

      0 points yesterday

      Profile
      Rank: Savant
    12. CarlWebster

      16,686

      0 points yesterday

      Profile
      Rank: Genius
    13. RickEpnet

      14,468

      0 points yesterday

      Profile
      Rank: Guru
    14. EvertG

      14,300

      0 points yesterday

      Profile
    15. cwstad2

      13,984

      0 points yesterday

      Profile
      Rank: Guru
    16. cdfs

      13,168

      0 points yesterday

      Profile
      Rank: Master
    17. Neilsr

      12,652

      0 points yesterday

      Profile
      Rank: Genius
    18. npsingh123

      11,452

      0 points yesterday

      Profile
      Rank: Master
    19. dkotte

      11,400

      0 points yesterday

      Profile
      Rank: Guru
    20. dlethe

      11,100

      0 points yesterday

      Profile
      Rank: Genius
    21. arnold

      10,782

      0 points yesterday

      Profile
      Rank: Genius
    22. demazter

      10,656

      0 points yesterday

      Profile
      Rank: Genius
    23. Anuroopsundd

      9,724

      0 points yesterday

      Profile
      Rank: Sage
    24. S00007359

      9,676

      0 points yesterday

      Profile
      Rank: Guru
    25. LesterClayton

      9,100

      0 points yesterday

      Profile
      Rank: Guru

    Hall Of Fame