Hi, I got a script to install vmtools on guest. It works pretty well on Windows guest but I got this message on my linux guest:
Update-Tools : 4/17/2009 1:22:14 PM Update-Tools E9451E4B-D62B-4C82-8896-
0A7A56017B9D Operation "Update VMware Tools" failed for VM "vm_test" for
the following reason: VMWare Tools can be updated automatically only for Windo
ws OS. For other OS types manual intervention will be required.
At C:\Script\VM_Install_VMTools.ps1:7 char:108
+ %{if($_.config.tools.toolsVersion -eq 0 -or $_.config.tools.toolsVersion -l
t $ToolsCurrent) {Update-Tools <<<< -VM $vm} }
The VMtools manage to upgraded on linux guest and after I reboot the linux guest, the vmtools show OK.
The above message just a warning, can it be ignore/not show up? If I have more linux guest, will this halt the script and not continue with other guest?
Following is my script:
$esxName = Read-Host "Enter the ESX hostname"
$ToolsCurrent = Read-Host "What is the VMTools Version?"
foreach ($vm in $esxName)
{
Get-VM | %{$vm = $_; Get-View $_.ID} | `
%{if($_.config.tools.toolsVersion -eq 0 -or $_.config.tools.toolsVersion -lt $ToolsCurrent) {Update-Tools -VM $vm} }
}
Thank you.
Fyi; you're not the first one to see this behavior, see the last post in .
Unfortunately there has not been any feedback yet.
In the thread the installation of the VMware Tools on *nix systems has been mentioned a few times but no definitive answer.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Fyi; you're not the first one to see this behavior, see the last post in .
Unfortunately there has not been any feedback yet.
In the thread the installation of the VMware Tools on *nix systems has been mentioned a few times but no definitive answer.
Blog: lucd.info Twitter: @LucD22 Co-author PowerCLI Reference
Thanks. It just supprise me that although I got the msg but the upgrade work after manually reboot the linux guest.