mescobarhms01
Contributor
Contributor

Can't delete VM

Jump to solution

We have a VM that we are unable to delete. When you right click on the VM in Infrastructure Client, the only options are:

Snapshot > Snapshot Manager

Complete Migration...

Add Alarm...

Add Permission...

Open Console

Report Performance...

When attempting the complete migration, it throws an error saying it cannot find a certain file on the datastore. However, I can view the file in the datastore. Any ideas why this VM is stuck and anyway to delete it? Also curious as to how this situation occurs.

0 Kudos
1 Solution

Accepted Solutions
rabih_00
Enthusiast
Enthusiast

try the following:

Login to the ESX console and run those 2 commands :

service mgmt-vmware restart

service vmware-vpxa restart

No impact on your running VMs.

Good Luck

View solution in original post

0 Kudos
4 Replies
Lightbulb
Virtuoso
Virtuoso

From the cli run the following

for machine in `vmware-cmd -l` ; do echo $machine `vmware-cmd $machine getstate` ; done

Which will show the state of all your VMs. What is the state reported for the the VM?

mescobarhms01
Contributor
Contributor

The state shows as powered off. GUI shows the same thing (lack of green play symbol)

0 Kudos
ShouldEye
Enthusiast
Enthusiast

Restart the VC service

rabih_00
Enthusiast
Enthusiast

try the following:

Login to the ESX console and run those 2 commands :

service mgmt-vmware restart

service vmware-vpxa restart

No impact on your running VMs.

Good Luck

0 Kudos