Update VMware ESXi host management IP in vSphere 6.7

Recently I had to update all the hosts in my cluster to a new IP to move them over to a different VLAN. There is a lot of information out there on how to do this, here is what worked for me.

  1. Turn off vSphere DRS/HA to prevent any kind of failover
  2. Migrate all VMs from host
  3. Put host into maintenance mode
  4. Disconnect host from vCenter
  5. Change management network TCP/IP settings using DCUI (KVM)
  6. Update DNS records for the host to reflect new IP
  7. SSH to vCenter and clear cache by restarting these services:
    systemctl restart systemd-resolved.servic
    systemctl restart dnsmasq
  8. Verify that you can ping host DNS from vCenter and that it resolves to correct IP
  9. Re-Connect host in vCenter
  10. Take host out of maintenance mode
  11. Load balance your VMs

Before you do this also review the relevant VMware KB here: https://kb.vmware.com/s/article/2084629

Enable Copy & Paste in VMware vSphere 6.7

If you want to enable copy & paste on VMware vSphere 6.7 do the following:

  1. Disable Lockdown Mode if it is enabled and start the SSH service
  2. Log in to the ESX/ESXi host as a root user.
  3. Take a backup of the /etc/vmware/config file.

Open the /etc/vmware/config file using a text editor and add these entries to the file:

vmx.fullpath = "/bin/vmx"

Or you can just copy and paste this:

grep -i 'vmx.fullpath = "/bin/vmx"' /etc/vmware/config || echo 'vmx.fullpath = "/bin/vmx"' >> /etc/vmware/config
grep -i 'isolation.tools.copy.disable="FALSE"' /etc/vmware/config || echo 'isolation.tools.copy.disable="FALSE"' >> /etc/vmware/config
grep -i 'isolation.tools.paste.disable="FALSE"' /etc/vmware/config || echo 'isolation.tools.paste.disable="FALSE"' >> /etc/vmware/config

You must reboot each VM on the host (or use vMotion to move the VM back and forth).