VMware vSphere tips and tricks

Archived

This page has been archived and will receive no further updates.

Unable to remove a NIC from a VM

  • Try powering it off first

VM NIC disconnected and unable to connect it

  1. Change the NIC to a different network
  2. Change the NIC back to the previous network, and it should connect (you should be able to change it back and connect it at the same time)

Unable to power on VM

In this case, the VM was powered on at the same time that it was moving to another server and was in a hung state. The solution:

  1. Find out which datastore and host the VM is on
  2. Remove the VM from inventory
  3. Enable SSH on an ESXi host (can be any host in the cluster)
  4. SSH to the host and register the VM:

    vim-cmd solo/registervm /vmfs/volumes/YOUR-DATASTORE/VM-NAME/VM-NAME.vmx
    

    (replace YOUR-DATASTORE with the path of your datastore and VM-NAME with the name of the VM)

  5. If you don’t see the VM in inventory, it should be there but may be out of order. You can always close and re-open the vSphere Client which should re-sort the VMs.