vim.fault.NotFound: No virtual machine found - WTH?
jibbajabba
Member Posts: 4,317 ■■■■■■■■□□
Trying to shutdown some VMs through the command prompt and receive this on some VMs
But
How random ?
vim.fault.NotFound: No virtual machine found with name: ./4c5c2446-0a0951d4-f1c3-003048f5af08/Replicated-23/Replicated-23.vmx
But
# ls -ls ./4c5c2446-0a0951d4-f1c3-003048f5af08/Replicated-23 total 8944000 64 -rw-r--r-- 1 root root 37 Aug 9 17:24 Replicated-23-245a1e5b.hlog 8931328 -rw------- 1 root root 42949672960 Aug 10 13:32 Replicated-23-flat.vmdk 64 -rw------- 1 root root 8684 Aug 10 13:33 Replicated-23.nvram 64 -rw------- 1 root root 549 Aug 6 19:08 Replicated-23.vmdk 0 -rw-r--r-- 1 root root 0 Aug 6 19:42 Replicated-23.vmsd 64 -rwxr-xr-x 1 root root 2868 Aug 10 13:33 Replicated-23.vmx 64 -rw-r--r-- 1 root root 268 Aug 10 13:15 Replicated-23.vmxf 2048 -rw-r--r-- 1 root root 72828 Aug 7 00:05 vmware-24.log 2048 -rw-r--r-- 1 root root 67954 Aug 9 13:39 vmware-25.log 64 -rw-r--r-- 1 root root 35470 Aug 9 14:13 vmware-26.log 2048 -rw-r--r-- 1 root root 66354 Aug 9 15:03 vmware-27.log 2048 -rw-r--r-- 1 root root 72461 Aug 9 17:24 vmware-28.log 2048 -rw-r--r-- 1 root root 71076 Aug 10 10:22 vmware-29.log 2048 -rw-r--r-- 1 root root 67810 Aug 10 13:33 vmware.log
How random ?
My own knowledge base made public: http://open902.com
Comments
-
scott28tt Member Posts: 686 ■■■■■□□□□□Is that VM running on the host you are running the command from, or is it perhaps running on a different host?VCP2 / VCP3 / VCP4 / VCP5 / VCAP4-DCA / VCI / vExpert 2010-2012
Blog - http://vmwaretraining.blogspot.com
Twitter - http://twitter.com/vmtraining
Email - vmtraining.blog@gmail.com -
jibbajabba Member Posts: 4,317 ■■■■■■■■□□Is that VM running on the host you are running the command from, or is it perhaps running on a different host?
Doesn't matter as every host has access to the same LUNs (with DRS / HA enabled) . It works for 200 other VMs (3 host cluster) and only around 20 give me grief ..
You seem to be able to fix it with shutting down via client, remove from inventory and register using vmware-cmd rather than the datastore browser ..
Still really random as I had to do some VMs twice ... Pff ..My own knowledge base made public: http://open902.com -
Sunshine_54 Member Posts: 32 ■■□□□□□□□□You can't power on/off a virtual machine from any host that has access to that LUN. It needs to be registered to that ESX server first.
vmware-cmd -l will list the registered virtual machines on that ESX server. If the VM is not listed there, then it's either a) not registered at all or b) registered on a different host.
If it's on a different host you would need to perform the power on/off operation from that host, or unregister and register it again on the host you are accessing. -
jibbajabba Member Posts: 4,317 ■■■■■■■■□□Edit: ignore me, you are right ..My own knowledge base made public: http://open902.com
-
scott28tt Member Posts: 686 ■■■■■□□□□□Sunshine_54 wrote: »You can't power on/off a virtual machine from any host that has access to that LUN. It needs to be registered to that ESX server first.
Hence me asking the question about which host the VM was on
Scott.VCP2 / VCP3 / VCP4 / VCP5 / VCAP4-DCA / VCI / vExpert 2010-2012
Blog - http://vmwaretraining.blogspot.com
Twitter - http://twitter.com/vmtraining
Email - vmtraining.blog@gmail.com