<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Yellow Bricks &#187; Scripting</title>
	<atom:link href="http://www.yellow-bricks.com/tag/scripting/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.yellow-bricks.com</link>
	<description>Building blocks for virtualization...</description>
	<lastBuildDate>Fri, 10 Feb 2012 11:12:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>ESXi 5.0 and Scripted Installs</title>
		<link>http://www.yellow-bricks.com/2011/07/19/esxi-5-0-and-scripted-installs/</link>
		<comments>http://www.yellow-bricks.com/2011/07/19/esxi-5-0-and-scripted-installs/#comments</comments>
		<pubDate>Tue, 19 Jul 2011 12:03:21 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[5.0]]></category>
		<category><![CDATA[esxcli]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=8331</guid>
		<description><![CDATA[<p>When I was playing with ESXi 5.0 in my lab I noticed some changes during the installation process. Of course I had not bothered to read the documentation but when I watched the installer fail I figured it might make sense to start reading. I&#8217;ve documented the scripted installation procedure multiple times by now. But in short, when you would [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/07/19/esxi-5-0-and-scripted-installs/">ESXi 5.0 and Scripted Installs</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>When I was playing with ESXi 5.0 in my lab I noticed some changes during the installation process. Of course I had not bothered to read the documentation but when I watched the installer fail I figured it might make sense to start reading. I&#8217;ve documented the scripted installation procedure multiple times by now. But in short, when you would boot using the ESXi CD-ROM you would simply need to edit the following string and make it look as follows:</p>
<p><img class="colorbox-8331"  src="http://blogs.vmware.com/.a/6a00d8341c328153ef0148c8429437970c-pi" alt="" /></p>
<p>With ESXi 5.0 this has been simplified, this is what it looks like today:<br />
<img class="colorbox-8331"  src="http://farm3.static.flickr.com/2447/5841515603_d7ef09d6fe_z.jpg" alt="" /></p>
<p>I also want to point out that many of the standard installation commands have been replaced, removed or are not supported anymore. I created a simple script to automatically install an ESXi 5.0 host. It creates a second vSwitch and a second VMkernel for vMotion. It enables both the local and remote TSM and sets the default PSP for the EMC VMAX to Round Robin. As you can see there is a huge shift in this script towards <strong>esxcli</strong>. Although some of the old &#8220;esxcfg-*&#8221; commands might still be working they are deprecated and no longer supported. The new standard is esxcli, make sure you get familiarized with it and start using it today as over time this will be the only CLI tool available.</p>
<p><code><br />
# Sample scripted installation file<br />
# Accept the VMware End User License Agreement<br />
vmaccepteula<br />
# Set the root password for the DCUI and ESXi Shell<br />
rootpw mypassword<br />
# Install on the first local disk available on machine<br />
install --firstdisk --overwritevmfs<br />
# Set the network to DHCP on the first network adapater, use the specified hostname and do not create a portgroup for the VMs<br />
network --bootproto=dhcp --device=vmnic0 --addvmportgroup=0<br />
# reboots the host after the scripted installation is completed<br />
reboot</code></p>
<p>&nbsp;</p>
<p><code>%firstboot --interpreter=busybox<br />
# Add an extra nic to vSwitch0 (vmnic2)<br />
esxcli network vswitch standard uplink add --uplink-name=vmnic2 --vswitch-name=vSwitch0<br />
#Assign an IP-Address to the first VMkernel, this will be used for management<br />
esxcli network ip interface ipv4 set --interface-name=vmk0 --ipv4=192.168.1.41 --netmask=255.255.255.0 --type=static<br />
# Add vMotion Portgroup to vSwitch0, assign it VLAN ID 5 and create a VMkernel interface<br />
esxcli network vswitch standard portgroup add --portgroup-name=vMotion --vswitch-name=vSwitch0<br />
esxcli network vswitch standard portgroup set --portgroup-name=vMotion --vlan-id=5<br />
esxcli network ip interface add --interface-name=vmk1 --portgroup-name=vMotion<br />
esxcli network ip interface ipv4 set --interface-name=vmk1 --ipv4=192.168.2.41 --netmask=255.255.255.0 --type=static<br />
# Enable vMotion on the newly created VMkernel vmk1<br />
vim-cmd hostsvc/vmotion/vnic_set vmk1<br />
# Add new vSwitch for VM traffic, assign uplinks, create a portgroup and assign a VLAN ID<br />
esxcli network vswitch standard add --vswitch-name=vSwitch1<br />
esxcli network vswitch standard uplink add --uplink-name=vmnic1 --vswitch-name=vSwitch1<br />
esxcli network vswitch standard uplink add --uplink-name=vmnic3 --vswitch-name=vSwitch1<br />
esxcli network vswitch standard portgroup add --portgroup-name=Production --vswitch-name=vSwitch1<br />
esxcli network vswitch standard portgroup set --portgroup-name=Production --vlan-id=10<br />
# Set DNS and hostname<br />
esxcli system hostname set --fqdn=esxi5.localdomain<br />
esxcli network ip dns search add --domain=localdomain<br />
esxcli network ip dns server add --server=192.168.1.11<br />
esxcli network ip dns server add --server=192.168.1.12<br />
# Set the default PSP for EMC V-MAX to Round Robin as that is our preferred load balancing mechanism<br />
esxcli storage nmp satp set --default-psp VMW_PSP_RR --satp VMW_SATP_SYMM<br />
# Enable SSH and the ESXi Shell<br />
vim-cmd hostsvc/enable_ssh<br />
vim-cmd hostsvc/start_ssh<br />
vim-cmd hostsvc/enable_esx_shell<br />
vim-cmd hostsvc/start_esx_shell<br />
</code></p>
<p>For more deepdive information read William&#8217;s post on <a href="http://www.virtuallyghetto.com/2011/07/major-enhancements-in-esxcli-for.html">ESXCLI</a> and <a href="http://www.virtuallyghetto.com/2011/07/automating-esxi-5x-kickstart-tips.html">Scripted Installs</a>.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/07/19/esxi-5-0-and-scripted-installs/">ESXi 5.0 and Scripted Installs</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2011/07/19/esxi-5-0-and-scripted-installs/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>New version of RVTools!</title>
		<link>http://www.yellow-bricks.com/2011/04/11/new-version-of-rvtools/</link>
		<comments>http://www.yellow-bricks.com/2011/04/11/new-version-of-rvtools/#comments</comments>
		<pubDate>Mon, 11 Apr 2011 18:09:52 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[tool]]></category>
		<category><![CDATA[Tools]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=8057</guid>
		<description><![CDATA[<p>Rob just released a brand new version of RVTools. So what&#8217;s new? Version 3.1 (April, 2011) Logon form tab order rearranged Logon form will remember your last selected host / vCenter server On vInfo new fields Provisioned, Used and shared storage On vInfo new fields install Boot Required, number of Virtual Disks On vInfo new fields Fault Tolerance State,  FT [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/04/11/new-version-of-rvtools/">New version of RVTools!</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Rob just released a brand new version of <a href="http://www.robware.net/">RVTools</a>. So what&#8217;s new?</p>
<blockquote><p>Version 3.1 (April, 2011)</p>
<ul>
<li>Logon form tab order rearranged</li>
<li>Logon form will remember your last selected host / vCenter server</li>
<li>On vInfo new fields Provisioned, Used and shared storage</li>
<li>On vInfo new fields install Boot Required, number of Virtual Disks</li>
<li>On vInfo new fields Fault Tolerance State,  FT Latency Status, FT Band width and FT Secondary Latency</li>
<li>On vInfo new field 128-bit SMBIOS UUID of the virtual machine.</li>
<li>On vDatastore new fields Total provisioned, Used and shared storage</li>
<li>On vDatastore new fields SIOC enabled flag and congested threshold value</li>
<li>On vDisk new field disk persistence mode.</li>
<li>On vNetwork all IP addresses of adapter are now visible</li>
<li>On vMemory new field distributed Memory Entitlement</li>
<li>On vCPU new fields static Cpu Entitlement and field distributed Cpu Entitlement</li>
<li>On vHost new fields Current EVC mode and Max EVC mode</li>
<li>New batch command line parameters -u user and -p password</li>
<li>Bugfix: custom fields not always visible on vSnapshot tab.</li>
<li>Bugfix: Export to Excel, some numeric columns are saved as text instead of numbers</li>
<li>RVToolsBatch.cmd with send by email example deployed in RVTools program file directory</li>
</ul>
</blockquote>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/04/11/new-version-of-rvtools/">New version of RVTools!</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2011/04/11/new-version-of-rvtools/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Connection problems with PowerCLI due to proxy settings</title>
		<link>http://www.yellow-bricks.com/2011/02/24/connection-problems-with-powercli-due-to-proxy-settings/</link>
		<comments>http://www.yellow-bricks.com/2011/02/24/connection-problems-with-powercli-due-to-proxy-settings/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 11:59:30 +0000</pubDate>
		<dc:creator>repping</dc:creator>
				<category><![CDATA[powerCLI]]></category>
		<category><![CDATA[4.1]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=7337</guid>
		<description><![CDATA[<p>I was able to connect my PowerCLI instance without any problems to my vCenter, until all of a sudden I got the following error: Connect-VIServer : 8/12/2010 11:51:36 Connect-VIServer Could not connect using the requested protocol. I discovered that this was due to a change in the Proxy Server settings on the client. After removing this proxy address everything was [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/02/24/connection-problems-with-powercli-due-to-proxy-settings/">Connection problems with PowerCLI due to proxy settings</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I was able to connect my PowerCLI instance without any problems to my vCenter, until all of a sudden I got the following error:</p>
<p style="padding-left: 30px;"><span style="color: #888888;"> Connect-VIServer : 8/12/2010 11:51:36 Connect-VIServer<br />
Could not connect using the requested protocol.</span></p>
<p><span style="color: #000000;">I discovered that this was due to a change in the Proxy Server settings on the client. After removing this proxy address everything was back to normal.</span></p>
<p><span style="color: #000000;">-ray<br />
</span></p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/02/24/connection-problems-with-powercli-due-to-proxy-settings/">Connection problems with PowerCLI due to proxy settings</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2011/02/24/connection-problems-with-powercli-due-to-proxy-settings/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Using the Out-GridView feature in PowerCLI</title>
		<link>http://www.yellow-bricks.com/2011/02/24/using-the-out-gridview-feature-in-powercli/</link>
		<comments>http://www.yellow-bricks.com/2011/02/24/using-the-out-gridview-feature-in-powercli/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 11:52:47 +0000</pubDate>
		<dc:creator>repping</dc:creator>
				<category><![CDATA[powerCLI]]></category>
		<category><![CDATA[powercli]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=7332</guid>
		<description><![CDATA[<p>I wanted to output some data with PowerCLI using the Out-GridView cmdlet. Reason for using this cmdlet is that I needed to create an index for the .vmdk&#8217;s  attached to the virtual machines and the number varies, however I encountered the following error on my system: Out-GridView : To use the Out-GridView cmdlet, install the Windows PowerShell Integrated Scripting Environment [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/02/24/using-the-out-gridview-feature-in-powercli/">Using the Out-GridView feature in PowerCLI</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I wanted to output some data with PowerCLI using the <a title="Out-GridView" href="http://technet.microsoft.com/en-us/library/ff730930.aspx">Out-GridView</a> cmdlet. Reason for using this cmdlet is that I needed to create an index for the .vmdk&#8217;s  attached to the virtual machines and the number varies, however I encountered the following error on my system:</p>
<p style="padding-left: 30px;"><span style="color: #808080;">Out-GridView : To use the Out-GridView cmdlet, install the Windows PowerShell Integrated Scripting Environment feature from Server Manager. (Could not load file or assembly &#8216;Microsoft.PowerShell.GraphicalHost, Version=1.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35&#8242; or one of its dependencies. The system cannot find the file specified.)</span></p>
<p>After some troubleshooting I discovered that this can be resolved easily by installing PowerShell ISE, which is an optional feature and requires .Net 3.5 SP1, to install this on Windows Server 2008 R2, use the Add Features Wizard or run the following Powershell command:</p>
<p style="padding-left: 30px;"><span style="color: #808080;"> Import-Module ServerManager; Add-WindowsFeature PowerShell-ISE</span></p>
<p>-ray</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/02/24/using-the-out-gridview-feature-in-powercli/">Using the Out-GridView feature in PowerCLI</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2011/02/24/using-the-out-gridview-feature-in-powercli/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Installing drivers during a scripted install of ESXi</title>
		<link>http://www.yellow-bricks.com/2011/02/23/installing-drivers-during-a-scripted-install-of-esxi/</link>
		<comments>http://www.yellow-bricks.com/2011/02/23/installing-drivers-during-a-scripted-install-of-esxi/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 12:51:22 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[4.1]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=7806</guid>
		<description><![CDATA[<p>As you hopefully have read I have been busy over the last weeks with a new project. This project is all about enabling migrations to ESXi. I wrote two articles for the ESXi Chronicles blog of which the first article describes the scripted install procedure and the seconds gives some additional advanced examples of what is possible in these scripts. [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/02/23/installing-drivers-during-a-scripted-install-of-esxi/">Installing drivers during a scripted install of ESXi</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>As you hopefully have read I have been busy over the last weeks with a new project. This project is all about enabling migrations to ESXi. I wrote two articles for the ESXi Chronicles blog of which the first article describes the <a href="http://blogs.vmware.com/esxi/2011/02/scripted-install-with-esxi.html">scripted install procedure</a> and the seconds gives some additional <a href="http://blogs.vmware.com/esxi/2011/02/ops-changes-part-2-scripted-installation.html">advanced example</a>s of what is possible in these scripts. Based on that article I started receiving some questions from the field and last week I had a conference call with a customer who had issues  &#8220;injecting&#8221; a driver into ESXi during the install. Normally installing a  driver is done by using a simple &#8220;esxupdate&#8221; command and a reboot, but  in this case however the situation was slightly different and let me  explain the problem first.</p>
<p>This customer implemented a script that  would run during the %firstboot section. The name of the section  already explains what it is, this section will run after the reboot of  the scripted install has been completed. The way this works is that ESXi  creates a script in /etc/vmware/init/init.d with the prefix 999. This  script will run as the last script during the boot and is generally used  to configure the host. After a final reboot this script is  automatically deleted and the host is ready to be added to vCenter.</p>
<p>The  challenge however that this customer was facing is that it was using a  <a href="http://www.xsigo.com/index.php">Xsigo network</a> environment. In this scenario a server that would need to  be reinstalled would get a temporary network configuration that would  only work during the first boot. Meaning that before this %firstboot  section would even run the original network configuration would be  restored. The problem with that however is that the original network  configuration requires the drivers to be installed before it can be  used. In other words, after the reboot done by the installer you will  not be able to access the network unless you have loaded the drivers.  This rules out downloading the drivers during the %firstboot section.  Now how do we solve this?</p>
<p>The scripted installation has multiple  sections that can contain your commands. The first section is called  %post. The ESXi setup guide describes this section as follows:</p>
<blockquote><p>Executes  the specified script after package installation has been completed. If  you specify multiple %post sections, they are executed in the order they  appear in the installation script.</p></blockquote>
<p>This means that in the case of this customer we will be able to use this section to download any driver package required with for instance &#8220;wget&#8221; and that is what I did. I issued the command below during the %post section and rebooted the server.</p>
<pre style="padding-left: 30px;">wget http://192.168.1.100/xsigo.zip
</pre>
<p>The problem however was that the package wasn&#8217;t persisted after a reboot which brought me back to right where I began, without a network after the restart. Than I figured that during the install a local datastore is created and I could use that as persistent storage. So I issued the following command in the %post section of the script:</p>
<pre style="padding-left: 30px;">wget http://192.168.1.100/xsigo.zip -O /vmfs/volumes/datastore1/xsigo.zip</pre>
<p>I rebooted the installer and checked after the install if the driver bundle was there or not, and yes it was. The only thing left to do was to install the driver in the %fistboot section. This by itself is a fairly simple task:</p>
<pre style="padding-left: 30px;">esxupdate --bundle=/vmfs/volumes/datastore1/xsigo.zip update</pre>
<p>As the host will need to reboot before the drivers are loaded I also added a &#8220;reboot&#8221; command at the end of to the &#8220;%firstboot&#8221; section. This ensures the drivers are loaded and the network is accessible.</p>
<p>I guess this demonstrates how easy a solution can be. When I first started looking into this issue and started brainstorming I was making things way too complex. By using the standard capabilities of the scripted install mechanism and a simple &#8220;wget&#8221; command you can do almost everything you need to do during the install. This also removes the need to fiddle around with injecting drivers straight into the ISO itself.</p>
<p>Go ESXi <img src='http://www.yellow-bricks.com/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley colorbox-7806' /> </p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2011/02/23/installing-drivers-during-a-scripted-install-of-esxi/">Installing drivers during a scripted install of ESXi</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2011/02/23/installing-drivers-during-a-scripted-install-of-esxi/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Scripts for &#8220;Proactive DRS/DPM&#8221;</title>
		<link>http://www.yellow-bricks.com/2010/06/22/scripts-for-proactive-drsdpm/</link>
		<comments>http://www.yellow-bricks.com/2010/06/22/scripts-for-proactive-drsdpm/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 13:55:55 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Management & Automation]]></category>
		<category><![CDATA[PASS Syndication]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Various]]></category>
		<category><![CDATA[drs]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=6114</guid>
		<description><![CDATA[<p>I never noticed this set of scripts to be honest but Anne Holler(VMware Employee) posted these about a year ago. What the scripts do is change various DRS/DPM settings to pro-actively manage your environment and change DRS and DPM behaviour based on expected workload. Proactive DRS: setDRSAggressive.pl The script setDRSAggressive.pl sets various DRS operating parameters so that it will recommend rebalancing [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/06/22/scripts-for-proactive-drsdpm/">Scripts for &#8220;Proactive DRS/DPM&#8221;</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I never noticed this set of scripts to be honest but Anne Holler(VMware Employee) posted these about a year ago. What the scripts do is change various DRS/DPM settings to pro-actively manage your environment and change DRS and DPM behaviour based on expected workload.</p>
<p><a href="http://communities.vmware.com/docs/DOC-10231">Proactive DRS</a>:</p>
<ul>
<li>setDRSAggressive.pl<br />
<em>The script setDRSAggressive.pl sets various DRS operating parameters so that it will recommend rebalancing VMotions even when current VM demand does not make those moves appear worthwhile. As an example use case, if powerOnHosts.pl (see &#8220;Proactive DPM&#8221; posting) is used to trigger host power-ons at 8am before an expected steep increase in VM demand weekdays at 9am, setDRSAggressive.pl can also be scheduled to run at 8am to force rebalancing moves to the powered-on hosts. </em></li>
<li>setDRSDefault.pl<br />
<em>The script setDRSDefault.pl resets DRS&#8217; operating parameters so that it resumes its normal behaviour.  (Behaviour before using setDRSAggressive.pl)</em></li>
<li>setMaxMovesPerHost.pl<br />
<em>The script setMaxMovesPerHost.pl can be used to increase DRS&#8217; limit on the number of VMotions it will recommend in each (default every 5 minutes) regular DRS invocation</em></li>
</ul>
<p><a href="http://communities.vmware.com/docs/DOC-10230">Proactive DPM</a>:</p>
<ul>
<li>powerOnHosts.pl<br />
<em>The script powerOnHosts.pl changes cluster settings to engender<br />
recommendations to power on all standby hosts and then to disable DPM so that those hosts are kept on while demand remains low. </em></li>
<li>enableDPM.pl<br />
<em> The script enableDPM.pl re-enables DPM to run in its normal reactive behavior. As an example use case, this script can be scheduled to run each weekday morning at (say) 10am (after full VM demand load is expected to be established) or at (say) 5pm (after full VM demand load is likely to diminish) to resume normal DPM operation.</em></li>
</ul>
<p>I had multiple customers asking me if it was possible to schedule a change of the DRS and DPM configuration. My answer used to be yes you can script it but never managed to find a script until I bumped into these coincidentally today.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/06/22/scripts-for-proactive-drsdpm/">Scripts for &#8220;Proactive DRS/DPM&#8221;</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2010/06/22/scripts-for-proactive-drsdpm/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>UML diagram your VM, vdisks and snapshots by @lucd22</title>
		<link>http://www.yellow-bricks.com/2010/04/07/uml-diagram-your-vm-vdisks-and-snapshots-by-lucd22/</link>
		<comments>http://www.yellow-bricks.com/2010/04/07/uml-diagram-your-vm-vdisks-and-snapshots-by-lucd22/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 09:51:08 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Blogging]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[Storage]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=5757</guid>
		<description><![CDATA[<p>Somehow I missed out on this excellent script/blog about diagramming your vmdk&#8217;s and associated snapshot trees for the Planet V12n Top 5 post I do for the VMTN Blog weekly. Luc Dekens is one of the leading PowerCLI script gurus and created this amazing script that creates a diagram of the relationship between VMs, VMDKs and Snapshots. Now you might [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/04/07/uml-diagram-your-vm-vdisks-and-snapshots-by-lucd22/">UML diagram your VM, vdisks and snapshots by @lucd22</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Somehow I missed out on this <a href="http://www.lucd.info/2010/03/31/uml-diagram-your-vm-vdisks-and-snapshots">excellent script/blog</a> about diagramming your vmdk&#8217;s and associated snapshot trees for the <a href="http://blogs.vmware.com/vmtn/2010/04/top-5-planet-v12n-blog-posts-week-13.html">Planet V12n Top 5</a> post I do for the VMTN Blog weekly.</p>
<p>Luc Dekens is one of the leading PowerCLI script gurus and created this amazing script that creates a diagram of the relationship between VMs, VMDKs and Snapshots. Now you might wonder what the use case would be when there is a one to one relationship like the following:</p>
<p><img class="colorbox-5757"  src="http://lucd.info/wp-content/uploads/2010/03/UML-MyVM12.png" alt="" width="392" height="403" /></p>
<p>Many will understand the relationship when you have a single snapshot. But is that still the case when you have multiple snapshots running on multiple disks? Probably not, check this diagram to get an idea:</p>
<p><img class="colorbox-5757"  src="http://lucd.info/wp-content/uploads/2010/03/UML-MyVM3.png" alt="" width="375" height="228" /></p>
<p>Great work Luc, and my apologies for not selecting it for the Planet V12n Top 5 as it definitely deserved a spot.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/04/07/uml-diagram-your-vm-vdisks-and-snapshots-by-lucd22/">UML diagram your VM, vdisks and snapshots by @lucd22</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2010/04/07/uml-diagram-your-vm-vdisks-and-snapshots-by-lucd22/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Where are my files?</title>
		<link>http://www.yellow-bricks.com/2010/04/01/where-are-my-files/</link>
		<comments>http://www.yellow-bricks.com/2010/04/01/where-are-my-files/#comments</comments>
		<pubDate>Thu, 01 Apr 2010 13:31:39 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=5740</guid>
		<description><![CDATA[<p>I was working on an automated build procedure yesterday of ESX hosts in a cloud environment. I stored my my temporary post configuration script in /tmp/ as I have been doing since 3.0.x. When the installation was finished the host rebooted and I waited on the second reboot to occur, which is part of my post configuration. Weird thing is it [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/04/01/where-are-my-files/">Where are my files?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I was working on an automated build procedure yesterday of ESX hosts in a cloud environment. I stored my my temporary post configuration script in /tmp/ as I have been doing since 3.0.x. When the installation was finished the host rebooted and I waited on the second reboot to occur, which is part of my post configuration. Weird thing is it never happened.</p>
<p>So I assumed I made a mistake and went over my script. Funny thing is it just looked fine. For troubleshooting purposes I decided to strip my script and only do a &#8220;touch /tmp/test&#8221; in the %post section to see if the file would be created or not. I also removed the &#8220;automatic reboot&#8221; after the installation. When the installation was finished I went into the console and noticed my file &#8220;test&#8221; in /tmp. So I rebooted the system and checked /tmp again&#8230;. gone. HUH?</p>
<p>I figured it had something to do with the installer. I installed ESX manually, including a &#8220;/tmp&#8221; partition, and booted the server. I copied a bunch of random files into /tmp and rebooted the server&#8230; again the files were deleted. Now I might be going insane, but I am pretty certain this used to work just fine in the good old days ESX 3.0.X. Apparently something changed, but what?</p>
<p>After some googling and emailing I discovered  that this a change in behaviour is a known issue (<a href="http://www.vmware.com/support/vsphere4/doc/vsp_esx40_vc40_rel_notes.html">release notes</a>). When ESX 4.0 is booted the &#8220;/etc/init.d/vmware&#8221; cleans out /tmp. (See below) Something you might want to take into account when using /tmp.</p>
<pre style="padding-left: 30px;"># Clear /tmp to create more space
if IsLocalFileSystem /tmp ; then
rm -rf /tmp/*
fi</pre>
<p>I want to thank my colleague from VMware GSS Fintan Comyns for pointing this out.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/04/01/where-are-my-files/">Where are my files?</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2010/04/01/where-are-my-files/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
		<item>
		<title>NFS based automated installs of ESX 4</title>
		<link>http://www.yellow-bricks.com/2010/03/26/nfs-based-automated-installs-of-esx-4/</link>
		<comments>http://www.yellow-bricks.com/2010/03/26/nfs-based-automated-installs-of-esx-4/#comments</comments>
		<pubDate>Fri, 26 Mar 2010 17:12:31 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=5697</guid>
		<description><![CDATA[<p>Just something I noticed today while testing an automated install from NFS. The arguments I pass to the installer are: initrd=initrd.img mem=512m ksdevice=vmnic1 ip=192.168.1.123 netmask=255.255.255.0 gateway=192.168.1.1 ks=nfs://192.168.1.10:/nfs/install/ks.cfg quiet Let&#8217;s focus on the part that&#8217;s incorrect, with ESX 3 the following bit(part of the bootstrap above) would work: ks=nfs://192.168.1.10:/nfs/install/ks.cfg As of ESX 4 this doesn&#8217;t work anymore, and when I do [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/03/26/nfs-based-automated-installs-of-esx-4/">NFS based automated installs of ESX 4</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>Just something I noticed today while testing an automated install from NFS. The arguments I pass to the installer are:</p>
<p style="padding-left: 30px;"><code>initrd=initrd.img mem=512m ksdevice=vmnic1 ip=192.168.1.123 netmask=255.255.255.0 gateway=192.168.1.1 ks=nfs://192.168.1.10:/nfs/install/ks.cfg quiet</code></p>
<p>Let&#8217;s focus on the part that&#8217;s incorrect, with ESX 3 the following bit(part of the bootstrap above) would work:</p>
<pre style="padding-left: 30px;">ks=nfs://192.168.1.10:/nfs/install/ks.cfg</pre>
<p>As of ESX 4 this doesn&#8217;t work anymore, and when I do an &#8220;alt-f2&#8243; and go to /var/log and check the esx-installer.log file it shows the following error:</p>
<pre style="padding-left: 30px;">mount: 192.168.1.10::nfs/install failed, reason given by server: Permission denied</pre>
<p>After checking the permissions on my NFS share 4 times I was pretty certain that this could not cause this issue. After trying some various combinations I noticed that the format of the string for &#8220;ks&#8221; has changed. As of ESX 4 you can&#8217;t use the second colon(:) anymore. So the correct format is:</p>
<pre style="padding-left: 30px;">ks=nfs://192.168.1.10/nfs/install/ks.cfg</pre>
<p>I still receive a warning but the installer does continue. If anyone knows why the following message is displayed please speak up:</p>
<pre style="padding-left: 30px;">No COS NICs have been added by the user</pre>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/03/26/nfs-based-automated-installs-of-esx-4/">NFS based automated installs of ESX 4</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2010/03/26/nfs-based-automated-installs-of-esx-4/feed/</wfw:commentRss>
		<slash:comments>27</slash:comments>
		</item>
		<item>
		<title>Network loss after HA initiated failover</title>
		<link>http://www.yellow-bricks.com/2010/03/25/network-loss-after-ha-initiated-failover/</link>
		<comments>http://www.yellow-bricks.com/2010/03/25/network-loss-after-ha-initiated-failover/#comments</comments>
		<pubDate>Thu, 25 Mar 2010 15:09:32 +0000</pubDate>
		<dc:creator>Duncan Epping</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[dvswitch]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[scripts]]></category>
		<category><![CDATA[tips]]></category>
		<category><![CDATA[vSphere]]></category>
		<category><![CDATA[vswitch]]></category>

		<guid isPermaLink="false">http://www.yellow-bricks.com/?p=5646</guid>
		<description><![CDATA[<p>I had a discussion with one of my readers last week and just read this post on the VMTN community which triggered this article. When you create a highly available environment take into account that you will need to have enough vSwitch ports available when a failover needs to occur. By default a vSwitch will be created with 56 ports [...]</p><p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/03/25/network-loss-after-ha-initiated-failover/">Network loss after HA initiated failover</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></description>
			<content:encoded><![CDATA[<p>I had a discussion with one of my readers last week and just read <a href="http://communities.vmware.com/message/1454976#1454976">this</a> post on the VMTN community which triggered this article.</p>
<p>When you create a highly available environment take into account that you will need to have enough vSwitch ports available when a failover needs to occur. By default a vSwitch will be created with 56 ports and in general this is sufficient for most environments. However when two of your hosts fail in a 10 host cluster you might end up with 60 or more VMs running on a single host. If this would happen several VMs would not have a vSwitch port assigned.</p>
<p>The most commonly used command when creating an automated build procedure probably is:</p>
<pre style="padding-left: 30px;">esxcfg-vswitch -a vSwitch1</pre>
<p>This would result in a vSwitch named &#8220;vSwitch1&#8243; with the default amount of 56 ports. Now it is just as easy to set it up with 128 ports for instance:</p>
<pre style="padding-left: 30px;">esxcfg-vswitch -a vSwitch1:128</pre>
<p>Always design for a worst case scenario. Also be aware of the <a href="http://kb.vmware.com/kb/1008040">overhead</a>, some ports are reserved for internal usage. You might want to factor in some additional ports for this reason as for instance in the example above you will have 120 ports available for your VMs and not the 128 you specified.</p>
<p><div style="border: 1px solid gray; background-color:#CCCCCC;margin: 0px 0pt 0px 0px; padding: 5px;">

"<a href="http://www.yellow-bricks.com/2010/03/25/network-loss-after-ha-initiated-failover/">Network loss after HA initiated failover</a>" originally appeared on <a href="http://www.yellow-bricks.com">Yellow-Bricks.com</a>. Follow us on <a href="http://www.twitter.com/DuncanYB">Twitter</a> and <a href="http://www.facebook.com/pages/Yellow-Bricks-virtualization-blog/132292893499196">Facebook</a>.<br>
Available now: vSphere 5 Clustering Deepdive. (<a href="http://www.amazon.com/dp/1463658133/ref=as_li_qf_sp_asin_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=1463658133&adid=07SG91DX7FQT2HS66PMM"><strong>paper</strong></a> | <a href="https://www.amazon.com/dp/B005C1SARM/ref=as_li_tf_til?tag=yellowbricks-20&camp=0&creative=0&linkCode=as1&creativeASIN=B005C1SARM&adid=16Q69JRGDTX1DHPRKTQM&"><strong>e-book</strong></a>)</div><br><br></p>]]></content:encoded>
			<wfw:commentRss>http://www.yellow-bricks.com/2010/03/25/network-loss-after-ha-initiated-failover/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

