Hi goodface
What do you mean by you can't delete it?
So the vGuest is in Invalid state, that means it lost the connection to the Storage or it was removed or something different may have occured.
You have different options when you hit the right klick. However, please follow this procedure!
There is a option that worked in previous versions, let's see if that works with 6.5 too, please let me know if it did work.
- Open VMware Infrastructure or vSphere Client and connect to the Host with a user with Administrative rights.
- Change the view to the VMs and Templates inventory view.
- On the left pane, right-click, click New Folder and provide an alpha-numeric name to the folder.
- Click the virtual machine and while holding the left mouse button, drag the virtual machine to the folder created in step 3.
- Right-click the folder, and click Remove. The folder and its contents are deleted.
If that dosn't work, please do this:
This script reloads all invalid virtual machines on a single host at once:
for a in $(vim-cmd vmsvc/getallvms 2>&1 |grep invalid |awk '{print $4}'|cut -d \' -f2);do vim-cmd vmsvc/reload $a;done
Please keep me posted, if that worked out.
Best regards,
Marco