Avatar of Garry Shape
Garry Shape
Flag for United States of America asked on

Restore a VM if it's still in datastore? Issue after restarting host to fix Removing Snapshot issue.

I'm on esxi 5.5, vSphere 6.5. Something happened where a VM got stuck removing snapshot after a Veeam backup and been running for over 72 hours. We saw no file size changes on files in the VM folder on the host so we restarted management agent on the host.
After the host rebooted, this VM became invalid/inaccessible (it alternates between those two states continuously).
I removed it from Inventory and am not sure how to add it back. When I browse to the datastore and try to right-click the vmx file, the only options I see are Download, delete, copy, move, rename...
VeeamVMwareVirtualization

Avatar of undefined
Last Comment
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Garry Shape

ASKER
Am I supposed to see more options than that upon right-clicking?  
Because all of my other VMs are running fine yet I don’t see any options to Import when right clicking their VMX files.  
Is it maybe a permission issue? I’ve tried local Admin and another Admin.
SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
Garry Shape

ASKER
Ok yeah I think it’s locked then. I can’t copy the VMWare.log file either says it’s locked. Sorry don’t have screenshot now but can take in a few.
I’m not sure how it’d be locked after restarting services
Garry Shape

ASKER
Here is a screenshot  
And the VM is currently not in Inventory.
219B617E-F5B5-49E2-B282-92128BF8552B.png
Experts Exchange is like having an extremely knowledgeable team sitting and waiting for your call. Couldn't do my job half as well as I do without it!
James Murphy
SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Garry Shape

ASKER
Could it be not-corrupt but also "locked" somehow thus not revealing the "Register VM" menu item?
Because when I also try and copy the "vmware.log" that is residing in this same directory as the .vmx to another folder, I get "Unable to access file [Datastore] VMname/vmware.log"
Garry Shape

ASKER
There's a .lck file in the directory as well
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

Anything is possible, if that is the case you will need to search and try and find what is locking it.

Quickest solution is to restart host!

Veeam is still not trying to back it up! or have the parent virtual disk connected to the Veeam VM ?
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Garry Shape

ASKER
Yeah something has it locked I couldn’t reboot host it was taking forever to go to maintenance mode.  
I created a new VM and added existing disks and got it backup. Not sure if that will create conflict again however
.
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

It will not cause any conflicts.
Garry Shape

ASKER
Ok thanks. I'll at least try maintenance mode on the host next later tonight.
Problem last night is it was getting to 17%, 18%, then 19% and stopped for abotu 30 mins. Not sure why. I cancelled it
All of life is about relationships, and EE has made a viirtual community a real community. It lifts everyone's boat
William Peck
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

what was getting to 17% etc ?
Garry Shape

ASKER
The Host's status of Entering Maintenance Mode
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

something is running on the host which is stopping it entering maintenance mode, like a VM running.... (ghost VM)
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.
Garry Shape

ASKER
So if I reboot the host, it should automatically migrate off the VM's (like in maintenance mode) but still continue to reboot even if a ghost VM is running?
SOLUTION
Andrew Hancock (VMware vExpert PRO / EE Fellow/British Beekeeper)

THIS SOLUTION 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
⚡ FREE TRIAL OFFER
Try out a week of full access for free.
Find out why thousands trust the EE community with their toughest problems.