Start by enabling SSH on the affected host, then use Putty (or the SSH client of your choice) and login to the host. Run the commands below to get the process ID for the affected VM and then to kill the installation process.
Within your SSH session, run the command:
vim-cmd vmscv/getallvms
Find the VMID of the VM with the stuck tools installation and run the command:
vim-cmd vmsvc/tools.cancelinstall id_number
Replace "id_number" with the correct VMID found with the first command. This will kill the VMware tools installation process allowing the VM to be moved with vMotion and the host to enter maintenance mode.