打开虚拟机电源失败,并显示以下错误:指定的文件不是虚拟磁盘 (15)
search cancel

打开虚拟机电源失败,并显示以下错误:指定的文件不是虚拟磁盘 (15)

book

Article ID: 301137

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

Symptoms:
免责声明:本文为 Powering on the virtual machine fails with the error: The file specified is not a virtual disk (15) (1016838) 的翻译版本。尽管我们会不断努力为本文提供最佳翻译版本,但本地化的内容可能会过时。有关最新内容,请参见英文版本。

  • 将存储从 VMFS 脱机迁移到 NFS 数据存储后,无法打开虚拟机电源
  • 脱机迁移存储后打开虚拟机电源失败
  • 在 vSphere Client 中,您会看到以下错误:

    Cannot open the disk '/vmfs/volumes/.../VM_NAME/VM_NAME.vmdk' or one of the snapshot disks it depends on.Reason: The file specified is not a virtual disk.

  • 虚拟机设置显示磁盘大小为 0,但数据存储浏览器显示正确的磁盘大小
  • 使用 vmkfstools 命令克隆磁盘失败
  • 运行 vmkfstools -v6-d thin -i VM_NAME.vmdk VM_NAME_clone.vmdk 命令出现以下错误:

    DISKLIB-VMFS : "./VM_NAME-flat.vmdk" : open successful (29) size = 32212254720, hd = 0. Type 3
    DISKLIB-VMFS : "./VM_NAME-flat.vmdk" : closed.
    Destination disk format: VMFS thin-provisioned
    DISKLIB-VMFS : "./VM_NAME-flat.vmdk" : open successful (14) size = 32212254720, hd = 183927111. Type 3
    DISKLIB-DSCPTR: Opened [0]: "VM_NAME-flat.vmdk" (0xe)
    DISKLIB-LINK : Opened 'VM_NAME.vmdk' (0xe): vmfs, 62914560 sectors / 30 GB.
    DISKLIB-CHAIN : Disk '/vmfs/volumes/.../VM_NAME/VM_NAME.vmdk' points to itself as parent
    DISKLIB-CHAIN : "VM_NAME.vmdk" : failed to open (The file specified is not a virtual disk).
    DISKLIB-VMFS : "./VM_NAME-flat.vmdk" : closed.
    DISKLIB-LIB : Failed to open 'VM_NAME.vmdk' with flags 0xe (The file specified is not a virtual disk).
    Failed to open 'VM_NAME.vmdk': The file specified is not a virtual disk (15).
  • vmware.log 文件中,可见如下类似条目:

| vmx| DISKUTIL: Failed to open and get info for disk: '/vmfs/volumes/4e720900-1d142448-41e7-68b599c541b8/UUSNWE1P/' :

The file specified is not a virtual disk (15)



Environment

VMware vSphere ESXi 5.1
VMware ESXi 4.0.x Embedded
VMware ESX 4.0.x
VMware ESXi 4.1.x Installable
VMware ESXi 4.0.x Installable
VMware ESXi 4.1.x Embedded
VMware vSphere ESXi 5.5
VMware ESX 4.1.x
VMware vSphere ESXi 5.0

Cause

如果虚拟机引导盘的 .vmdk 描述符文件已损坏或丢失,则会发生此问题。

Resolution

要解决此问题,请为此磁盘创建一个新的 .vmdk 描述符文件,取消注册虚拟机,然后再重新注册。这样可确保 vSphere Client 检测正确的磁盘大小,并正确打开虚拟机电源。

有关创建新描述符文件的详细信息,请参见重新创建丢失的虚拟磁盘 (VMDK) 标头/描述符文件 (1002511) (Recreating a missing virtual disk (VMDK) header/descriptor file (1002511))


Additional Information

Powering on the virtual machine fails with the error: The file specified is not a virtual disk (15)