Modify node template to install additional applicationHello,<br><br>    We're evaluating Windows 2008 HPC server. One feature that we would like to see is the ability to customize a node template to install additional application automatically at install time. However, I found that the &quot;Application installation&quot; task is disappeared from task list. I tried to use &quot;Post install command&quot; to install our .msi base application (Autodesk Maya 2008), by creating a batch script in a shared directory on Head node and execute it in post install command. The command could run successfully on an on-line node, but not from the &quot;Post install command&quot; step of a newly created node. I checked the operation log and found that the command time-out and the node is reverted back to previous state.<br><br>    So the question is, what is the best way to debug the post install command?<br><br>    Also, I suspected that some services might not run at the install time which may cause the installation to failed. Is it possible to create a template task that'll execute command at firsboot?<br><br>Rgds,<br>© 2009 Microsoft Corporation. All rights reserved.Wed, 25 Mar 2009 23:52:52 Z6ad4e712-2a4b-4df5-8816-089b12b44d05http://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#6ad4e712-2a4b-4df5-8816-089b12b44d05http://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#6ad4e712-2a4b-4df5-8816-089b12b44d05Somsak Sriprayoonsakulhttp://social.microsoft.com/Profile/en-US/?user=Somsak%20SriprayoonsakulModify node template to install additional applicationHello,<br><br>    We're evaluating Windows 2008 HPC server. One feature that we would like to see is the ability to customize a node template to install additional application automatically at install time. However, I found that the &quot;Application installation&quot; task is disappeared from task list. I tried to use &quot;Post install command&quot; to install our .msi base application (Autodesk Maya 2008), by creating a batch script in a shared directory on Head node and execute it in post install command. The command could run successfully on an on-line node, but not from the &quot;Post install command&quot; step of a newly created node. I checked the operation log and found that the command time-out and the node is reverted back to previous state.<br><br>    So the question is, what is the best way to debug the post install command?<br><br>    Also, I suspected that some services might not run at the install time which may cause the installation to failed. Is it possible to create a template task that'll execute command at firsboot?<br><br>Rgds,<br>Mon, 28 Apr 2008 06:40:52 Z2008-04-28T06:40:52Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#52cd0eba-4673-42bf-bd25-6ca111cc7c6ahttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#52cd0eba-4673-42bf-bd25-6ca111cc7c6aSomsak Sriprayoonsakulhttp://social.microsoft.com/Profile/en-US/?user=Somsak%20SriprayoonsakulModify node template to install additional applicationI removed msiexec from the post_install.bat file and every things else work.<br><br>Should I install application using this step? Or should I use other task to accomplish this?<br>Mon, 28 Apr 2008 07:55:42 Z2008-04-28T07:55:42Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#5fdcac79-6251-4b6f-b61e-216297e8d91ahttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#5fdcac79-6251-4b6f-b61e-216297e8d91aparmita mehtahttp://social.microsoft.com/Profile/en-US/?user=parmita%20mehtaModify node template to install additional application<p align=left><font face=Arial size=2><strong><em>how to best install an application</em></strong> -</font></p> <p align=left>there are two ways of installing an application, firstone you have discovered, is the post-install command which is in the maintainace phase and the second way is 'Run-OS command' int he deployment phase.</p> <p align=left><strong><em>caveats</em></strong> :</p> <p align=left><em><strong>post-install command</strong></em> in the 'maintainance' phase  which means any tasks int eh maintaince phase will be run everytime you issue a 'maintain' command to the offline node. </p> <p align=left><strong><em>RunOS command</em></strong> in the third, or the deployment phase of the template is another way of wrapping your install in a cmd /bat file. always make this run -OS comman task the last task in the deployment phase.  </p> <p align=left> </p> <p align=left>The task in the deployment section gets run, once, unlike the task in the maintaince phase -- which can be run multiple times. You might want to put the installation task in the maintainance section, when you need to rev the application rapidly, this way, you do not have to deploy from baremetal ( or re-imge) everytime you need a newer version of the application. Remember, you will need to run the command twice if you want to install the new applicaiton, once to uninstall the previous version and second to install the newer version. </p> <p align=left> </p> <p align=left> </p> <p align=left><strong><em>On debugging the post-install command\run OS command</em></strong>: </p> <p align=left>it is reccomended that you test your batchcommand/script  file as you would test anyother batch/cmd/script file. Add logging and error handling. </p> <p align=left>For run OS command, use the the parameteres like continue on failure t indicate if you would like your deployment to fail if the script fails or continue on to the next step  and 'error white list' which is a list of return codes from the script, which will be reported back to the head node, but will be treated as success.</p> <p align=left>For post-install command, write a log file to the working directory if needed.</p> <p align=left> </p> <p align=left> </p> <p>thanks</p> <p align=left>-parmita</p>Mon, 28 Apr 2008 18:47:38 Z2008-04-28T18:47:38Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#b16cc1b0-1dc0-4c95-a885-a5ddfce918e6http://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#b16cc1b0-1dc0-4c95-a885-a5ddfce918e6AlexSamadhttp://social.microsoft.com/Profile/en-US/?user=AlexSamadModify node template to install additional application<p align=left><font face=Arial size=2>How would you install a service/feature like snmp service</font></p>Mon, 28 Apr 2008 22:34:16 Z2008-04-28T22:34:16Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#0a13e25b-aaf3-4db7-bf9b-609a8b9dc67ahttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#0a13e25b-aaf3-4db7-bf9b-609a8b9dc67aparmita mehtahttp://social.microsoft.com/Profile/en-US/?user=parmita%20mehtaModify node template to install additional application<p align=left><font face=Arial size=2>w2k8 provides a command line interface to server manager  to install a role/feature in w2k8.</font></p> <p align=left>you can create a script( batch file) to do this.-- or just supply the command line as a 'run OS command'.</p> <p align=left> </p>Tue, 20 May 2008 17:47:44 Z2008-05-20T17:47:44Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#b98f2c3c-b70c-40fe-ae6e-0f443700f005http://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#b98f2c3c-b70c-40fe-ae6e-0f443700f005Brian Brokerhttp://social.microsoft.com/Profile/en-US/?user=Brian%20BrokerModify node template to install additional application<p align=left><font face=Verdana>Hi Alex,</font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>For SNMP, you could try &quot;servermanagercmd -install SNMP-Services&quot;.</font></p> <p align=left><font face=Verdana>For the .msi installer, you might try copying the msi to the compute node first then installing with &quot;msiexec /i <em>package.msi</em> /quiet&quot;</font></p> <p align=left><font face=Verdana></font> </p> <p align=left><font face=Verdana>--Brian</font></p>Wed, 21 May 2008 09:37:48 Z2008-05-21T09:37:48Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#0c59ebcc-0407-4a8a-b836-54695340affdhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#0c59ebcc-0407-4a8a-b836-54695340affdAlexSamadhttp://social.microsoft.com/Profile/en-US/?user=AlexSamadModify node template to install additional application<p align=left><font face=Arial size=2>Hi Brian</font></p> <p align=left> </p> <p align=left>Thanks, I presume I can find these .msi file on the install dvd/cd, I don't have to extract them from a cab file.</p> <p align=left> </p> <p align=left>Whats the difference between installign with servermanagercmd and msiexec.  My thought was to create a job to run agsinst newly added compute nodes to add snmp or other appllications to the compute nodes</p> <p align=left> </p> <p align=left>Alex</p>Mon, 02 Jun 2008 01:22:59 Z2008-06-02T01:22:59Zhttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#8f533670-6d2e-4ef0-b638-491cafe2985chttp://social.microsoft.com/Forums/en-US/windowshpcbeta/thread/6ad4e712-2a4b-4df5-8816-089b12b44d05#8f533670-6d2e-4ef0-b638-491cafe2985cBrian Brokerhttp://social.microsoft.com/Profile/en-US/?user=Brian%20BrokerModify node template to install additional application<p>Servermanagercmd is a command-line utility that can be used to install Windows Server 2008 roles and features (run 'servermanagercmd' from a cmd prompt for more info).  Msiexec provides the means to install, modify, and perform operations on Windows Installer packages from the command line (using this tool will depend greatly on your software provider's packaging implementation; you should typically run their setup.exe if provided).<br><br>--Brian</p>Wed, 02 Jul 2008 06:56:01 Z2008-07-02T06:56:01Z