A virtual machine fails to power on with the error: Unsupported and/or invalid disk type
/
1898 次浏览/
容器虚拟化
A virtual machine fails to power on with the error: Unsupported and/or invalid disk type (1028943)
Symptoms
- Cannot power on the virtual machine
- Powering on the virtual machine fails
- You see the error:
Unsupported and/or invalid disk type - In the Events tab on the ESXi hosts or vCenter Server, you see the error:
Module DevicePowerOn power on failed.
Unable to create virtual SCSI device for scsi0:0, '/vmfs/volumes/datastorename/VirtualMachineHome/VirtualMachineDisk.vmdk'
Failed to open disk scsi0:0: Unsupported and/or invalid disk type 7. Did you forget to import the disk first?
Cause
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 ESX/ESXi host.
The underlying format used to store virtual machines on VMware Hosted products differs from the format used to store virtual machines on ESX/ESXi hosts.
The underlying format used to store virtual machines on VMware Hosted products differs from the format used to store virtual machines on ESX/ESXi hosts.
Resolution
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. For more information on conversion, see the VMware vCenter Converter documentation.
Alternatively, to workaround 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:
For importing the virtual disk files in ESX 5.1 hosts, see Powering on a virtual machine on an upgraded host fails with the error: File [VMFS volume] VM-name/VM-name.vmdk was not found (2036572).
Note: To access the command line on an ESXi host, you must enable Tech Support Mode. For more information, see Tech Support Mode for Emergency Support (1003677).
Alternatively, to workaround 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. For more information, see Using Tech Support Mode in ESXi 4.1 and ESXi 5.x (1017910).
- 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.
For importing the virtual disk files in ESX 5.1 hosts, see Powering on a virtual machine on an upgraded host fails with the error: File [VMFS volume] VM-name/VM-name.vmdk was not found (2036572).
Note: To access the command line on an ESXi host, you must enable Tech Support Mode. For more information, see Tech Support Mode for Emergency Support (1003677).
For more information on this method, see Migrate VMware Workstation and VMware GSX Server Virtual Machines in the ESX Configuration Guide.
Tags
cannot-power-on-vm power-on-vm vm-power-on vm-power-on-fails
See Also
Update History
02/15/2013 - Added link to article 2036572
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
更多文章推荐
- 华为云21天转型微服务实战营全部资源
- kubernetes离线安装KubePi
- OpenEuler/Centos安装containerd容器,cni,nerdctl,buildkit,runc
- K8s网络组件之Flannel:VXLAN模式
- 在 Kubernetess 中使用 DNS 和 Headless Service 发现运行中的 Pod
- K8s网络组件之Calico:IPIP工作模式
- K8s网络组件之Calico:Route Reflector 模式(RR)
- K8s 高性能网络组件 Calico 入门教程
- 华为云基于ServiceStage的微服务开发与部署的实验过程问题
- 如何体验华为云ServiceStage的源码部署功能?