VMware Cloud Community
klee222
Enthusiast
Enthusiast

Find unknow(inaccessible) VM datastore location

Hi , i facing issue where meet some vm which with unknow(inaccessible) .

I'm plan to remove it but i cant edit the virtual machine due to grey out on setting.

i only can use ssh to display vmid but cant find the location, looking for help is any commend or way to find out where does these vm located on datastore.

pastedImage_0.png

0 Kudos
5 Replies
A13x
Hot Shot
Hot Shot

use the program RVtools to locate where these files are. they might appear under health tab for zombie vmdks

I am not too sure if its possible to reload the vmx when the vm name is unknown.

Reload inaccessible or invalid VM's with this PowerCLI one-liner | Techazine

(Get-View -ViewType VirtualMachine) |?{$_.Runtime.ConnectionState -eq "invalid" -or$_.Runtime.ConnectionState -eq "inaccessible"} |%{$_.reload()}

The other option is to remove from inventory (AFTER You know the datastore they are listed) and then re-add.

0 Kudos
Finikiez
Champion
Champion

Can you post output of the command you used to get VM ID of inaccessible VMs?

0 Kudos
klee222
Enthusiast
Enthusiast

you can seem, the is the unknow(inaccessible) 48,50,51

i dont know how to find their data-store file location

pastedImage_0.png

0 Kudos
Finikiez
Champion
Champion

Try this command

esxcli vm process list

As well you can try to restart management agents and see if unavailable vms still exist in inventory

services.sh restart

If you have vmnics configured in LACP than check KB VMware Knowledge Base and try restart hostd and vpxa agents individually.

0 Kudos
klee222
Enthusiast
Enthusiast

Hi,

here is the list of vm with running "esxcli vm process list"

A0110PIPCWFM01

A0110PCRMASY02

A0110PIPCESV01

A0110PIPCRPT01

A0110PCRMEML01

A0110PIPCOUT02

A0110PIPCGVP01

this is another command, the different is only extra 1 vm "win2k12r2".

pastedImage_12.png

but the three missing still not found, and also restart the services. not help ><

0 Kudos