Error: File VM_name.vmdk was not found while powering on a virtual machine
search cancel

Error: File VM_name.vmdk was not found while powering on a virtual machine

book

Article ID: 438243

calendar_today

Updated On:

Products

VMware vSphere ESXi

Issue/Introduction

  • Virtual machine (VM) fails to power on with the following error message:

File VM_name.vmdk was not found. Failed to start the virtual machine.
Cannot open the disk 'VM_name.vmdk' or one of the snapshot disks it depends on.
The system cannot find the file specified. VMware ESX cannot find the virtual disk "VM_name.vmdk". Verify the path is valid and try again.
Module Disk power on failed. 

  • The VM summary page in vCenter UI displays an alarm indicating that the disks failed to load:

Some of the disks of the virtual machine failed to load. The information present for them in the virtual machine configuration may be incomplete.

  • The VM hard disk displays Disk capacity cannot be zero in vCenter UI: Navigate to VM > Right click > Edit settings 

  • Following error message is observed in ESXi host logs:  

    • /var/run/log/hostd.log

YYYY-MM-DDTHH:MM:SSZ Db(###) Hostd[<####>]: [Originator@6876 sub=Vigor.Vmsvc.vm:/vmfs/volumes/datastore_name/VM_name/VM_name.vmx] Power On translated error to vim.fault.FileNotFound
YYYY-MM-DDTHH:MM:SSZ Db(###) Hostd[<####>]: --> The system cannot find the file specified
YYYY-MM-DDTHH:MM:SSZ Db(###) Hostd[<####>]: --> Cannot open the disk VM_name.vmdk or one of the snapshot disks it depends on.
YYYY-MM-DDTHH:MM:SSZ Db(###) Hostd[<####>]: --> Module 'Disk' power on failed.
YYYY-MM-DDTHH:MM:SSZ Db(###) Hostd[<####>]: --> Failed to start the virtual machine.
YYYY-MM-DDTHH:MM:SSZ Db(###) Hostd[<####>]: -->

YYYY-MM-DDTHH:MM:SSZ Wa(###) Hostd[<####>]: [Originator@6876 sub=Vmsvc.vm:/vmfs/volumes/datastore_name/VM_name/VM_name.vmx] Failed operation
YYYY-MM-DDTHH:MM:SSZ In(###) Hostd[<####>]: [Originator@6876 sub=Vimsvc.ha-eventmgr] Event 892 : Cannot power on VM_name on ESXi_hostname in ha-datacenter: A general system error occurred:

    • /vmfs/volumes/datastore_name/VM_name/vmware.log:

YYYY-MM-DDThh:mm:ssZ In(##) vmx - OBJLIB-FILEBE : FileBEOpen: can't open '/vmfs/volumes/datastore_name/VM_name/VM_name.vmdk' : Could not find the file (393218).
YYYY-MM-DDThh:mm:ssZ Er(##) vmx - DISKLIB-DSCPTR: DescriptorOpenInt: failed to open '/vmfs/volumes/datastore_name/VM_name/VM_name.vmdk' with flags 0x400001: Could not find the file
YYYY-MM-DDThh:mm:ssZ Er(##) vmx - DISKLIB-DSCPTR: DescriptorOpen: Failed to open: The system cannot find the file specified
YYYY-MM-DDThh:mm:ssZ Er(##) vmx - DISKLIB-LINK  : DiskLinkOpen: Failed to open '/vmfs/volumes/datastore_name/VM_name/VM_name.vmdk': : The system cannot find the file specified
YYYY-MM-DDThh:mm:ssZ Er(##) vmx - DISKLIB-CHAIN : DiskChainOpen: "/vmfs/volumes/datastore_name/VM_name/VM_name.vmdk": failed to open: The system cannot find the file specified.
YYYY-MM-DDThh:mm:ssZ In(##) vmx - DISKLIB-LIB   : Failed to open VM_name.vmdk with flags 0xa The system cannot find the file specified (25).
YYYY-MM-DDThh:mm:ssZ In(##) worker-#### - Msg_Post: Error
YYYY-MM-DDThh:mm:ssZ In(##) worker-#### - [msg.disk.fileNotFound] VMware ESX cannot find the virtual disk VM_name.vmdk. Verify the path is valid and try again.
YYYY-MM-DDThh:mm:ssZ In(##) worker-#### - [msg.disklib.FILENOTFOUND] The system cannot find the file specified
YYYY-MM-DDThh:mm:ssZ In(##) worker-#### - [msg.disk.noBackEnd] Cannot open the disk VM_name.vmdk or one of the snapshot disks it depends on.
YYYY-MM-DDThh:mm:ssZ In(##) worker-#### - ----------------------------------------
YYYY-MM-DDThh:mm:ssZ In(##) vmx - Disk_GetDigestDiskCount: numDigestDisks = 0
YYYY-MM-DDThh:mm:ssZ In(##) vmx - DISK: Opening disks took 11 ms.
YYYY-MM-DDThh:mm:ssZ In(##) vmx - Module 'Disk' power on failed.

Environment

  • VMWare vSphere ESXi 8.x
  • VMware vCenter Server 8.x

Cause

  • Missing VM disk descriptor files (.vmdk) from the VM home directory on the datastore while the flat.vmdk data files remain present. This mismatch prevents the VMX process from identifying the disk characteristics resulting in the VM power-on failure.

Resolution

Manually re-create the missing descriptor files to power on the VM:

  1. Recreate the missing disk descriptor files using the size of the existing flat files. Refer to: Recreating a missing VMware virtual machine disk descriptor file (.vmdk)

  2. Power on the VM after recreating the descriptor files for all affected hard disks.

Additional Information

A missing .vmdk descriptor file may not cause immediate disruption, and VMs can continue to function normally while powered on. The issue will surface during a reboot, vMotion, or snapshot operation. To identify VMs with missing descriptor files, use the missingParent.py script:

  1. Download the missingParent.zip script and copy it to the ESXi host via WinSCP.

  2. Take an SSH to ESXi host and login as root.

  3. Unzip the script: unzip missingParent.zip

  4. Execute the script: python missingParent.py

    1. If a VM descriptor file is absent, the script displays following message indicating the specific missing descriptor file. 

      For VM "/vmfs/volumes/datastore_name/VM_folder/VM_name.vmx": Virtual disk descriptor "/vmfs/volumes/datastore_name/VM_folder/VM_name.vmdk" is missing!

    2. The script returns no output if all the descriptor files are present.

Attachments

missingParent.zip get_app