VMware Cloud Community
boazf
Contributor
Contributor
Jump to solution

Unable to reconnect a running VM

Hi,

I decadently removed a running VM from the inventory.

The VM is critical and can't be shutdown.

When I try to browse the datastore the "Add to Inventory" option is greyed out.

How can I reconnect it back to the inventory?

Thanks,

Boaz

Tags (4)
0 Kudos
1 Solution

Accepted Solutions
FritzBrause
Enthusiast
Enthusiast
Jump to solution

You can also try to reload the VM into vCenter:

1. vim-cmd vmsvc/getallvms

2. vim-cmd vmsvc/reload xx
(xx is the VMID supplied by the first command)

View solution in original post

0 Kudos
6 Replies
rcporto
Leadership
Leadership
Jump to solution

Try using the command line: VMware: Unable “Add to Invetory” option is greyed out | VMpros

---

Richardson Porto
Senior Infrastructure Specialist
LinkedIn: http://linkedin.com/in/richardsonporto
0 Kudos
WessexFan
Hot Shot
Hot Shot
Jump to solution

Login to the host as root (connect directly to the host using the client, not vCenter) and browse the datastore the guest is residing on, find the .vmx file and choose to "add to inventory" - Sounds like the account you are using doesn't have proper permissions to edit datastore or host resources.

VCP5-DCV, CCNA Data Center
0 Kudos
FritzBrause
Enthusiast
Enthusiast
Jump to solution

You can also try to reload the VM into vCenter:

1. vim-cmd vmsvc/getallvms

2. vim-cmd vmsvc/reload xx
(xx is the VMID supplied by the first command)

0 Kudos
boazf
Contributor
Contributor
Jump to solution

Thanks for the quick responce.

I tried "vim-cmd solo registervm /vmfs/volumes/5210ce12-25f49f84-5a50-3cd92bef8520/lic-srv3/lic-srv3.vmx" and it didn't work.

It just gave me this:

Commands available under solo/:

connect          environment      logout           querycfgoptdesc

disconnect       login            querycfgopt      registervm

any other suggestions?

Boaz

0 Kudos
boazf
Contributor
Contributor
Jump to solution

Thanks,

This VM is not listed in the "vim-cmd vmsvc/getallvms" results so I don't have the VMID...

0 Kudos
boazf
Contributor
Contributor
Jump to solution

Thank you FritzBrause!!