VMware Cloud Community
Mike_MT
Contributor
Contributor
Jump to solution

CentOS Linux VMware Tools Can't Cancel Install Can't vMotion

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.

Thanks,

Mike

1 Solution

Accepted Solutions
schepp
Leadership
Leadership
Jump to solution

Had this problem several times. Only way I got it to work was with powering off the VM and powering it back on.

Tim

View solution in original post

Reply
0 Kudos
8 Replies
hnandigama
VMware Employee
VMware Employee
Jump to solution

Hi Mike,

   

    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.

Thanks,

Hima Bindu

Reply
0 Kudos
schepp
Leadership
Leadership
Jump to solution

Had this problem several times. Only way I got it to work was with powering off the VM and powering it back on.

Tim

Reply
0 Kudos
SatyS
Hot Shot
Hot Shot
Jump to solution

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.


If you find this useful,please mark the answer as correct/helpful Regards, SatyS http://myvirtuallearning.wordpress.com/
Reply
0 Kudos
Mike_MT
Contributor
Contributor
Jump to solution

Had to reboot. A bit frustrating, but that's been VMware for me recently.

Thanks for your replies.

Mike

Reply
0 Kudos
ShabaA
Contributor
Contributor
Jump to solution

My solution for this was installing eject command on Centos and apply :

#fuser -mk /dev/sr0

#eject /dev/cdrom

Also if this doesn't help cancel Vmware tools installation throw esxi host.

Hope this help !

Br,

Shaba.

Reply
0 Kudos
MKguy
Virtuoso
Virtuoso
Jump to solution

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:

VMware KB: Cannot end VMware Tools installation after upgrading to VMware ESXi 5.x

-- http://alpacapowered.wordpress.com
Reply
0 Kudos
ambicapathy1982
Contributor
Contributor
Jump to solution

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.

silentgreen
Contributor
Contributor
Jump to solution

Hi ambicapathy1982,

Thank you, it works.

Reply
0 Kudos