September 10

Use Command line to delete VMs if they are stuck in Vmware

Go SSH console

1: Get a list of VMs

$ vim-cmd vmsvc/getallvms

2: edited the vmInventory.xml file

$ vi /etc/vmware/hostd/vmInventory.xml

(use dd to delete a line at a time,  :wq to exit and save, :!q to exit without saving)

3: these two services:

$ /etc/init.d/hostd restart

$/etc/init.d/vpxa restart


Posted September 10, 2018 by Ray in category "Vmware

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.