juavalga
Enthusiast
Enthusiast

Delete virtual machine inaccessible

Jump to solution

Hello,

The virtual center has virtual machine in status inaccessible. How can I erase this VM from inventory?

If I do right click on the virtual machine I got this message: "Object reference not set to an instance of an object"

Thanks.

0 Kudos
1 Solution

Accepted Solutions
wgardiner
Hot Shot
Hot Shot

Hi you can try manually unregistering it on the ESX host. Log into the ESX host this server is registered on and run the following comand:

vmware-cmd -s unregister <config_file_path>

eg

vmware-cmd -s unregister /vmfs/volumes/myDataStore/MyVM.vmx

Then restart the VPX agent to see the change in virtual centre:

service vmware-vpxa restart

Let us know how that goes..

View solution in original post

0 Kudos
3 Replies
java_cat33
Virtuoso
Virtuoso

Can you run the following commands on the ESX server that the VM is listed on?

However, if you are running ESX 3.5 or 3.0.2 unpatched with your VM's set to auto power on - don't run the first command listed below (unless you turn this setting off temporarily)

service mgmt-vmware restart

service vmware-vmkauthd restart

service vmware-vpxa restart

After running these commands, log back in and see if you can delete it.

0 Kudos
wgardiner
Hot Shot
Hot Shot

Hi you can try manually unregistering it on the ESX host. Log into the ESX host this server is registered on and run the following comand:

vmware-cmd -s unregister <config_file_path>

eg

vmware-cmd -s unregister /vmfs/volumes/myDataStore/MyVM.vmx

Then restart the VPX agent to see the change in virtual centre:

service vmware-vpxa restart

Let us know how that goes..

View solution in original post

0 Kudos
Skark166
Contributor
Contributor

I had the same issue. I deleted all of the files related to the VM from our LUN and Virtual center left an inaccessible VM behind. No options available to remove it.

-


service mgmt-vmware restart

service vmware-vmkauthd restart

service vmware-vpxa restart

-


Ran the ssh console commands recommended by java_cat33 and was able to connect directly up the our ESX with the VI client and remove it from inventory.

Thanks java_cat33!!

Skark166

0 Kudos