I have a VM which reports that tools upgrade is in progress. It's not in progress, and I don't know how to reset this...
Tools upgrade in progress - NOT
Re: ESXi 6.0 - How to match virtual disks in esxi with the devices in the OS?
you need to identify the SCSI controller from the PCI controller address, :
lrwxrwxrwx. 1 root root 9 Mar 20 03:11 pci-0000:00:10.0-scsi-0:0:1:0 -> ../../sdb
lrwxrwxrwx. 1 root root 9 Mar 20 03:16 pci-0000:02:02.0-scsi-0:0:0:0 -> ../../sdc
Re: Tools upgrade in progress - NOT
How do you know if the installation has finished/failed? It might take a while for vCenter to update the status.
Have you tried logging out & back into into vSphere?
Re: Tools upgrade in progress - NOT
Im not sure how this "update" state got started. None of the VM's in this state are actually installing tools.
They have been booted, no CD's are mounted, but I can't clear this state.
The tools are definately not being updated at this time. This has bene in this state for weeks and im trying to find a way to clear this out.
Re: Tools upgrade in progress - NOT
In this case, I'd restart vCenter services or the appliance/server itself. This should clear all "in progress" messages.
Restarting vCenter services: VMware Knowledge Base
esxi 6.5 lsusb show usb device but host only show avocent mass storage function as available usb device
Re: Tools upgrade in progress - NOT
When you right click on the Virtual Machine > Guest> Install/Upgrade VMware Tools or End VMware Tools.
Do you see all the options are grayed out ?
Re: Deleting snapshots on thin provisioned disks results in fully allocated vmdk (ESXi 6.5)
What version of vm hardware are you running and what OS? I was recently doing a little testing to see how thin disks, snapshots and auto unmap on vmfs6 will work for me and while I don't think I tested your specific scenario, here's a few things you might want to look at:
I saw a difference between hardware version 11 and 13 when I copied a file (in windows), forced windows to optimize/defrag the disk (when it's thin it knows not to do a defrag though) and then deleted the snap. In the case of hardware version 11 the disk expanded to full size. When I deleted my copied data (after the snap delete) it shrank by that amount (but never down to the original size of the vmdk without any changes). Hardware version 13 didn't behave like this (ie. it didn't expand the disk to full size when I deleted the snap)
If this is windows, did you disable the optimize disk server or the weekly scheduled task? Might try forcing the optimize if it's disabled to see if it re-thins the disk if it's already at full size
What OS? If this is windows, might be a difference between 2008 R2/2012 R2/2016 in how they behave. I think 2008 R2 was a little different than 2012 R2.
Worst case, if you want to rethin the drive, you can use sdelete (part of sysinternals tools) on windows (or whatever the equivalent in linux is) to write zeros to the free space and then shutdown the vm. Ensure there are not snapshots and at the esxi command line run the following: vmkfstools -K "mydisk.vmdk". That will hole punch the drive and shrink it back down (works for me anyway on iscsi storage backed by vmfs 5 and 6 datastores)
Re: Tools upgrade in progress - NOT
I restarted the vcenter appliance, but it's still showing the VM's as "upgrade in progress".
Re: Tools upgrade in progress - NOT
You said:
When you right click on the Virtual Machine > Guest> Install/Upgrade VMware Tools or End VMware Tools.
Im not sure where to find this set of links. Can you be more specific on what I have to navigate to and how to get there?
Re: Tools upgrade in progress - NOT
1 ) Please login to vCenter through vSphere Client or Web Client.
2 ) Please right click on the VM ( which is in progress state ) you will see "Guest" > Install/Upgrade VMware Tools or End VMware Tools.
Do you see all the options are grayed out ?
Re: Tools upgrade in progress - NOT
I found a menu item called "Unmount VMWare tools installer", but it doesn't have any effect, the VM still shows that tools installing, even though it's not and there is no CD mounted.
Re: Tools upgrade in progress - NOT
Re: Tools upgrade in progress - NOT
Re: Tools upgrade in progress - NOT
Do you have multiple vms on the same state ?
Re: Tools upgrade in progress - NOT
I had 3 VM's in this state, Using the "unmount" worked on 2 of them but the 3rd is still stuck.
Re: Tools upgrade in progress - NOT
Ok, here's what you need to do:
1. Connect by SSH to your vCenter Server
2. Run the following command to get a process ID number (replace the vm_name)
vim-cmd vmsvc/getallvms | grep "vm_name"
3. The first number on left is your process ID number
4. Kill the installation process (replace the id_number)
vim-cmd vmsvc/tools.cancelinstall id_number
Re: Tools upgrade in progress - NOT
You can try to reload the vmx if you have downtime.
You can power off the vm and then remove the vm from the Inventory and try to re-register.
Note : Please copy the location before removing the vm from the Inventory.
Re: Tools upgrade in progress - NOT
Command> vim-cmd vmsvc/getallvms | grep LDAP
Unknown command: `vim-cmd'
Command> shell
Shell access is granted to root
root@vcsa [ ~ ]# vim-cmd vmsvc/getallvms | grep LDAP
bash: vim-cmd: command not found
root@vcsa [ ~ ]#
Re: Tools upgrade in progress - NOT
Sorry, my bad - that's an ESXi command not vCenter. Try again after connecting through SSH to ESXi host running affected VM