|
Looked at this document: http://www.vmware.com/files/pdf/vi_toolkit_win_1.0_samples.pdf tried the command : help update-tools But this did not helped me. I though it could be the common parameters, but i think it is the wrong direction. http://www.vmware.com/support/developer/windowstoolkit/wintk10/doc/viwin_admin.pdf Ok tried look at this command . Get-Help about_CommonParameters Allthough did not help. Last i look at the vi toolkit cmdlets reference, but it is nothing telling about a no reboot switch. So what i am looking for is a paramater for <code>REBOOT="ReallySuppress"like you cando it from cmd in windows. </code> <code>msiexec -i "C:\install\vmware-tools\ESX-61618\vmware tools.msi" addlocal=all REMOVE=Hgfs /qn REBOOT="ReallySuppress"</code> |
|
Reply
Re: How to install VMware tools without a reboot? Sep 14, 2008 5:37 PM
Reply
2.
Re: How to install VMware tools without a reboot? Sep 14, 2008 5:37 PM
If you want to supply switches you'll have to do it the hard way as Update-Tools cmdlet doesn't support this feature. Luckily, the hard way isn't all that hard, and I happened to blog about last night. http://halr9000.com/article/605
In the article where you see $null, you can supply arguments to the installer. I've never done so, so I can't tell you precisely how the command will work but that's how its done. e.g. $installerArgs = 'REBOOT="ReallySuppress"' Get-VM | % { (Get-View $_).UpgradeTools_Task($installerArgs) } Test it on a test VM first of course. Just put a VM name following Get-VM to do that. Author of the upcoming book: Managing VMware Infrastructure with PowerShell Co-Host, PowerScripting Podcast (http://powerscripting.net) |
|
Reply
Re: How to install VMware tools without a reboot? Nov 11, 2008 7:25 AM
Reply
3.
Re: How to install VMware tools without a reboot? Nov 11, 2008 7:25 AM
We have the same need to install VMware Tools automatically without a reboot. The reboot will be done during a security patch rollout. In this case we can combine tasks together.
I followed this blog as other ones. The following command can be performed by PowerShell successfully, but a reboot is done after the VMware Tools upgrade. connect-viserver -server rbams3t3-v2 get-vm -name rkams517-v3 | get-view | % { $_.UpgradeTools_task("") | get-viobjectbyviview | wait-task } Afterwards I followed the advise from the previous blog, with the following command which should perform it without reboot: $installerArgs = 'REBOOT="ReallySuppress"' get-vm -name rkams517-v3 | get-view | % { $_.UpgradeTools_task($installerArgs) | get-viobjectbyviview | wait-task } In the virtual machine I received the following message: InstallShield Command line parameters: /L language ID /S Hide initialization dialog. For silent mode use: /S/v/qn /V parameters to MsiExec.exe /UA<url to InstMsiA.exe> /UW<url to InstMsiW.exe> /UM<url to msi package> OK What could be the correct parameter? |
|
Reply
Re: How to install VMware tools without a reboot? Nov 11, 2008 1:31 PM
Reply
4.
Re: How to install VMware tools without a reboot? Nov 11, 2008 1:31 PM
I have not done this with PowerShell yet, but this is how I do it via shell script on the Windows VMs. VMwareToolsUpgrader just get the tools distribution and passes the rest of the arguments after -p to Setup.exe. You can see that arguments are then passed to msiexec using the /v switch. Not sure if adding /v"/qn /norestar" will help you in this case or not. "C:\Program Files\VMware\VMware Tools\VMwareToolsUpgrader.exe" -p "/s /v\"/qn /norestart /L*v C:\Windows\Temp\ToolsUpgrade.log\"" I would recommend using something like Process Monitor or Process Explorer to see what is actually running on the VM when you run your code (in PM you can filter on vmwaretoolsupgrader.exe, setup.exe, and msiexec.exe). This is how I managed to get a working command string like above. Snapshots are clearly a good thing in this situation so you can repeat the same actions. |
|
Reply
Re: How to install VMware tools without a reboot? Nov 13, 2008 12:55 AM
|
|
Reply
Re: How to install VMware tools without a reboot? Nov 19, 2008 6:07 AM
Reply
6.
Re: How to install VMware tools without a reboot? Nov 19, 2008 6:07 AM
Hi I came accross this .. We also have the requirement to automate the upgrade vmware tools on 190 windows virtual machine with the no-reboot option in a cluster. If powershell can do this ..it will be a massive plus Any one got this working yet |
|
Reply
Re: How to install VMware tools without a reboot? Nov 19, 2008 6:25 AM
Reply
7.
Re: How to install VMware tools without a reboot? Nov 19, 2008 6:25 AM
Auto upgrading vmwaretools with the no rebbot option will be just great.. Please let me know when you get this ??? Cheers |
|
Reply
Re: How to install VMware tools without a reboot? Nov 19, 2008 7:10 AM
|
|
Reply
Re: How to install VMware tools without a reboot? Nov 19, 2008 7:42 AM
Reply
9.
Re: How to install VMware tools without a reboot? Nov 19, 2008 7:42 AM
For No reboot $cluster = "< >" # Enter the required cluster name $installerArgs = 'REBOOT="ReallySuppress"' Get-Cluster -Name $cluster | Get-VM | % { (Get-View $_).UpgradeTools_Task($installerArgs) } As stated above Cheers |
|
Reply
Re: How to install VMware tools without a reboot? Nov 19, 2008 7:45 AM
Reply
10.
Re: How to install VMware tools without a reboot? Nov 19, 2008 7:45 AM
ok Cheers !!!!!!!
|
|
Reply
Re: How to install VMware tools without a reboot? Nov 25, 2008 1:35 PM
Reply
12.
Re: How to install VMware tools without a reboot? Nov 25, 2008 1:35 PM
Combining bits of information from different postings, I came up with this Powershell script that will update VMWare tools without reboot for all VMs within a specified cluster that have a VMWare tools status of "old": $insParm = '/s /v"/qn /norestart"' |
|
Reply
13.
Re: How to install VMware tools without a reboot? Nov 26, 2008 2:10 PM
Unfortunately none of these scripts have worked for me properly. jp1960, your script does function and run, however my VMs still reboot after installing VMware tools. Ade, your script gives me an error message because the $installerArgs seems to think it's a null variable (even though I can go in and see the contents of the variable just fine). It seems like if I try to add REBOOT=ReallySuppress to any of the scripts, it fails. Do I need to escape the = character or something? |
|
Reply
Re: How to install VMware tools without a reboot? Nov 28, 2008 10:56 PM
Reply
14.
Re: How to install VMware tools without a reboot? Nov 28, 2008 10:56 PM
JP1960's script works fine. Thanks for your help.
|