<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Install VMware Tools with VMware Sphere SDK in vSphere SDK for Perl Discussions</title>
    <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842669#M710</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it doesn't fail now, but cannot install due to the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initiated VMware Tools install or upgrade&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Cannot complete &lt;/P&gt;&lt;P&gt;operation because &lt;/P&gt;&lt;P&gt;VMware Tools is not &lt;/P&gt;&lt;P&gt;running in this &lt;/P&gt;&lt;P&gt;virtual machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect it to install the VMware Tools if not present...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Apr 2015 22:02:41 GMT</pubDate>
    <dc:creator>ymnick</dc:creator>
    <dc:date>2015-04-03T22:02:41Z</dc:date>
    <item>
      <title>Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842662#M703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can we install VMware tools with VMware Sphere SDK?&lt;/P&gt;&lt;P&gt;In &lt;A href="http://pubs.vmware.com/vsphere-50/topic/com.vmware.sdk.doc_50/GUID-E0BBED4C-8C5A-4C01-B21A-575F85E9A650.html" shape="rect"&gt;vSphere API/SDK Documentation&lt;/A&gt; writes follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV class="B_Body"&gt;&lt;A name="1118546" shape="rect"&gt;VirtualMachine&lt;/A&gt; includes three methods for automating installation and upgrade of VMware Tools.&lt;/DIV&gt;&lt;DIV class="BL_BulletList_outer" style="MARGIN-LEFT: 0pt"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR style="VERTICAL-ALIGN: baseline"&gt;&lt;TD&gt;&lt;DIV class="BL_BulletList_inner" style="width: 18pt; white-space: nowrap;"&gt;■&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="100%"&gt;&lt;DIV class="BL_BulletList_inner"&gt;&lt;A name="1118547" shape="rect"&gt;MountToolsInstaller&lt;/A&gt; – Mounts the VMware Tools CD installer as a CD-ROM for the guest operating system. To monitor the status of the tools installallation, check GuestInfo.toolsStatus. Check GuestInfo.toolsVersionStatus and GuestInfo.toolsRunningStatus for related information.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="BL_BulletList_outer" style="MARGIN-LEFT: 0pt"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR style="VERTICAL-ALIGN: baseline"&gt;&lt;TD&gt;&lt;DIV class="BL_BulletList_inner" style="width: 18pt; white-space: nowrap;"&gt;■&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="100%"&gt;&lt;DIV class="BL_BulletList_inner"&gt;&lt;A name="1118548" shape="rect"&gt;UnmountToolsInstaller&lt;/A&gt; – Unmounts the VMware Tools installer CD.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="BL_BulletList_outer" style="MARGIN-LEFT: 0pt"&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0"&gt;&lt;TBODY&gt;&lt;TR style="VERTICAL-ALIGN: baseline"&gt;&lt;TD&gt;&lt;DIV class="BL_BulletList_inner" style="width: 18pt; white-space: nowrap;"&gt;■&lt;/DIV&gt;&lt;/TD&gt;&lt;TD width="100%"&gt;&lt;DIV class="BL_BulletList_inner"&gt;&lt;A name="1118549" shape="rect"&gt;UpgradeToolsTask&lt;/A&gt; – Performs an upgrade of VMware Tools. This method assumes VMware Tools has been installed and is running. The method takes one argument, InstallerOptions, which allows you to specify command-line options passed to the installer to modify the installation procedure for tools.&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;DIV class="B_Body"&gt;&lt;A name="1118550" shape="rect"&gt;Use the&lt;/A&gt;ToolsConfigInfo data object in VirtualMachineConfigSpec.toolsInfo property to specify the settings for the VMware Tools software running on the guest operating system.&lt;/DIV&gt;&lt;DIV class="B_Body"&gt; &lt;/DIV&gt;&lt;DIV class="B_Body"&gt;After my test，I can only upgrade tools but can't install.&lt;/DIV&gt;&lt;DIV class="B_Body"&gt;Could you give me some advice to solve this problem？&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Apr 2013 11:58:16 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842662#M703</guid>
      <dc:creator>X_LIN</dc:creator>
      <dc:date>2013-04-15T11:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842663#M704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Someone can solve this problem? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 13:20:24 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842663#M704</guid>
      <dc:creator>X_LIN</dc:creator>
      <dc:date>2013-04-16T13:20:24Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842664#M705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can wrap the following instructions with a GuestOps RunProgramInGuest call.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vmtools.install.doc%2FGUID-CD6ED7DD-E2E2-48BC-A6B0-E0BB81E05FA3.html"&gt;http://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vmtools.install.doc%2FGUID-CD6ED7DD-E2E2-48BC-A6B0-E0BB81E05FA3.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Others have also created custom installation scripts for VMware Tools that you can invoke as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Without VMware Tools, you won't have access to the GuestOperations API and your VM may not have proper drivers for network connectivity.&amp;nbsp; For this reason, VMware Tools are usually baked into Templates and deployed by cloning and customization.&amp;nbsp; However, if you can run some remote scripting execution, you can execute the remote installation process and reboot your VM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, you could create a custom ISO image with the automated installation command in a batch file.&amp;nbsp; Then use WMI to remotely execute it (may be some permission issues, been a while).&amp;nbsp; May also be possible to use the autoplay functionality, though I know that has some caveats that may prevent an automated install.&amp;nbsp; I have some customers who run an SSHD instance on their Windows VMs for consistency between Linux VMs for remote automation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Linux is a similar process, but you may want to rebuild your tools package and pack it into an RPM or DEB file for simplicity of install.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Most tend to incorporate the tools installation process into their OS build process or templates.&amp;nbsp; However, with a little automation and the right permissions you can remotely install them as well.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Apr 2013 13:44:44 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842664#M705</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2013-04-16T13:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842665#M706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please clarify what you are referring to by 'GuestOps' and 'RunProgramInGuest'? I am looking how to automate VMware Tools installation on Windows virtual machines using vSphere API with Perl SDK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;YM.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Apr 2015 23:43:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842665#M706</guid>
      <dc:creator>ymnick</dc:creator>
      <dc:date>2015-04-01T23:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842666#M707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, so GuestOps lets you run scripts or progams in the GuestOS through the VMware Tools channel.&amp;nbsp; However, since you are trying to install VMware Tools, that's not an option &lt;img id="smileywink" class="emoticon emoticon-smileywink" src="https://communities.vmware.com/i/smilies/16x16_smiley-wink.png" alt="Smiley Wink" title="Smiley Wink" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In terms of automating the VMware Tools install, you can get more information from the vSphere 5 documentation.&amp;nbsp; There's an option for unattended installation of VMware tools in vCenter. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A href="https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vmtools.install.doc%2FGUID-CD6ED7DD-E2E2-48BC-A6B0-E0BB81E05FA3.html" title="https://pubs.vmware.com/vsphere-50/index.jsp?topic=%2Fcom.vmware.vmtools.install.doc%2FGUID-CD6ED7DD-E2E2-48BC-A6B0-E0BB81E05FA3.html"&gt;vSphere Documentation Center&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sorry, missed the original question.&amp;nbsp; For API invocation, I haven't tried it, but UpgradeTools_Task() may be the solution.&amp;nbsp; You'll see the &lt;STRONG&gt;installerOptions &lt;/STRONG&gt;property, which is just a string command line argument.&amp;nbsp; So I would guess despite the name it will also invoke the base setup.exe (and do an install).&amp;nbsp; Never tried it myself though.&amp;nbsp; I found a reference to using it with PowerCLI (which is the same API call) for installation, so once you have your command line arguments correct, should do what you need.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 12:59:21 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842666#M707</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-04-03T12:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842667#M708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response. I tried the suggested in the documentation arguments before posting my question but it didn't work, perhaps I am not doing it the right way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; $target_vm-&amp;gt;UpgradeTools_Task('/S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;throws the following exception:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error: Failed to handle message: Undefined subroutine &amp;amp;Unexpected arguments: /S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs" at (eval 82) line 143&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VimService::build_arg_string('ARRAY(0xae34d08)', 'HASH(0xae34c88)') called at (eval 82) line 3033&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VimService::UpgradeTools_Task('VimService=HASH(0xb187868)', '_this', 'ManagedObjectReference=HASH(0xa8cb7f8)', '/S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"', undef) called at .../VICommon.pm line 1699&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ViewBase::invoke('VirtualMachine=HASH(0xb4106c8)', 'UpgradeTools_Task', '/S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"', undef) called at ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VirtualMachineOperations::UpgradeTools_Task('VirtualMachine=HASH(0xb4106c8)', '/S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"') called at ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anything obvious I miss?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:17:23 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842667#M708</guid>
      <dc:creator>ymnick</dc:creator>
      <dc:date>2015-04-03T18:17:23Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842668#M709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you forgot the installerOptions named parameter:&lt;/P&gt;&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;$target_vm-&amp;gt;UpgradeTools_Task(installerOptions =&amp;gt; qq|/S /v "/qn REBOOT=R ADDLOCAL=ALL REMOVE=Hgfs"|);&lt;/SPAN&gt;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 18:36:46 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842668#M709</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-04-03T18:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842669#M710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, it doesn't fail now, but cannot install due to the following error:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initiated VMware Tools install or upgrade&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Cannot complete &lt;/P&gt;&lt;P&gt;operation because &lt;/P&gt;&lt;P&gt;VMware Tools is not &lt;/P&gt;&lt;P&gt;running in this &lt;/P&gt;&lt;P&gt;virtual machine.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would expect it to install the VMware Tools if not present...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 22:02:41 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842669#M710</guid>
      <dc:creator>ymnick</dc:creator>
      <dc:date>2015-04-03T22:02:41Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842670#M711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, afraid of that.&amp;nbsp; You'll have to use WinRM or WMI to remote execute the tools installer.&amp;nbsp; Or bake it into the Windows templates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Apr 2015 23:02:32 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842670#M711</guid>
      <dc:creator>stumpr</dc:creator>
      <dc:date>2015-04-03T23:02:32Z</dc:date>
    </item>
    <item>
      <title>Re: Install VMware Tools with VMware Sphere SDK</title>
      <link>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842671#M712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Understood, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 23:17:00 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/vSphere-SDK-for-Perl-Discussions/Install-VMware-Tools-with-VMware-Sphere-SDK/m-p/842671#M712</guid>
      <dc:creator>ymnick</dc:creator>
      <dc:date>2015-04-09T23:17:00Z</dc:date>
    </item>
  </channel>
</rss>

