.vmx
file.VMware vSphere ESXi 8.x
VMware vSphere ESXi 7.x
VMware vSphere ESXi 6.x
Vmid
) for the virtual machine and allows it to stay in the same resource pool.
- Log in via SSH or DCUI to the ESXi host as root.
- Obtain the Inventory ID (
Vmid
) for the virtual machine using this command:
Note: The output shows virtual machines which are registered on the ESXi host.
# vim-cmd vmsvc/getallvms
You see output similar to:
Vmid Name File Guest OS Version AnnotationIn this example, the
10 ExampleVM [datastore] ExampleVM/ExampleVM.vmx windows8Server64Guest vmx-08Vmid
is10
.
- Reload the
.vmx
file using this command:# vim-cmd vmsvc/reload Vmid
# for a in $(vim-cmd vmsvc/getallvms 2>&1 |grep invalid |awk '{print $4}'|cut -d \' -f2);do vim-cmd vmsvc/reload $a;done