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.
- Turn off vSphere DRS/HA to prevent any kind of failover
- Migrate all VMs from host
- Put host into maintenance mode
- Disconnect host from vCenter
- Change management network TCP/IP settings using DCUI (KVM)
- Update DNS records for the host to reflect new IP
- SSH to vCenter and clear cache by restarting these services:
systemctl restart systemd-resolved.servic
systemctl restart dnsmasq
- Verify that you can ping host DNS from vCenter and that it resolves to correct IP
- Re-Connect host in vCenter
- Take host out of maintenance mode
- Load balance your VMs
Before you do this also review the relevant VMware KB here: https://kb.vmware.com/s/article/2084629
If you want to enable copy & paste on VMware vSphere 6.7 do the following:
- Disable Lockdown Mode if it is enabled and start the SSH service
- Log in to the ESX/ESXi host as a root user.
- 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).