VMware Cloud Community

ESXI 6.7, deleted virtual machines, returning after reboot

I'm getting into virtualization.
I have a Microserver HPGen8 with ESXI 6.7 with several virtual machines.
After trying vmotion to check the copy of vm between different datastores, some vm appear as invalid.

I look for information to solve the problem and I proceed like this:

[root@HPGen8:~] vim-cmd vmsvc/getallvms | grep invalid
Skipping invalid VM '18'
Skipping invalid VM '26'
Skipping invalid VM '27'
Skipping invalid VM '28'

[root@HPGen8:~] vim-cmd vmsvc/unregister 18
[root@HPGen8:~] vim-cmd vmsvc/unregister 26
[root@HPGen8:~] vim-cmd vmsvc/unregister 27
[root@HPGen8:~] vim-cmd vmsvc/unregister 28

I manually deleted the invalid vm file folders
I delete the configuration lines of each invalid machine in the vmInventory.xml file.

Invalid vms are no longer displayed in ESXI.
Restart ESXI to confirm that everything is ok, and voila, all the invalid machines reappear.

My knowledge reaches here.
I will appreciate any help.
Thank you.

0 Kudos
0 Replies