Monday, October 14, 2013

Reload a VMs Configuration file in ESXi while the VM is still running

Here is a nice little CLi command that you can use to reload the configuration file of a VM into the ESXi hypervisor while the VM is running.

  1. SSH to the host and determine the VMID for the affected virtual machine using the command:

    vim-cmd vmsvc/getallvms | grep -i VMNAME
  2. Use the VMID from the command in step 1 to reload the configuration on the host by running the command:

    vim-cmd vmsvc/reload VMID