VMware {code} Community
FisherJoe
Contributor
Contributor

How to rename the file and delete the invalid virtual machine in vSphere 6.5

How to rename the file and delete the invalid virtual machine  in vSphere 6.5
0 Kudos
3 Replies
FisherJoe
Contributor
Contributor

rename is not suport?
0 Kudos
tganchev
VMware Employee
VMware Employee

Hi,

You'd be able to get better answers to your questions in the general vSphere 6.0 forum. The current one is specifically for users of the vSphere Client SDK. Will ask some team members to take a look at your query.

Best,

Tony

0 Kudos
mtonev
VMware Employee
VMware Employee

Hi,

Please try the following:

1. SSH to the host

2. Execute "vim-cmd /vmsvc/getallvms" and find your VM ID

3. Execute "vim-cmd /vmsvc/unregister <VM ID>" - This should remove the VM from the host's inventory

4. You can remove the VM files

If you want to know how to do that from the Host Client, I would recommend you to ask this in the  vSphere Host Client forum.

Regards,

Mincho

0 Kudos