Avatar of waltforbes
waltforbesFlag for Bahamas

asked on 

VMs Fail To Power On After Power Outage

Points of My Scenario
1. A power outage caused ESXi hosts to power off forcefully
2. Now, when I attempt to power on VMs, I get the error "Unable to load configuration file '/vmfs/volumes/<guid>/hostname/hostname.vmx' "

How do I troubleshoot to resolve?
VMware

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Avatar of Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)
Flag of United Kingdom of Great Britain and Northern Ireland image

you need to check the directory/folder via ssh/shell to check if files are present or not corrupted, which means a restore.

upload a screenshot here and I can check.
Avatar of RAFA
RAFA
Flag of Venezuela, Bolivarian Republic of image

Hello,

You can remove the vm from inventory. And then you go to the datastore and add the vm again. You select the .vmk file, right click, add to inventory.

Regards.
Avatar of waltforbes
waltforbes
Flag of Bahamas image

ASKER

Hi Andrew and RAFA: the files were present. Solution included the following steps:

1. Find which ESXi host was locking the files at the bash CLI of each host: command = "lsof | grep VMNAME.vmx.lck"

2. On the host returning a non-null result, find the process ID of the VM with locked file: command = "esxcli vm process list" - look for VMNAME in the output

3. Note the "World ID" (process ID for a VM) of the output for VMNAME in step 2

4. Terminate the process: command = "esxcli vm process kill -w 12345 -t soft", where '12345' is the "World ID" for the VMNAME obtained in step 2

The machine "VMNAME" returned to running state.
Please select your Answer and close the question.

(You didn't mention it was a cluster and shared storage!)
Avatar of waltforbes
waltforbes
Flag of Bahamas image

ASKER

My apologies, Andrew. I should have provided more details.
ASKER CERTIFIED SOLUTION
Avatar of waltforbes
waltforbes
Flag of Bahamas image

Blurred text
THIS SOLUTION IS ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
no problems, thanks for your interesting question!

Did you know I've written over 130 articles for Experts Exchange here

https://www.experts-exchange.com/memberArticleHistory.jsp?mid=1864316#arth

and I've also now created a VMware Hancock's Half Hour Video series on vSphere 7.0.

This is Part 1.

https://www.experts-exchange.com/videos/78972/HOW-TO-Install-and-Configure-VMware-vSphere-Hypervisor-7-0-U2-ESXi-7-0-2.html
VMware
VMware

VMware, a software company founded in 1998, was one of the first commercially successful companies to offer x86 virtualization. The storage company EMC purchased VMware in 1994. Dell Technologies acquired EMC in 2016. VMware’s parent company is now Dell Technologies. VMware has many software products that run on desktops, Microsoft Windows, Linux, and macOS, which allows the virtualizing of the x86 architecture. Its enterprise software hypervisor for servers, VMware vSphere Hypervisor (ESXi), is a bare-metal hypervisor that runs directly on the server hardware and does not require an additional underlying operating system.

39K
Questions
--
Followers
--
Top Experts
Get a personalized solution from industry experts
Ask the experts
Read over 600 more reviews

TRUSTED BY

IBM logoIntel logoMicrosoft logoUbisoft logoSAP logo
Qualcomm logoCitrix Systems logoWorkday logoErnst & Young logo
High performer badgeUsers love us badge
LinkedIn logoFacebook logoX logoInstagram logoTikTok logoYouTube logo