I'm running CentOS 6.5 and have successfully installed vmtools. I need to vmotion my servers, but am getting the "virtual machine is installing VMware Tools and cannot initiate a migration operation" error.
I've already done the "vim-cmd vmsvc/tools.cancelinstall <idnum>" command, but still can't vmotion.
I've tried re-mounting/umounting the cdrom and disconnecting the cd-rom, but no luck.
Not sure what to try next. Ideas?
ESXi 5.5, vm version vmx-10, tools are current and running.
You can try ejecting the cd from inside the guest using "eject /dev/cdrom" . If it doesnt work , then you can mount an iso image from local machine and then eject it from inside the guest. If that doesnt work then you can reboot the VM to check if the issue is solved.
From the guest operating system,do a Right-click on the CD drive and click Eject.
Right-click the virtual machine and click Guest > End VMware Tools Install.
If the issue still persists perform a reboot.
My solution for this was installing eject command on Centos and apply :
#fuser -mk /dev/sr0
Also if this doesn't help cancel Vmware tools installation throw esxi host.
Hope this help !
Yeah, it s an annoying issue that the tools install task of the ESXi host is completely hung up and un-cancable (even with the vim-cmd command mentioned in VMware KB: Migrating a virtual machine fails when entering the maintenance mode with the error: Tool...)
Solution til now was to shutdown the VM but apparently this might work:
I had the similar issue for VMware team couldn't do the VMotion as the VMTools install was not ending. Tried to end it and no luck.
Did the following to End the VMTool Install and to disconnect the CDROM
1. Right click VM and click on edit settings from the VSphere
2. Look for the ISO connected to the VM, if it is not, select the VM Tools ISO for Linux from Data store and connect to it.
3. SSH to the Virtual server
4. Mount the /dev/cdrom to /mnt
5. Run eject -v /dev/cdrom
This should work and it worked for me. No server reboot required.
If the 'eject' executable is not available, copy it from any other server, else you will need to install it.