<?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>article How To: Configure freshly booted ESX with PowerShell in VMware PowerCLI Documents</title>
    <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/How-To-Configure-freshly-booted-ESX-with-PowerShell/ta-p/2778737</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As part of a larger project I've been working on a set of scripts which&amp;nbsp; configure a freshly-installed ESX (or ESXi) system into Virtual Center&amp;nbsp; (after first attempting to remove previous VC state and clean state from&amp;nbsp; the host).&amp;nbsp; Currently they follow a typical post-boot configuration&amp;nbsp; pattern:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set ESX password&lt;/LI&gt;&lt;LI&gt;Add to Virtual Center cluster&lt;/LI&gt;&lt;LI&gt;Configure Virtual Switches&lt;/LI&gt;&lt;LI&gt;Configure Port Groups&lt;/LI&gt;&lt;LI&gt;Add NFS partitions&lt;/LI&gt;&lt;LI&gt;Add iSCSI partitions&lt;/LI&gt;&lt;LI&gt;Configure NTP&lt;/LI&gt;&lt;LI&gt;Configure VMotion&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Before trying, modify esx-master.ps1 and esx-profile.ps1 to local conditions (or your password will be set to "CHANGEME").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command: esx-autoconfigure.ps1 "hostname|ip-address"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this is my initial foray into PowerShell, please excuse any idiosyncracies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a work-in-progress - feedback welcome.&amp;nbsp; Points awarded for the best suggestions in the next few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lance&lt;/P&gt;&lt;P&gt;(See &lt;A _jive_internal="true" href="https://communities.vmware.com/docs/DOC-7512" title="How to PXE boot and automatically configure Stateless VMware ESXi Server.&amp;nbsp; The configuration tools will also work against ESX Classic."&gt;boot/config doc).&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;My comments are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;P&gt;&lt;A class="jive-link-external" href="http://www.vmware.com/landing_pages/toolkit_contest.html"&gt;http://www.vmware.com/landing_pages/toolkit_contest.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Cool, &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;I've been working on something similar for a project at work (not to mention for my book).&lt;/P&gt;&lt;P&gt;3. I'm a judge for #1, so I'll refrain from commenting directly on your&amp;nbsp; code in case you decide to submit it, which I suggest you do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Author of the upcoming book:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Co-Host, PowerScripting Podcast (&lt;A class="jive-link-external" href="http://powerscripting.net/"&gt;http://powerscripting.net&lt;/A&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Some suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;configure or check DNS and gateways before steps 3/4/7/8. Critical for clustering, HA and DRS!&lt;/LI&gt;&lt;LI&gt;configure the firewall&lt;/LI&gt;&lt;LI&gt;(eventually) configure some advanced ESX settings. See for example a recent discussion about NFS.MaxVolumes&lt;/LI&gt;&lt;LI&gt;check (and eventually configure) licensing before using clustering with HA/DRS/vMotion&lt;/LI&gt;&lt;LI&gt;configure (or adjust) resource pool(s). Adding an ESX server will increase the available resources.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;Very nice, you should definately enter the comp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Alan Renouf&lt;BR /&gt; VMware, Citrix, Microsoft Consultant&lt;BR /&gt; UK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external" href="http://teckinfo.blogspot.com/"&gt;My Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;iberc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a large roll-out of esxi. I have been working on the exact&amp;nbsp; same as what you're doing. If I can add anything across what you got i&amp;nbsp; may post it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're scripts look to be more portable. This is my first dive into&amp;nbsp; significant scripting not to mention powershell. The envronment i'm&amp;nbsp; building for is very homogenous so the work reflects it. this is&amp;nbsp; definately work in progress. these files on their own need to be edited&amp;nbsp; etc and linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been looking for awhile now for configuration of ESXi via&amp;nbsp; powershell and it seems very limited.&amp;nbsp; Most resources are directed at&amp;nbsp; management of existing.&lt;BR /&gt; &lt;BR /&gt; Message was edited by: olan025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Lance works for VMware, no $5000 for him, for us 3rd prize is we're fired &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;My cover has been blown. - l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Looks great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lance, do you know Aiden Dalgleish? He's a PSO Consultant from the UK&amp;nbsp; and already created a hell of a lot scripts for installing. Talk to him,&amp;nbsp; he's got some cool stuff!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duncan&lt;BR /&gt; My virtualisation blog:&lt;BR /&gt; &lt;A class="jive-link-external" href="http://www.yellow-bricks.com/"&gt;http://www.yellow-bricks.com&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt; If you find this information useful, please award points for "correct" or "helpful".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Hal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about making an exception to allow me a sneak peak at your new book?&amp;nbsp; My scripting needs to be tuned up as you can tell i'm a beginner if you&amp;nbsp; looked at my earlier attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; I'm making changes and updates to those, if anyone does care for them&amp;nbsp; post it. otherwise my stuff is pretty basic compared to Lance's&amp;nbsp; functionalized code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; This document was generated from the following thread: &lt;A _jive_internal="true" href="https://communities.vmware.com/thread/161304"&gt;How To: Configure freshly booted ESX with PowerShell&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 18 Aug 2008 15:28:14 GMT</pubDate>
    <dc:creator>dmitrif</dc:creator>
    <dc:date>2008-08-18T15:28:14Z</dc:date>
    <item>
      <title>How To: Configure freshly booted ESX with PowerShell</title>
      <link>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/How-To-Configure-freshly-booted-ESX-with-PowerShell/ta-p/2778737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As part of a larger project I've been working on a set of scripts which&amp;nbsp; configure a freshly-installed ESX (or ESXi) system into Virtual Center&amp;nbsp; (after first attempting to remove previous VC state and clean state from&amp;nbsp; the host).&amp;nbsp; Currently they follow a typical post-boot configuration&amp;nbsp; pattern:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Set ESX password&lt;/LI&gt;&lt;LI&gt;Add to Virtual Center cluster&lt;/LI&gt;&lt;LI&gt;Configure Virtual Switches&lt;/LI&gt;&lt;LI&gt;Configure Port Groups&lt;/LI&gt;&lt;LI&gt;Add NFS partitions&lt;/LI&gt;&lt;LI&gt;Add iSCSI partitions&lt;/LI&gt;&lt;LI&gt;Configure NTP&lt;/LI&gt;&lt;LI&gt;Configure VMotion&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Before trying, modify esx-master.ps1 and esx-profile.ps1 to local conditions (or your password will be set to "CHANGEME").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Command: esx-autoconfigure.ps1 "hostname|ip-address"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As this is my initial foray into PowerShell, please excuse any idiosyncracies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is a work-in-progress - feedback welcome.&amp;nbsp; Points awarded for the best suggestions in the next few days.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lance&lt;/P&gt;&lt;P&gt;(See &lt;A _jive_internal="true" href="https://communities.vmware.com/docs/DOC-7512" title="How to PXE boot and automatically configure Stateless VMware ESXi Server.&amp;nbsp; The configuration tools will also work against ESX Classic."&gt;boot/config doc).&lt;/A&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;My comments are as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;SPAN&gt;1.&lt;/SPAN&gt;&lt;P&gt;&lt;A class="jive-link-external" href="http://www.vmware.com/landing_pages/toolkit_contest.html"&gt;http://www.vmware.com/landing_pages/toolkit_contest.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2. Cool, &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.vmware.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;I've been working on something similar for a project at work (not to mention for my book).&lt;/P&gt;&lt;P&gt;3. I'm a judge for #1, so I'll refrain from commenting directly on your&amp;nbsp; code in case you decide to submit it, which I suggest you do.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Author of the upcoming book:&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external" href="http://sapienpress.com/vmware.asp"&gt;Managing VMware Infrastructure with PowerShell&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Co-Host, PowerScripting Podcast (&lt;A class="jive-link-external" href="http://powerscripting.net/"&gt;http://powerscripting.net&lt;/A&gt;&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Some suggestions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;configure or check DNS and gateways before steps 3/4/7/8. Critical for clustering, HA and DRS!&lt;/LI&gt;&lt;LI&gt;configure the firewall&lt;/LI&gt;&lt;LI&gt;(eventually) configure some advanced ESX settings. See for example a recent discussion about NFS.MaxVolumes&lt;/LI&gt;&lt;LI&gt;check (and eventually configure) licensing before using clustering with HA/DRS/vMotion&lt;/LI&gt;&lt;LI&gt;configure (or adjust) resource pool(s). Adding an ESX server will increase the available resources.&lt;/LI&gt;&lt;/UL&gt;&lt;HR /&gt;&lt;P&gt;Very nice, you should definately enter the comp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; Alan Renouf&lt;BR /&gt; VMware, Citrix, Microsoft Consultant&lt;BR /&gt; UK&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external" href="http://teckinfo.blogspot.com/"&gt;My Blog&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;iberc,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm doing a large roll-out of esxi. I have been working on the exact&amp;nbsp; same as what you're doing. If I can add anything across what you got i&amp;nbsp; may post it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You're scripts look to be more portable. This is my first dive into&amp;nbsp; significant scripting not to mention powershell. The envronment i'm&amp;nbsp; building for is very homogenous so the work reflects it. this is&amp;nbsp; definately work in progress. these files on their own need to be edited&amp;nbsp; etc and linked.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been looking for awhile now for configuration of ESXi via&amp;nbsp; powershell and it seems very limited.&amp;nbsp; Most resources are directed at&amp;nbsp; management of existing.&lt;BR /&gt; &lt;BR /&gt; Message was edited by: olan025&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Lance works for VMware, no $5000 for him, for us 3rd prize is we're fired &lt;img id="smileysad" class="emoticon emoticon-smileysad" src="https://communities.vmware.com/i/smilies/16x16_smiley-sad.png" alt="Smiley Sad" title="Smiley Sad" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;My cover has been blown. - l&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Looks great!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lance, do you know Aiden Dalgleish? He's a PSO Consultant from the UK&amp;nbsp; and already created a hell of a lot scripts for installing. Talk to him,&amp;nbsp; he's got some cool stuff!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Duncan&lt;BR /&gt; My virtualisation blog:&lt;BR /&gt; &lt;A class="jive-link-external" href="http://www.yellow-bricks.com/"&gt;http://www.yellow-bricks.com&lt;/A&gt;&lt;BR /&gt; &lt;BR /&gt; If you find this information useful, please award points for "correct" or "helpful".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;Hal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How about making an exception to allow me a sneak peak at your new book?&amp;nbsp; My scripting needs to be tuned up as you can tell i'm a beginner if you&amp;nbsp; looked at my earlier attachments.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; I'm making changes and updates to those, if anyone does care for them&amp;nbsp; post it. otherwise my stuff is pretty basic compared to Lance's&amp;nbsp; functionalized code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; This document was generated from the following thread: &lt;A _jive_internal="true" href="https://communities.vmware.com/thread/161304"&gt;How To: Configure freshly booted ESX with PowerShell&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Aug 2008 15:28:14 GMT</pubDate>
      <guid>https://communities.vmware.com/t5/VMware-PowerCLI-Documents/How-To-Configure-freshly-booted-ESX-with-PowerShell/ta-p/2778737</guid>
      <dc:creator>dmitrif</dc:creator>
      <dc:date>2008-08-18T15:28:14Z</dc:date>
    </item>
  </channel>
</rss>

