<?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>Ray Heffer &#187; esx</title>
	<atom:link href="http://www.rayheffer.com/tag/esx/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.rayheffer.com</link>
	<description>Enterprise Technologies</description>
	<lastBuildDate>Sat, 04 Feb 2012 17:51:28 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>VMware ESXi 4.1 Kickstart Scripted Deployment with UDA (PXE BOOT)</title>
		<link>http://www.rayheffer.com/1369/vmware-esxi-4-1-kickstart-scripted-deployment-with-uda-pxe-boot/</link>
		<comments>http://www.rayheffer.com/1369/vmware-esxi-4-1-kickstart-scripted-deployment-with-uda-pxe-boot/#comments</comments>
		<pubDate>Fri, 18 Mar 2011 15:32:57 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts & Commands]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[home lab]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1369</guid>
		<description><![CDATA[If you are looking to deploy multiple ESX/ESXi servers then there are plenty of methods and tools out there, some more complex than others. There are vendor specific deployment products available such as HP Rapid Depuployment Pack (RDP) which uses Altiris, or alternatively there are free deployment tools such as ESX Deployment Appliance (EsleeDA) and [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F1369%2Fvmware-esxi-4-1-kickstart-scripted-deployment-with-uda-pxe-boot%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1369_2Fvmware-esxi-4-1-kickstart-scripted-deployment-with-uda-pxe-boot_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1369%2Fvmware-esxi-4-1-kickstart-scripted-deployment-with-uda-pxe-boot%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you are looking to deploy multiple ESX/ESXi servers then there are plenty of methods and tools out there, some more complex than others. There are vendor specific deployment products available such as HP Rapid Depuployment Pack (RDP) which uses Altiris, or alternatively there are free deployment tools such as ESX Deployment Appliance (EsleeDA) and Ultimate Deployment Appliance (UDA). UDA is my favorite tool for the job as it offers great flexibility such as the use of subtemplates (discussed later), and therefore this will be the basis of this article. It was created by <a href="http://www.ultimatedeployment.org/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.ultimatedeployment.org/?referer=');">Carl Thijssen</a> and thanks to <a href="http://www.rtfm-ed.co.uk/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.rtfm-ed.co.uk/?referer=');">Mike Laverick of RTFM</a>, it also supports ESX/ESXi deployments, and the latest build supports ESX/ESXi 4.1.<br />
<span id="more-1369"></span><br />
I aim to share the basics of getting the UDA configured for your environment and not delve into anything too complicated here. The best way of learning to perform some of the more complex deployments are to grasp the basics first then experiment with other functionality in your own environment for yourself. Mike Laverick has an excellent <a href="http://www.rtfm-ed.co.uk/docs/vmwdocs/uda20-beta.pdf " target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.rtfm-ed.co.uk/docs/vmwdocs/uda20-beta.pdf?referer=');">guide</a> on deploying and configuring UDA 2.0 beta.</p>
<p>For the purposes of this guide a number of assumptions have been made. You will have already deployed vCenter and at least one ESX/ESXi host running with some storage. If you are going to be testing this in a home lab then bear in mind that we’ll need to configure DHCP options 66 and 67, see the end of this article for details. You can do this with an existing DHCP server or use UDA as a DHCP server. Most deployments will be using an existing DHCP server.</p>
<p>Let’s get started&#8230;</p>
<p><strong>Step 1: Download &amp; Deploy the Ultimate Deployment Appliance</strong></p>
<p>1) Download UDA from: <a href="http://www.rtfm-ed.co.uk/vmware-content/ultimate-da/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.rtfm-ed.co.uk/vmware-content/ultimate-da/?referer=');">http://www.rtfm-ed.co.uk/vmware-content/ultimate-da/</a> then extract it to your hard disk.<br />
2) Import the appliance using your vSphere client (<code>File &gt; Deploy OVF Template...</code>)<br />
3) Prior to powering on the appliance, add a second disk that we’ll use to store your ISO images. I’d recommend at least a 20GB disk, and use thin to conserve disk space.<br />
4) Power on and proceed to the next step.</p>
<p><strong>Step 2: Installation and Setup</strong></p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-001.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Setup"><img class="alignnone size-thumbnail wp-image-1385" title="Ultimate Deployment Appliance (UDA) Setup" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-001-150x150.png" alt="Ultimate Deployment Appliance (UDA) Setup" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-002.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Setup"><img class="alignnone size-thumbnail wp-image-1386" title="Ultimate Deployment Appliance (UDA) Setup" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-002-150x150.png" alt="Ultimate Deployment Appliance (UDA) Setup" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-003.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Setup"><img class="alignnone size-thumbnail wp-image-1387" title="Ultimate Deployment Appliance (UDA) Setup" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-003-150x150.png" alt="Ultimate Deployment Appliance (UDA) Setup" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-004.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Setup"><img title="Ultimate Deployment Appliance (UDA) Setup" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-004-150x150.png" alt="Ultimate Deployment Appliance (UDA) Setup" width="150" height="150" /></a></p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-003.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Setup"></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-005.png" rel="lightbox[1369]"><img class="alignnone size-thumbnail wp-image-1389" title="Ultimate Deployment Appliance (UDA) Setup" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-005-150x150.png" alt="Ultimate Deployment Appliance (UDA) Setup" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-006.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Setup"><img class="alignnone size-thumbnail wp-image-1390" title="Ultimate Deployment Appliance (UDA) Setup" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-setup-006-150x150.png" alt="Ultimate Deployment Appliance (UDA) Setup" width="150" height="150" /></a></p>
<p>1) Click OK at the welcome screen<br />
2) Enter the hostname (I recommend that you also add the hostname into your DNS server)<br />
3) Enter the IP address configuration<br />
4) Select the services you require (as a minimum I would just leave TFTP, HTTP and SSH selected)<br />
5) Enter the root password.<br />
6) Select Yes to apply the changes.</p>
<p>Once it has finished you will then be able to access your UDA from a web browser. Log in with admin and the password you set during the setup.</p>
<p><strong>Step 3: UDA Configuration</strong></p>
<p>When you first log into the appliance you will be presented with a welcome page. The first thing to configure is the additional disk space we need to store our ISO images. If you haven’t added a second hard disk, then shutdown the UDA (System &gt; Shutdown), then add the additional disk and power on.</p>
<p>UDA has two partitions; <code>systemlv</code> and <code>localv</code>. ISO images are stored on the <code>localv</code> partition, so we’ll extend that.</p>
<p>1) Go to System and click Diskspace.<br />
2) Select localv and then click Extend.<br />
3) Select the device and then click Apply.</p>
<p>It may take a little while depending on how large the new disk is, but once that is complete we’ll load the ISO image for ESXi 4.1 Update 1 on to the UDA.</p>
<p>1) Go to System and click Upload.<br />
2) Click Choose File, select your ISO then click Upload.</p>
<p>It will store the ISO on the localv partition in <code>/local</code>.</p>
<p><strong>Step 4: Add an OS &amp; Deployment Template for ESXi 4.1</strong></p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-001.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img class="alignnone size-thumbnail wp-image-1392" title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-001-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-002.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img class="alignnone size-thumbnail wp-image-1393" title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-002-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-003.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img class="alignnone size-thumbnail wp-image-1394" title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-003-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /> </a><a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-004.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-004-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /></a></p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-005.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img class="alignnone size-thumbnail wp-image-1396" title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-005-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-006.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img class="alignnone size-thumbnail wp-image-1397" title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-006-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-007.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance (UDA) Configuration Steps"><img title="Ultimate Deployment Appliance (UDA) Configuration Steps" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-config-007-150x150.png" alt="Ultimate Deployment Appliance (UDA) Configuration Steps" width="150" height="150" /></a></p>
<p>Now for the exciting bit. We’ll add our OS (ESXi) and template for deployment which will also create the basics of our Kickstart script which we’ll add to later. The OS section allows us to tie an ISO image to a Flava name, in this case we’ll call it ESXi41. I’d recommend using a better naming convention for your environment though.</p>
<p>1) Go to OS and click New.<br />
2) Enter ESXi41 for the Flava Name.<br />
3) From the dropdown, choose VMware ESXi 4.1 Installable and click Next.<br />
4) Select the ESXi 4.1 ISO you uploaded and then click Finish.</p>
<p>Next, the template which contains our Kickstart script. The template also contains a subtemplate which allows us to define our own variables, such as IP address and hostnames for each ESXi host we are deploying. This is why I like using UDA so much, because it avoids having to create a separate Kickstart script for each ESXi host.</p>
<p>1) Go to Templates and click New.<br />
2) Enter a Template Name. For example: esxi-build and give it a meaninful description.<br />
3) From the Operating System dropdown choose VMware ESXi 4.1 Installable and click Next.<br />
4) From the Flava dropdown choose your OS (Flava), ESXi41 and click Next then Finish.</p>
<p>The next stage is to perform the configuration of our Kickstart script and subtemplate. Go to Templates, select your template (esxi-build) and click Configure. You’ll see three tabs here; General, Subtemplates and Advanced. Click on Advanced. This is where our Kickstart script lives, and you’ll see it contains a basic configuration.</p>
<p>Here is a breakdown with explanations for each line:</p>
<p><code><br />
# Accept the VMware EULA - The script will fail without this.<br />
accepteula</code></p>
<p><code># Set the root password using MD5 crypt<br />
rootpw secret</code></p>
<p><code># Auto partition the disk<br />
autopart --firstdisk --overwritevmfs</code></p>
<p><code># Location of the install media<br />
install url http://[UDA_IPADDR]/[OS]/[FLAVOR]</code></p>
<p><code># Configure IP address and hostname. --addvmportgroup=0 will disable creation of the VM Network portgroup<br />
network --bootproto=static --ip=192.168.178.200 --gateway=192.168.178.1 --nameserver=192.168.178.1 --netmask=255.255.255.0 --hostname=esx41i --addvmportgroup=0</code></p>
<p><code># Reboot the host when the installation is complete<br />
reboot</code></p>
<p>The first thing we need to change is the root password which by default is set to <code>secret</code> and is in plain text. We can use a crypted MD5 password here using <code>rootpw --iscrypted</code> followed by the crypt.</p>
<p>1) Log into your UDA with PuTTY (SSH) and log in as root (same password you set during the initial setup).<br />
2) Type <code>grub-md5-crypt</code><br />
3) Enter your password and it’ll generate an MD5 string for you.<br />
4) Go back to the Advanced view in the web interface and change the rootpw line to (replacing the crypt with the one you generated):</p>
<p><code>rootpw --iscrypted  $1$3vkd233f/wksSo$fhniM3fdcV6hr0</code></p>
<p>Now we need to change the network configuration to use the appropriate IP address, gateway, subnet mask and hostname. We could just replace the default IP address configuration here, but a better method is to use variables which we can set in subtemplates. Variables are set inside square brackets, such as <code>[IPADDR], [FQDN]</code> and so on. The variable names are up to you. Change the network configuration, replacing the IP address and hostname with variables as follows:</p>
<p><code>network --bootproto=static --ip=[IPADDR] --gateway=192.168.4.1 --nameserver=192.168.4.1 --netmask=255.255.255.0 --hostname=[FQDN] --addvmportgroup=0</code></p>
<p>Select Subtemplates and click on Edit. The first line we will create contains the word <code>SUBTEMPLATE</code> then the variable names that we want to use (separated by semi-colons). Subsequent lines contain the values for each host. See my example below:</p>
<p><code>SUBTEMPLATE;IPADDR;FQDN;VMKIPADDR<br />
ESX01;192.168.4.11;esx01.home.lab;192.168.4.211<br />
ESX02;192.168.4.12;esx02.home.lab;192.168.4.212<br />
ESX03;192.168.4.13;esx03.home.lab;192.168.4.213<br />
ESX04;192.168.4.14;esx04.home.lab;192.168.4.214</code></p>
<p>You’ll notice in my example I’ve added a VMkernel IP address that in the case of our ESXi deployment we will use for VMotion.</p>
<p>Click on the Advanced tab. After the network configuration line we need to add the following command which allows us to run our <code>esxcfg</code> commands on first boot:</p>
<p><code>%firstboot --unsupported --interpreter=busybox</code></p>
<p>Now add the following commands to the Kickstart script (Advanced), which will add a VMotion portgroup and IP address. You can leave the <code>#</code> comments in if you wish:</p>
<p><code># Setup VMotion portgroup on vSwitch0<br />
esxcfg-vswitch -A VMotion vSwitch0</code></p>
<p><code># Setup VMotion IP address<br />
esxcfg-vmknic -a VMotion -i [VMKIPADDR] -n 255.255.255.0</code></p>
<p><code># Wait for previous command to finish before enabling VMotion<br />
sleep 10</code></p>
<p><code># Enable VMotion (ESX uses vmware-vim-cmd and ESXi is vim-cmd)<br />
vim-cmd hostsvc/vmotion/vnic_set vmk1<br />
vim-cmd hostsvc/net/refresh<br />
</code></p>
<p>Notice in the <code>vim-cmd</code> command above that it sets VMotion on <code>vmk1</code>. <code>vmk0</code> will be the management IP address used in the network command at the top of our script. This is fairly straightforward to work out, but if anyone knows of a better method then feel free to comment!</p>
<p>Finally click on Save.</p>
<p><strong>The Deployment</strong></p>
<p>Now we have the UDA configured and ready to roll with our ESXi installation all we have to do now is PXE boot our hosts and providing you have configured DHCP options 66 &amp; 67 (see the end of this article) you should be presented with the UDA menu (see first screenshot).</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-001.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance Menu - Installing VMware ESXi"><img class="alignnone size-thumbnail wp-image-1427" title="Ultimate Deployment Appliance Menu - Installing VMware ESXi" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-001-150x150.png" alt="Ultimate Deployment Appliance Menu - Installing VMware ESXi" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-002.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance Menu - Installing VMware ESXi"><img class="alignnone size-thumbnail wp-image-1428" title="Ultimate Deployment Appliance Menu - Installing VMware ESXi" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-002-150x150.png" alt="Ultimate Deployment Appliance Menu - Installing VMware ESXi" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-003.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance - Installing VMware ESXi"><img class="alignnone size-thumbnail wp-image-1429" title="Ultimate Deployment Appliance - Installing VMware ESXi" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-003-150x150.png" alt="Ultimate Deployment Appliance - Installing VMware ESXi" width="150" height="150" /></a> <a href="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-004.png" rel="lightbox[1369]" title="Ultimate Deployment Appliance - Installing VMware ESXi"><img class="alignnone size-thumbnail wp-image-1430" title="Ultimate Deployment Appliance - Installing VMware ESXi" src="http://www.rayheffer.com/wp-content/uploads/2011/03/uda-boot-004-150x150.png" alt="Ultimate Deployment Appliance - Installing VMware ESXi" width="150" height="150" /></a></p>
<p>The rest is easy, just select the host from the menu (we set this in SUBTEMPLATE) and it will install and configure ESXi with no user intervention. Using a scripted installation can be very powerful and a lot more can be configured than I&#8217;ve included here. Even if you don&#8217;t have mass ESXi deployments, this is a good way of ensuring that your ESXi hosts maintain your standard build. If you have an Enterprise Plus license then you can also use Host Profiles.</p>
<hr />
<p><strong>Kickstart script:</strong></p>
<p><code>accepteula<br />
rootpw --iscrypted $1$3vkd233f/wksSo$fhniM3fdcV6hr0<br />
autopart --firstdisk --overwritevmfs<br />
install url http://[UDA_IPADDR]/[OS]/[FLAVOR]<br />
network --bootproto=static --ip=[IPADDR] --gateway=192.168.4.1 --nameserver=192.168.4.30 --netmask=255.255.255.0 --hostname=[FQDN] --addvmportgroup=0<br />
reboot</code></p>
<p><code>## THE FOLLOWING IS OUR FIRSTBOOT CONFIGURATION ##</code></p>
<p><code># Configure additional commands at first boot.<br />
%firstboot --unsupported --interpreter=busybox</code></p>
<p><code># Setup VMotion portgroup on vSwitch0<br />
esxcfg-vswitch -A VMotion vSwitch0</code></p>
<p><code># Setup VMotion IP address<br />
esxcfg-vmknic -a VMotion -i [VMKIPADDR] -n 255.255.255.0</code></p>
<p><code># Wait for previous command to finish before enabling VMotion<br />
sleep 10</code></p>
<p><code># Enable VMotion (ESX uses vmware-vim-cmd and ESXi is vim-cmd)<br />
vim-cmd hostsvc/vmotion/vnic_set vmk1<br />
vim-cmd hostsvc/net/refresh</code></p>
<hr />
<p><strong>SUBTEMPLATE:</strong></p>
<p><code>SUBTEMPLATE;IPADDR;FQDN;VMKIPADDR<br />
ESX01;192.168.4.11;esx01.home.lab;192.168.4.211<br />
ESX02;192.168.4.12;esx02.home.lab;192.168.4.212<br />
ESX03;192.168.4.13;esx03.home.lab;192.168.4.213<br />
ESX04;192.168.4.14;esx04.home.lab;192.168.4.214</code></p>
<hr />
<p><strong>Configuring DHCP Options</strong></p>
<p>1) Set option 66 to the IP address of your UDA<br />
2) Set option 67 to pxelinux.0</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1369/vmware-esxi-4-1-kickstart-scripted-deployment-with-uda-pxe-boot/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>8.3 VCAP-DCA Study Guide &#8211; Configuring vMA for Logging</title>
		<link>http://www.rayheffer.com/1296/6-1-8-3-logging-vmware-vma-configuring-vma-as-a-syslog-server/</link>
		<comments>http://www.rayheffer.com/1296/6-1-8-3-logging-vmware-vma-configuring-vma-as-a-syslog-server/#comments</comments>
		<pubDate>Mon, 07 Mar 2011 12:36:02 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Scripts & Commands]]></category>
		<category><![CDATA[VCAP-DCA]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[vcap]]></category>
		<category><![CDATA[vma]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1296</guid>
		<description><![CDATA[In this article I detail the steps required to configure your vMA as a Syslog server, and configure your ESX/ESXi hosts to send logging information to the vMA. Logging is often overlooked, but when managing multiple hosts it is far easier to send your logs to a Syslog server. I&#8217;m studying for the VCAP-DCA exam, [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F1296%2F6-1-8-3-logging-vmware-vma-configuring-vma-as-a-syslog-server%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1296_2F6-1-8-3-logging-vmware-vma-configuring-vma-as-a-syslog-server_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1296%2F6-1-8-3-logging-vmware-vma-configuring-vma-as-a-syslog-server%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>In this article I detail the steps required to configure your vMA as a Syslog server, and configure your ESX/ESXi hosts to send logging information to the vMA. Logging is often overlooked, but when managing multiple hosts it is far easier to send your logs to a Syslog server. I&#8217;m studying for the VCAP-DCA exam, and using vicfg-syslog is a requirement of the exam (Section 6.1) and the vMA is also essential to understand (Section 8.1). I hope my notes help you as they have helped me.<br />
<span id="more-1296"></span></p>
<h4><strong>Configuring your VMware vMA as a Syslog server is very easy to do, just follow these steps</strong></h4>
<p>Log on to your vMA as vi-admin and enter the following commands:</p>
<p><code>sudo service rsyslog stop<br />
sudo vi /etc/sysconfig/rsyslog<br />
sudo service rsyslog start<br />
sudo iptables -I INPUT -i eth0 -p udp --dport 514 -j ACCEPT<br />
sudo service iptables save</code> (this will save the new firewall rule and ensure it doesn&#8217;t disappear after a reboot)</p>
<p>Job done! The vMA server is now ready to accept syslog connections on UDP port 514.</p>
<h4><strong><br />
Configuring your ESXi host to send logging information to the Syslog server</strong></h4>
<p>You can do this via the vSphere client (Configuration &gt; Advanced &gt; Syslog, syslog.remote.hostname), but for the VCAP-DCA exam it might be useful to know how to do this using vMA.</p>
<p><strong>Using vMA:</strong></p>
<p>First ensure your have your ESXi host set as the fast-pass target, then use <code>vicfg-syslog</code>:</p>
<p><code># vifptarget -s &lt;ESXI_HOSTNAME&gt;<br />
# vicfg-syslog -s &lt;VMA_IP_ADDRESS&gt;</code></p>
<h4><strong><br />
Configuring your ESX host to send logging information to Syslog server</strong></h4>
<p>You can&#8217;t use the vSphere client or vMA to configure Syslog on an ESX host, so we need to edit <code>/etc/syslog.conf</code> and add the following line to the very bottom:</p>
<p><code>*.* @&lt;SYSLOG_IP_ADDRESS&gt;</code></p>
<p>In this example, replace &lt;SYSLOG_IP_ADDRESS&gt; with the IP address of the vMA.</p>
<p>Next we need to allow UDP port 514 out from your ESX host. To do this run the following command (make sure you are logged in, or <code>su -</code> as root):</p>
<p><code># esxcfg-firewall -o 514,udp,out,syslog</code></p>
<p><strong>Note:</strong> If you log in to your ESX hot then su as root make sure you type (<code>su -</code>) with the hyphen and that will load the environment variables of the root account. Otherwise you may find that you get the error &#8216;<code>bash: esxcfg-firewall: command not found</code>&#8216;.</p>
<p>Finally, restart the syslog service:</p>
<p><code># service syslog restart</code></p>
<h4><strong><br />
Checking the ESX logs on vMA</strong></h4>
<p>Now for the fun bit!  Log on to your vMA server as vi-admin, and type:</p>
<p><code># sudo tail -f /var/log/messages</code></p>
<p>This will tail the messages file, and -f will output data as it is added to the file.</p>
<p>To send a test message, log on to the ESX host that you configured for syslog (above) and type:</p>
<p><code># logger syslog test message</code></p>
<p>You should see your test message output on the vMA. Cool huh!</p>
<h4><strong><br />
Checking ESXi logs on vMA</strong></h4>
<p>The logger command isn&#8217;t available with ESXi, so another way of checking that your Syslog is working for an ESXi host is to filter the results to show the IP address of your ESXi host:</p>
<p><code># sudo tail -f /var/log/messages | grep &lt;ESXI_IP_ADDRESS&gt;</code></p>
<p>It shouldn&#8217;t take long to see messages from your ESXi host, and filtering on the IP address using grep is a really neat way of finding results for a particular host.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1296/6-1-8-3-logging-vmware-vma-configuring-vma-as-a-syslog-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware vSphere 4.1 Update 1 released today</title>
		<link>http://www.rayheffer.com/1208/vmware-vsphere-4-1-update-1-released-today/</link>
		<comments>http://www.rayheffer.com/1208/vmware-vsphere-4-1-update-1-released-today/#comments</comments>
		<pubDate>Thu, 10 Feb 2011 18:09:18 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Business & IT]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1208</guid>
		<description><![CDATA[VMware have released vSphere 4.1 Update 1 which adds support for additional operating systems (RHEL 6, RHEL 5.6, SLES 11 SP1 for VMware, Ubuntu 10.10, and Solaris 10 Update 9). ESX/ESXi 4.1 Update 1 now supports 160 logical processors. Looking at the number of patches for ESX and ESXi below, it makes  me wonder whether [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F1208%2Fvmware-vsphere-4-1-update-1-released-today%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1208_2Fvmware-vsphere-4-1-update-1-released-today_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1208%2Fvmware-vsphere-4-1-update-1-released-today%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-1176" title="VMware vSphere" src="http://www.rayheffer.com/wp-content/uploads/2011/02/vsphere.png" alt="VMware vSphere" width="70" height="70" />VMware have released vSphere 4.1 Update 1 which adds support for additional operating systems (RHEL 6, RHEL 5.6, SLES 11 SP1 for VMware, Ubuntu 10.10, and Solaris 10 Update 9). ESX/ESXi 4.1 Update 1 now supports 160 logical processors. Looking at the number of patches for ESX and ESXi below, it makes  me wonder whether this will be the last release of ESX, in favour of ESXi?<br />
<span id="more-1208"></span><br />
<strong>Release Summary:</strong></p>
<table id="box-table-a" summary="VMware vSphere 4.1 Update 1">
<tbody>
<tr>
<td width="211" valign="top"><strong>What’s New</strong></td>
<td width="379" valign="top"><strong>Details</strong></td>
</tr>
<tr>
<td width="211" valign="top">Scalability</td>
<td width="379" valign="top">ESX 4.1 Update 1 supports up to 160 logical processors.</td>
</tr>
<tr>
<td width="211" valign="top">Guest Operating Systems</td>
<td width="379" valign="top">RHEL 6, RHEL 5.6, SLES 11 SP1 for VMware, Ubuntu 10.10,   and Solaris 10 Update 9</td>
</tr>
<tr>
<td width="211" valign="top">Drivers</td>
<td width="379" valign="top">3ware SCSI 2.26.08.036vm40 and Neterion vxge   2.0.28.21239-p3.0.1.2 drivers</td>
</tr>
<tr>
<td width="211" valign="top">ESXi: Trusted Execution Technology (TXT)</td>
<td width="379" valign="top">ESXi 4.1 Update 1 can be configured to boot with Intel   Trusted Execution Technology (TXT). This boot option can protect ESXi in some   cases where system binaries are corrupted or have been tampered with. TXT is   currently available on Intel Xeon processor 5600 series servers.</td>
</tr>
<tr>
<td width="211" valign="top">vCenter: Additional database support</td>
<td width="379" valign="top">Microsoft SQL Server 2008 R2, Microsoft SQL Server 2005 SP3, Oracle 11g Standard/Enterprise Release 2, 11.2.0.1.0 or later,  (x32 and x64), IBM DB2 9.7.2 Express C / Enterprise (x32 and x64).</td>
</tr>
</tbody>
</table>
<p><strong>ESX 4.1 Update 1 Patches:</strong></p>
<table id="box-table-a" summary="VMware vSphere 4.1 Update 1">
<tbody>
<tr>
<td width="295" valign="top"><strong>Patch</strong></td>
<td width="295" valign="top"><strong>Details</strong></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101201-SG Updates ESX 4.1 Core and CIM   components, krb5, openldap, and pam-krb5</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027904" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027904?referer=');">http://kb.vmware.com/kb/1027904</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101202-UG Updates ESX 4.1 VMware-webCenter-esx</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028453" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028453?referer=');">http://kb.vmware.com/kb/1028453</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101203-UG Updates ESX 4.1 vmware-esx-esxupdate</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027905" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027905?referer=');">http://kb.vmware.com/kb/1027905</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101204-UG Updates ESX 4.1 mptsas device driver</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027906" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027906?referer=');">http://kb.vmware.com/kb/1027906</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101206-UG Updates ESX 4.1 bnx2xi device driver</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027907" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027907?referer=');">http://kb.vmware.com/kb/1027907</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101207-UG Updates ESX 4.1 bnx2x device driver</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027908" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027908?referer=');">http://kb.vmware.com/kb/1027908</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101208-UG Updates ESX 4.1 sata device driver</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027909" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027909?referer=');">http://kb.vmware.com/kb/1027909</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101211-UG Updates ESX 4.1 VMware-esx-remove-rpms</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027911" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027911?referer=');">http://kb.vmware.com/kb/1027911</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101213-UG Updates vmware-esx-drivers-net-enic</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027914" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027914?referer=');">http://kb.vmware.com/kb/1027914</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101214-UG Updates   vmware-esx-drivers-scsi-qla4xxx</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027915" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027915?referer=');">http://kb.vmware.com/kb/1027915</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101215-UG Updates ESX 4.1 vmware-esx-net-nx-nic</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027916" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027916?referer=');">http://kb.vmware.com/kb/1027916</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101216-UG Updates ESX 4.1 vmware-esx-vaai</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027917" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027917?referer=');">http://kb.vmware.com/kb/1027917</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101217-UG Updates vmware-esx-drivers-net-e1000e</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028446" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028446?referer=');">http://kb.vmware.com/kb/1028446</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101218-UG Updates net-cdc-ether, net-usbnet   driver</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028447" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028447?referer=');">http://kb.vmware.com/kb/1028447</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101219-UG Updates vmware-esx-drivers-net-e1000</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028448" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028448?referer=');">http://kb.vmware.com/kb/1028448</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101220-UG Updates net-igb, net-tg3, scsi-fnic</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028449" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028449?referer=');">http://kb.vmware.com/kb/1028449</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101221-UG Updates ESX 4.1 HP SAS Controllers</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028450" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028450?referer=');">http://kb.vmware.com/kb/1028450</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101222-UG Updates mptsas, mptspi device drivers</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1028451" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1028451?referer=');">http://kb.vmware.com/kb/1028451</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101225-UG Updates vmware-esx-pam-config library</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1031329" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1031329?referer=');">http://kb.vmware.com/kb/1031329</a></td>
</tr>
<tr>
<td width="295" valign="top">ESX410-201101226-SG Updates glibc packages</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1031330" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1031330?referer=');">http://kb.vmware.com/kb/1031330</a></td>
</tr>
</tbody>
</table>
<p><strong>ESXi 4.1 Update 1 Patches:</strong></p>
<table id="box-table-a" summary="VMware vSphere 4.1 Update 1">
<tbody>
<tr>
<td width="295" valign="top"><strong>Patch</strong></td>
<td width="295" valign="top"><strong>Details</strong></td>
</tr>
<tr>
<td width="295" valign="top">ESXi410-201101201-SG Updates ESXi 4.1 Firmware</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027919" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027919?referer=');">http://kb.vmware.com/kb/1027919</a></td>
</tr>
<tr>
<td width="295" valign="top">ESXi410-201101202-UG Updates ESXi 4.1 VMware Tools</td>
<td width="295" valign="top"><a href="http://kb.vmware.com/kb/1027921" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1027921?referer=');">http://kb.vmware.com/kb/1027921</a></td>
</tr>
</tbody>
</table>
<p><strong>See the following URL&#8217;s for full details:</strong></p>
<ul>
<li><strong><a href="http://www.vmware.com/support/vsphere4/doc/vsp_esx41_u1_rel_notes.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/support/vsphere4/doc/vsp_esx41_u1_rel_notes.html?referer=');">ESX 4.1 Update 1</a></strong></li>
<li><strong><a href="http://www.vmware.com/support/vsphere4/doc/vsp_esxi41_u1_rel_notes.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/support/vsphere4/doc/vsp_esxi41_u1_rel_notes.html?referer=');">ESXi 4.1 Update 1</a></strong></li>
<li><a href="http://www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/support/vsphere4/doc/vsp_vc41_u1_rel_notes.html?referer=');"><strong>vCenter 4.1 Update 1</strong></a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1208/vmware-vsphere-4-1-update-1-released-today/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>8.3 VCAP-DCA Study Guide – Changing the vMA IP address</title>
		<link>http://www.rayheffer.com/1173/vmware-vma-two-methods-of-changing-the-ip-address/</link>
		<comments>http://www.rayheffer.com/1173/vmware-vma-two-methods-of-changing-the-ip-address/#comments</comments>
		<pubDate>Wed, 09 Feb 2011 13:48:32 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[VCAP-DCA]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[vma]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1173</guid>
		<description><![CDATA[Here is a very quick and dirty tech tip on changing the IP address of your VMware vMA. There are two ways of doing this, the Linux way or the VMware Setup Wizard. Method 1: The Linux Way Using your favorite text editor (Vi in my case) edit the following file using sudo: # sudo [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F1173%2Fvmware-vma-two-methods-of-changing-the-ip-address%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1173_2Fvmware-vma-two-methods-of-changing-the-ip-address_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1173%2Fvmware-vma-two-methods-of-changing-the-ip-address%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-1176" title="VMware vSphere" src="http://www.rayheffer.com/wp-content/uploads/2011/02/vsphere.png" alt="VMware vSphere" width="70" height="70" /> Here is a very quick and dirty tech tip on changing the IP address of your VMware vMA. There are two ways of doing this, the Linux way or the VMware Setup Wizard.<br />
<span id="more-1173"></span></p>
<h4><strong>Method 1: The Linux Way</strong></h4>
<p>Using your favorite text editor (Vi in my case) edit the following file using sudo:</p>
<p><code># sudo vi /etc/sysconfig/network-scripts/ifcfg-eth0</code></p>
<p>You should see something similar to the following:</p>
<p><code>DEVICE=eth0<br />
BOOTPROTO=static<br />
PEERDNS=no<br />
ONBOOT=yes<br />
IPADDR=192.168.4.42<br />
NETMASK=255.255.255.0<br />
GATEWAY=192.168.4.1</code></p>
<p>Make the necessary changes and write-quite (:wq)</p>
<p>Restart the network service:</p>
<p><code># sudo service network restart</code></p>
<h4><strong>Method 2: Using the vMA Setup Wizard</strong></h4>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/02/vmware-vma-netconf.pl_.jpg" rel="lightbox[1173]" title="VMware vMA - Changing the IP address with vmware-vma-netconf.pl"><img class="alignnone size-full wp-image-1795" title="VMware vMA - Changing the IP address with vmware-vma-netconf.pl" src="http://www.rayheffer.com/wp-content/uploads/2011/02/vmware-vma-netconf.pl_.jpg" alt="VMware vMA - Changing the IP address with vmware-vma-netconf.pl" width="468" height="306" /></a></p>
<p>Change the working directory to /opt/vmware/vma/bin/</p>
<p><code># cd /opt/vmware/vma/bin/</code></p>
<p>Run the <code>vmware-vma-netconf.pl</code> script:</p>
<p><code># sudo ./vmware-vma-netconf.pl</code></p>
<p>Follow the on-screen instructions. Job done.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1173/vmware-vma-two-methods-of-changing-the-ip-address/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>VMware vSphere 4.1 &#8211; HA Admission Control Slot Calculation</title>
		<link>http://www.rayheffer.com/1055/vmware-vsphere-4-1-ha-admission-control-slot-calculation/</link>
		<comments>http://www.rayheffer.com/1055/vmware-vsphere-4-1-ha-admission-control-slot-calculation/#comments</comments>
		<pubDate>Mon, 07 Feb 2011 15:50:13 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[admission control]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[high availability]]></category>
		<category><![CDATA[slots]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1055</guid>
		<description><![CDATA[VMware HA (High Availability) admission control is something I wanted to understand better so I started making notes gathered from various sources on the subject, and in particular the way slot sizes are calculated. Duncan Epping&#8217;s Yellow Bricks site already covers HA very well and I bow down to his knowledge on the subject, well worth [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F1055%2Fvmware-vsphere-4-1-ha-admission-control-slot-calculation%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1055_2Fvmware-vsphere-4-1-ha-admission-control-slot-calculation_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1055%2Fvmware-vsphere-4-1-ha-admission-control-slot-calculation%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-full wp-image-1060" title="VMware HA Slots" src="http://www.rayheffer.com/wp-content/uploads/2011/02/slots2.png" alt="VMware HA Slots" width="120" height="162" />VMware HA (High Availability) admission control is something I wanted to understand better so I started making notes gathered from various sources on the subject, and in particular the way slot sizes are calculated. Duncan Epping&#8217;s <a href="http://www.yellow-bricks.com/vmware-high-availability-deepdiv/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.yellow-bricks.com/vmware-high-availability-deepdiv/?referer=');">Yellow Bricks</a> site already covers HA very well and I bow down to his knowledge on the subject, well worth checking out. Also I would strongly recommend VMware vSphere 4.1 HA and DRS Technical Deepdive by Duncan Epping and Frank Denneman which I purchased at <a href="http://www.comcol.nl/detail/73133.htm" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.comcol.nl/detail/73133.htm?referer=');">Comcol.nl</a> which they shipped to me in the UK in just two days.</p>
<p>That said, I thought I would share my own views and notes I have taken on the subject. The vSphere Availability guide states &#8220;<em>A slot is a logical representation of memory and CPU resources. By default, it is sized to satisfy the requirements for any powered-on virtual machine in the cluster.</em>&#8221; &#8211; In simple terms a slot can be consumed by a single virtual machine, but a virtual machine may consume more than one slot.<br />
<span id="more-1055"></span><br />
When you create an HA enabled cluster, the default admission control policy is set to &#8220;Host failures cluster tolerates&#8221;. It is important to understand how this works to avoid any &#8216;schoolboy errors&#8217; or mis-calculations in your design.</p>
<p><strong>Rule # 1</strong>: Remember this, &#8220;<span style="text-decoration: underline;">The hostess with the mostes</span>s&#8221; &#8211; the ESX host with the most available slots will be taken out of the equation when calculating HA admission control. If your ESX cluster has 6 hosts with 16GB memory, and one host with 32GB memory then this will be excluded from the calculation.</p>
<p><strong>Calculating the Slot Size (memory and CPU)</strong></p>
<p>Firstly, do any virtual machines have a reservation on the CPU or memory? If so, then the virtual machine with the largest reservation on a <span style="text-decoration: underline;">given</span> host is taken into account. For virtual machines that have no reservations, the slot size is calculated with the CPU at 256Mhz and memory at the VM overhead (E.g. 123.73MB &#8211; See page 28 of <a href="http://www.vmware.com/pdf/vsphere4/r41/vsp_41_resource_mgmt.pdf" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/pdf/vsphere4/r41/vsp_41_resource_mgmt.pdf?referer=');">vsp_41_resource_mgmt.pdf</a>). Repeat this for the remaining virtual machines on the host (see flowchart).</p>
<p><span style="text-decoration: underline;"><a href="http://www.rayheffer.com/wp-content/uploads/2011/02/ha-slot-flowchart2.png" rel="lightbox[1055]" title="VMware HA - Admission Control Slot Calculation"><img class="alignleft size-medium wp-image-1158" title="VMware HA - Admission Control Slot Calculation" src="http://www.rayheffer.com/wp-content/uploads/2011/02/ha-slot-flowchart2-300x263.png" alt="VMware HA - Admission Control Slot Calculation" width="300" height="263" /></a>Flowchart Example</span></p>
<p>Lets say that we have 10 virtual machines (1 vCPU each) and two of them have reservations as follows:</p>
<p><strong>VM 1</strong> &#8211; Has a CPU reservation of 700Mhz, and no memory reservation.<br />
<strong> VM 2</strong> &#8211; Has a CPU reservation 500Mhz and memory reservation of 1024Mb.<br />
<strong> VM 3 to 10</strong> &#8211; No reservations on memory or CPU. (keeping this example simple)</p>
<p>The slot size calculation will take the largest reservation for memory and CPU. In this example the result would be:</p>
<p><strong>CPU: 700Mhz</strong><br />
<strong>Memory: 1147.73M</strong><strong>B</strong> (1024Mb plus overhead)</p>
<p><strong>Rule # 2:</strong> Remember that the biggest reservation will be used for memory and CPU. If no reservations are set, then it will use 256Mhz for the CPU and 0MB + virtual machine overhead for the memory.</p>
<p><strong><br />
Calculating the Number of Slots Available</strong></p>
<p>Now we have the slot size for our ESX host, the next step is to work out how many slots we have. In order to calculate this, simply divide the CPU and memory available on the host by CPU and memory slot size. For example, using our figures above (700Mhz and 1144.73Mb), say our host has 5934 Mhz CPU available and 7126MB memory, our slot sizes will be 8 for the CPU and 6 for the memory.</p>
<p><strong>5934 /700 = 8<br />
</strong><strong>7126 / 1147.73 = 6</strong></p>
<p><strong>Result: </strong>Take the smaller of the two, and our ESX host has <strong><span style="text-decoration: underline;">6</span></strong> available slots. Do this for each host in the cluster and you have the total number of slots available in your cluster (minus the host with the most slots).</p>
<p><strong>Rule # 3: </strong>It will always use the smallest number of slots from CPU or memory.</p>
<hr />
<p><strong>What Does This All Mean?</strong></p>
<p>Now we understand how slots are calculated on each of our ESX hosts, it gives us a better insight when determining how your HA will be configured. Here is a simple check-list of questions you should ask yourself:</p>
<ul>
<li>Do any of my virtual machines  have CPU or memory reservations set?</li>
<li>Are all of my ESX hosts of the same specification, or do I have one or two with significantly more CPU or RAM?</li>
<li>How many host failures do I need to tolerate?</li>
</ul>
<p><strong>Some possible solutions:</strong></p>
<ul>
<li>Don&#8217;t use virtual machine reservations unless absolutely necessary, instead use resource pools with reservations as these are not used in the slot size calculation.</li>
<li>Keep the hosts in your cluster of similar specification (same CPU and memory) otherwise it could be eliminated when calculating the number of slots to use.</li>
<li>Do you need an HA policy based on a number of host failures?   Use &#8216;Percentage of cluster resources reserved as failover spare capacity&#8217;.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1055/vmware-vsphere-4-1-ha-admission-control-slot-calculation/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Use Cases for VMware ESX 3.x DisallowSnapshotLUN and ESX 4.x Force-Mount</title>
		<link>http://www.rayheffer.com/1017/use-cases-for-vmware-esx-3-x-disallowsnapshotlun-and-esx-4-x-force-mount/</link>
		<comments>http://www.rayheffer.com/1017/use-cases-for-vmware-esx-3-x-disallowsnapshotlun-and-esx-4-x-force-mount/#comments</comments>
		<pubDate>Fri, 21 Jan 2011 16:11:32 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[SAN Storage]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[LUN]]></category>
		<category><![CDATA[snapshot]]></category>
		<category><![CDATA[vcli]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1017</guid>
		<description><![CDATA[If you are involved in DR for your organisations IT infrastructure and are replicating virtual machine VMFS datastores then you may be familiar with DisallowSnapshotLUN in ESX 3.x. Let&#8217;s start with a background on what these advanced settings are and why they are there. Since virtualization changed the landscape for disaster recovery  some time ago [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F1017%2Fuse-cases-for-vmware-esx-3-x-disallowsnapshotlun-and-esx-4-x-force-mount%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1017_2Fuse-cases-for-vmware-esx-3-x-disallowsnapshotlun-and-esx-4-x-force-mount_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1017%2Fuse-cases-for-vmware-esx-3-x-disallowsnapshotlun-and-esx-4-x-force-mount%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><img class="alignleft size-medium wp-image-1023" title="Disk Snapshot" src="http://www.rayheffer.com/wp-content/uploads/2011/01/snapshot1-300x151.png" alt="Disk Snapshot" width="210" height="106" />If you are involved in DR for your organisations IT infrastructure and are replicating virtual machine VMFS datastores then you may be familiar with DisallowSnapshotLUN in ESX 3.x. Let&#8217;s start with a background on what these advanced settings are and why they are there.</p>
<p>Since virtualization changed the landscape for disaster recovery  some time ago now, most businesses have embraced SAN storage replication for DR (<a href="http://www.rayheffer.com/25/san-storage-for-disaster-recovery-solutions/">see my other post</a>). This is old news now, but unless your SAN vendor integrates with something like <a href="http://www.vmware.com/products/site-recovery-manager/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/products/site-recovery-manager/?referer=');">VMware Site Recovery Manager</a> (SRM) then you will have a number of manual tasks involved in your DR recovery process.</p>
<p><span id="more-1017"></span></p>
<p>When you replicate your datastores (or LUN&#8217;s) from site A to site B, you will be using an asynchronous mirror between these two sites. In other words, data blocks will be scheduled (or queued) for replication to site B. If it was synchronous then as data is written to disk, the write operation wouldn&#8217;t be acknowledged until it is written to both disks or arrays. Obviously synchronous replication would be far too slow across a WAN to a DR site.</p>
<p>In order to use the replicated LUN in your DR site, you will need to take a snapshot of the replicated LUN then present the snapshot LUN to your VMware ESX hosts in the DR site. Different SAN vendors will have slightly different methods and management capabilities, but the underlying requirement doesn&#8217;t change. Without modifying the advanced settings of your ESX 3.x host you will not be able to present your snapshot LUN (VMFS datastore) to the ESX host.</p>
<p><strong>ESX 3.x: </strong>What you&#8217;ll need to do is set the following parameters:</p>
<p><code>EnableResignature=0<br />
DisallowSnapshotLUN=0</code></p>
<p>By switching off <code>DisallowSnapshotLUN</code>, the ESX host will allow your replicated LUN to me added and it won&#8217;t re-signature the volume. By default <code>DisallowSnapshotLUN</code> is set to 1. You can find this setting in the Configuration tab of the ESX host &gt; Advanced Settings.</p>
<p><strong>ESX 4.x:</strong></p>
<p>VMware already have a KB article on this here: <a href="http://kb.vmware.com/kb/1011387" target="_blank" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1011387?referer=');">kb.vmware.com/kb/1011387</a></p>
<p>It says that you can just use the Add Storage wizard and it will display the VMFS label. If it&#8217;s not mounted then you can assume it is a snapshot (or volume copy) and can go ahead and mount it. Using the GUI will force-mount a VMFS volume and also  make it persistent. In fact the advanced settings (<code>EnableResignature and DisallowSnapshotLUN</code>) are no longer present with ESX 4.x.</p>
<p><strong>Useful KB Articles:</strong></p>
<p><a href="http://kb.vmware.com/kb/1003641" target="_blank" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1003641?referer=');">kb.vmware.com/kb/1003641</a> &#8211; Cannot access the LUN as it is marked as a deactivated snapshot<br />
<a href="http://kb.vmware.com/kb/6482648" target="_blank" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/6482648?referer=');">kb.vmware.com/kb/6482648</a> &#8211; VMFS Volume Can Be Erroneously Recognized as a Snapshot<br />
<a href="http://kb.vmware.com/kb/1015986" target="_blank" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/1015986?referer=');">kb.vmware.com/kb/1015986</a> &#8211; Force mounting a VMFS datastore residing on a snapshot LUN results in the error: Cannot change the host configuration</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1017/use-cases-for-vmware-esx-3-x-disallowsnapshotlun-and-esx-4-x-force-mount/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMware vSphere ‘Whitebox’ Server Lab Setup – Part 3</title>
		<link>http://www.rayheffer.com/898/vmware-vsphere-%e2%80%98whitebox%e2%80%99-server-lab-setup-%e2%80%93-part-3/</link>
		<comments>http://www.rayheffer.com/898/vmware-vsphere-%e2%80%98whitebox%e2%80%99-server-lab-setup-%e2%80%93-part-3/#comments</comments>
		<pubDate>Tue, 04 Jan 2011 18:38:20 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[asus rampage II]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[home lab]]></category>
		<category><![CDATA[i7]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[quad core]]></category>
		<category><![CDATA[vcap]]></category>
		<category><![CDATA[vcdx]]></category>
		<category><![CDATA[vcp]]></category>
		<category><![CDATA[vsphere]]></category>
		<category><![CDATA[whitebox]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=898</guid>
		<description><![CDATA[The third part of this series continues with the vSphere build on my whitebox server, the Asus Rampage II Extreme with Intel Core i7 2.8Ghz and a 120GB SSD. Following on from the video in part 2 where we installed ESXi on to the USB drive, we are now ready to access the physical ESXi host [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F898%2Fvmware-vsphere-%25e2%2580%2598whitebox%25e2%2580%2599-server-lab-setup-%25e2%2580%2593-part-3%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F898_2Fvmware-vsphere-_25e2_2580_2598whitebox_25e2_2580_2599-server-lab-setup-_25e2_2580_2593-part-3_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F898%2Fvmware-vsphere-%25e2%2580%2598whitebox%25e2%2580%2599-server-lab-setup-%25e2%2580%2593-part-3%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>The third part of this series continues with the vSphere build on my whitebox server, the Asus Rampage II Extreme with Intel Core i7 2.8Ghz and a 120GB SSD. Following on from the video in <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">part 2</a> where we installed ESXi on to the USB drive, we are now ready to access the physical ESXi host and start creating some virtual machines.  Since this is a home vSphere lab environment, accessing the lab from anywhere (not just at home) is a major advantage for me, so I&#8217;ll be taking you through the steps to create a Microsoft Windows Server 2008 R2 virtual machine with an RD Gateway (Remote Desktop Gateway). We will also need shared storage in order to use vMotion, so I will also guide you through the setup of an OpenFiler iSCSI virtual SAN.</p>
<p><span id="more-898"></span></p>
<p><a href="http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/">Part 1</a> | <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">Part 2</a> | <span style="color: #808080;">Part 3</span></p>
<p><strong>To Do List:</strong></p>
<p>If  you have followed <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">part 2</a> then your physical ESXi host should be up and running and sitting in your garage, shed, spare room (wherever its new home is!). You can now switch on your laptop or desktop PC, get a warm drink and we will get the vSphere lab configured!</p>
<p><em><strong>Note:</strong> I&#8217;d also like to mention that whilst I decided to install VMware ESXi 4.1 to a USB drive, there is no reason you can&#8217;t install the full ESX 4.1 (with Service Console) to the local SSD drive.</em></p>
<ul>
<li>Download and install the vSphere client</li>
<li>Creating the core virtual machines:
<ul>
<li>Domain Controller</li>
<li>vCenter server</li>
<li>RD Gateway</li>
<li>OpenFiler SAN</li>
</ul>
</li>
<li>Finally create virtual ESXi hosts.</li>
</ul>
<h6><strong>vSphere Lab Environment Topology:<br />
</strong><span style="font-weight: normal; font-size: 13px;"><a href="http://www.rayheffer.com/wp-content/uploads/2010/12/vSphere-Topology1.jpg" rel="lightbox[898]" title="vSphere Lab Environment Topology"><img class="alignnone size-medium wp-image-922" title="vSphere Lab Environment Topology" src="http://www.rayheffer.com/wp-content/uploads/2010/12/vSphere-Topology1-300x248.jpg" alt="vSphere Lab Environment Topology" width="300" height="248" /></a></span></h6>
<p><strong>A note on licensing</strong></p>
<p style="text-align: left;">You will also notice that the ESXi server will automatically assign a 60-day evaluation license. Although you can register for a free ESXi license, the free edition will be extremely limited in features and totally unsuitable unless you simply wish to run virtual machines.</p>
<p style="text-align: left;">I will be assuming that all licenses for your home lab will either be evaluation or purchased. The downside of evaluation licensing of course is that you&#8217;ll have to re-install your environment every 60 days.</p>
<p style="text-align: left;"><strong>Download and Install the vSphere Client</strong></p>
<ol>
<li>Navigate to https://&lt;ESXi-IP-ADDRESS&gt; (E.g. https://192.168.4.10)</li>
<li>Download vSphere Client and install!</li>
<p>When you launch the vSphere Client, you&#8217;ll need to enter the IP address of the ESXi host followed by the username (root) and password. You should have this information following the installation and initial configuration in <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">part 2</a>. You will receive a security warning stating that the SSL certificate is untrusted.</p>
<li>Select &#8220;Install this certificate and do not display any security warnings&#8221; then click Ignore.</li>
</ol>
<p><strong><br />
Creating the core virtual machines:</strong></p>
<p>I&#8217;ve called these the &#8216;core&#8217; virtual machines as these are the VM&#8217;s that make up the home lab and provide the core functionality. I won&#8217;t be guiding you through the steps to create virtual machines, as this article is aimed at someone with at least a basic understanding of creating a VM, however, I will be summarising the configuration required.</p>
<p>The following specifications are well below the recommended, however, this is what I have used in my lab environment and it works well for me. All virtual machine hardware is version 7.</p>
<table id="box-table-a" summary="Domain Controller">
<tbody>
<tr>
<td width="122" valign="top"><strong>Domain Controller</strong></td>
<td></td>
</tr>
<tr>
<td width="122" valign="top">Operating System</td>
<td width="262" valign="top">Windows Server 2008 / R2 (64-bit)</td>
</tr>
<tr>
<td width="122" valign="top">No. of vCPU&#8217;s</td>
<td width="262" valign="top">1</td>
</tr>
<tr>
<td width="122" valign="top">Virtual RAM</td>
<td width="262" valign="top">1024MB</td>
</tr>
<tr>
<td width="122" valign="top">Hard disk</td>
<td width="262" valign="top">40GB (Thin)</td>
</tr>
<tr>
<td width="122" valign="top">SCSI Controller</td>
<td width="262" valign="top">LSI Logic SAS</td>
</tr>
<tr>
<td width="122" valign="top">Network Adapter</td>
<td width="262" valign="top">1 x E1000</td>
</tr>
</tbody>
</table>
<p>I created a domain controller on Windows Server 2008 R2 and added (A) records for CORE-ESX, and ESX01 &#8211; 05. Nothing more to this stage.</p>
<table id="box-table-a" summary="VCENTER">
<tbody>
<tr>
<td width="122" valign="top"><strong>vCenter</strong></td>
<td></td>
</tr>
<tr>
<td width="122" valign="top">Operating System</td>
<td width="262" valign="top">Windows Server 2008 / R2 (64-bit)</td>
</tr>
<tr>
<td width="122" valign="top">No. of vCPU&#8217;s</td>
<td width="262" valign="top">1</td>
</tr>
<tr>
<td width="122" valign="top">Virtual RAM</td>
<td width="262" valign="top">2048MB</td>
</tr>
<tr>
<td width="122" valign="top">Hard disk</td>
<td width="262" valign="top">40GB (Thin)</td>
</tr>
<tr>
<td width="122" valign="top">SCSI Controller</td>
<td width="262" valign="top">LSI Logic SAS</td>
</tr>
<tr>
<td width="122" valign="top">Network Adapter</td>
<td width="262" valign="top">1 x E1000</td>
</tr>
</tbody>
</table>
<p>Build a virtual machine running Windows Server 2008 R2 and join it to your domain. Next, install vCenter with Microsoft SQL 2005 Express. I won&#8217;t detail the steps required to install VMware vCenter, just follow the installation defaults.</p>
<table id="box-table-a" summary="RDS Gateway">
<tbody>
<tr>
<td width="122" valign="top"><strong>RD Gateway</strong></td>
<td></td>
</tr>
<tr>
<td width="122" valign="top">Operating System</td>
<td width="262" valign="top">Windows Server 2008 R2 (64-bit)</td>
</tr>
<tr>
<td width="122" valign="top">No. of vCPU&#8217;s</td>
<td width="262" valign="top">1</td>
</tr>
<tr>
<td width="122" valign="top">Virtual RAM</td>
<td width="262" valign="top">1024MB</td>
</tr>
<tr>
<td width="122" valign="top">Hard disk</td>
<td width="262" valign="top">40GB (Thin)</td>
</tr>
<tr>
<td width="122" valign="top">SCSI Controller</td>
<td width="262" valign="top">LSI Logic SAS</td>
</tr>
<tr>
<td width="122" valign="top">Network Adapter</td>
<td width="262" valign="top">1 x E1000</td>
</tr>
</tbody>
</table>
<p>The RD Gateway server enables me to securely connect over port 443 to any of my machines. It only takes a few minutes to setup, and it gives me the flexibility to connect from anywhere. Read my article on installing and configuring the <a href="http://www.rayheffer.com/953/building-a-remote-desktop-gateway-rdg-rd-gateway-server/">RD Gateway here</a>.</p>
<p><strong>Installing &amp; Configuring the Openfiler SAN:</strong></p>
<p>The Openfiler SAN is a virtual appliance and can be downloaded from <a href="http://www.openfiler.com/community/download/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.openfiler.com/community/download/?referer=');">www.openfiler.com</a>. As a virtual appliance you just need to upload it to your datastore and add it to the ESXi server (browse datastore and add to inventory), no configuration of the virtual machine hardware is necessary. For your information here is the configuration of the Openfiler:</p>
<table id="box-table-a" summary="RDS Gateway">
<tbody>
<tr>
<td width="122" valign="top"><strong>Openfiler SAN</strong></td>
<td>VM Version 4</td>
</tr>
<tr>
<td width="122" valign="top">Operating System</td>
<td width="262" valign="top">Other Linux (64-bit)</td>
</tr>
<tr>
<td width="122" valign="top">No. of vCPU&#8217;s</td>
<td width="262" valign="top">1</td>
</tr>
<tr>
<td width="122" valign="top">Virtual RAM</td>
<td width="262" valign="top">512MB</td>
</tr>
<tr>
<td width="122" valign="top">Hard disk</td>
<td width="262" valign="top">2.25GB (Thick)</td>
</tr>
<tr>
<td width="122" valign="top">SCSI Controller</td>
<td width="262" valign="top">LSI Logic Parallel</td>
</tr>
<tr>
<td width="122" valign="top">Network Adapter</td>
<td width="262" valign="top">1 x E1000</td>
</tr>
</tbody>
</table>
<p>I&#8217;ll be adding a guide to the Openfiler setup soon, but I&#8217;m slacking due to the Christmas and New Year break (that&#8217;s my excuse anyway!)</p>
<p><a href="http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/">Part 1</a> | <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">Part 2</a> | Part 3</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/898/vmware-vsphere-%e2%80%98whitebox%e2%80%99-server-lab-setup-%e2%80%93-part-3/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>VIDEO: VMware vSphere &#8216;Whitebox&#8217; Server Lab Setup &#8211; Part 2</title>
		<link>http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/</link>
		<comments>http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/#comments</comments>
		<pubDate>Fri, 10 Dec 2010 21:51:05 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[asus rampage II]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[home lab]]></category>
		<category><![CDATA[i7]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[quad core]]></category>
		<category><![CDATA[vcap]]></category>
		<category><![CDATA[vcdx]]></category>
		<category><![CDATA[vcp]]></category>
		<category><![CDATA[vsphere]]></category>
		<category><![CDATA[whitebox]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=873</guid>
		<description><![CDATA[Following on from part 1 of my VMware vSphere &#8216;whitebox&#8217; sever series, this video provides an overview of the build, and installation and configuration of ESXi. Part 1 &#124; Part 2 &#124; Part 3 Take note that I&#8217;m using the ESXi installable ISO downloaded from VMware, as opposed to ESXi embedded. Continue to Part 3]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F873%2Fvideo-vmware-vsphere-whitebox-server-lab-setup-part-2%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F873_2Fvideo-vmware-vsphere-whitebox-server-lab-setup-part-2_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F873%2Fvideo-vmware-vsphere-whitebox-server-lab-setup-part-2%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="425" height="344" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/GSjlSdZWu2g?hl=en&amp;fs=1" /><param name="allowfullscreen" value="true" /><embed type="application/x-shockwave-flash" width="425" height="344" src="http://www.youtube.com/v/GSjlSdZWu2g?hl=en&amp;fs=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p>Following on from <a href="http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/">part 1</a> of my VMware vSphere &#8216;whitebox&#8217; sever series, this video provides an overview of the build, and installation and configuration of ESXi.</p>
<p><span id="more-873"></span></p>
<p><a href="http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/">Part 1</a> | <span style="color: #808080;">Part 2 | <a href="http://www.rayheffer.com/898/vmware-vsphere-%E2%80%98whitebox%E2%80%99-server-lab-setup-%E2%80%93-part-3/">Part 3</a></span></p>
<p>Take note that I&#8217;m using the ESXi installable ISO downloaded from VMware, as opposed to ESXi embedded.<br />
<strong><br />
<a href="http://www.rayheffer.com/898/vmware-vsphere-%E2%80%98whitebox%E2%80%99-server-lab-setup-%E2%80%93-part-3/"> Continue to Part 3</a></strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>VMware vSphere &#8216;Whitebox&#8217; Server Lab Setup &#8211; Part 1</title>
		<link>http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/</link>
		<comments>http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/#comments</comments>
		<pubDate>Tue, 07 Dec 2010 22:34:50 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Business & IT]]></category>
		<category><![CDATA[Home Lab]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[asus rampage II]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[i7]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[lab]]></category>
		<category><![CDATA[quad core]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[vsphere]]></category>
		<category><![CDATA[whitebox]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=838</guid>
		<description><![CDATA[Introduction Way back when VMware VI3 was released in 2006 (doesn&#8217;t time fly!), I built a home-brew lab server for ESX 3.0 and used it partly to study for my VCP exam. That particular machine is now my home theatre PC (HTPC) as it wouldn&#8217;t stand a chance of running VMware vSphere, so here is my mission [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F838%2Fvmware-vsphere-whitebox-server-lab-setup-part-1%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F838_2Fvmware-vsphere-whitebox-server-lab-setup-part-1_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F838%2Fvmware-vsphere-whitebox-server-lab-setup-part-1%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Introduction</strong></p>
<p>Way back when VMware VI3 was released in 2006 (doesn&#8217;t time fly!), I built a home-brew lab server for ESX 3.0 and used it partly to study for my VCP exam. That particular machine is now my home theatre PC (HTPC) as it wouldn&#8217;t stand a chance of running VMware vSphere, so here is my mission to build a <a href="http://en.wikipedia.org/wiki/White_box_(computer_hardware)" target="_blank" onclick="pageTracker._trackPageview('/outgoing/en.wikipedia.org/wiki/White_box_computer_hardware?referer=');">whitebox</a> VMware vSphere lab server. I must also give credit to <a href="http://www.techhead.co.uk" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.techhead.co.uk?referer=');">Simon Seagrave</a> and <a href="http://vinf.net" target="_blank" onclick="pageTracker._trackPageview('/outgoing/vinf.net?referer=');">Simon Gallagher</a> their vSphere lab server articles which have inspired me to do something about it and build a vSphere lab at home. Simon has lots of great articles on building a vSphere lab, and I urge you to visit his site.</p>
<p><span id="more-838"></span><span style="color: #999999;">Part 1</span> | <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">Part 2</a> | <a href="http://www.rayheffer.com/898/vmware-vsphere-%E2%80%98whitebox%E2%80%99-server-lab-setup-%E2%80%93-part-3/">Part 3</a></p>
<h6>vSphere Lab Environment Topology:<a href="http://www.rayheffer.com/wp-content/uploads/2010/12/vSphere-Topology1.jpg" rel="lightbox[838]"><br />
<img class="alignnone size-medium wp-image-922" title="vSphere Lab Environment Topology" src="http://www.rayheffer.com/wp-content/uploads/2010/12/vSphere-Topology1-300x248.jpg" alt="vSphere Lab Environment Topology" width="300" height="248" /></a></h6>
<p><strong>Reasons for a home lab?</strong></p>
<p>Throughout my entire IT career I have used equipment at home to help study for certifications and enhance my technical knowledge. As an IT professional you&#8217;ll not only need a lab to study for your certifications, but you will need a test-bed to experiment and try things for the first time. There have been occasions as a technical consultant where a fairly niche customer requirement presents itself and is something that requires very specialist skills. Having the flexibility to remotely connect to my home lab and test a procedure or new technology gives you the confidence to carry out that piece of work in front of the customer, even if it&#8217;s the first time you&#8217;ve done it. We all have to start somewhere, and there is a first time for everything&#8230; better that it&#8217;s in a test environment than a live production system though!</p>
<p>Ever since I first started in IT back in 1997, I have always had a home server, lab, test-bed or whatever you want to call it. I remember installing NT4 on a home built server in 1997, promoting it to a PDC and then configuring WINS and DHCP. I even had a couple of Cisco 2500 routers so I could emulate a serial connection between two subnets, and at the time I felt that I was at the cutting edge. For the past 5 years, VMware has made it a whole lot easier to create test and development platforms. VMware Workstation is the saviour of many developers and server administrators as it allows them to very easily create virtual servers for testing, experimenting or learning, whether it&#8217;s on their laptop or home PC.</p>
<p>The most important factor of having a home-lab for me personally has been the freedom to access a broad range of server technologies that I can do whatever I like, from build to destruction.</p>
<p><strong>Server Choice</strong></p>
<p>I desperately wanted to avoid buying a branded server from HP or Dell, because to get anything near the specification of my whitebox would cost a fortune. Not only that but the ML115 G5 is becoming very hard to get hold of, unless you find a bargain on Ebay. The later ML115 G6 is reported to work, but the B110i storage controller won&#8217;t work. I find that these type of servers can also be very noisy and my wife doesn&#8217;t understand the novelty of these things when they&#8217;re powered on in the spare bedroom!</p>
<p>Officially you would need to buy a server that is listed on the <a href="http://www.vmware.com/resources/compatibility/search.php?action=base&amp;deviceCategory=server" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/resources/compatibility/search.php?action=base_amp_deviceCategory=server&amp;referer=');">VMware HCL</a> but thanks to VM-Help.com they have put together a <a href="http://vm-help.com/esx40i/esx40_whitebox_HCL.php" target="_blank" onclick="pageTracker._trackPageview('/outgoing/vm-help.com/esx40i/esx40_whitebox_HCL.php?referer=');">whitebox HCL</a> which has the Asus Rampage II motherboard on the whitebox HCL list. Also my intention is to build a system that I can put to other uses in the future such as a gaming PC, should later versions of vSphere not be compatible for any reason.</p>
<p>So for me the decision is clear&#8230; my own whitebox vSphere server!</p>
<p><strong> </strong></p>
<p><span style="text-decoration: underline;"><strong>My VMware vSphere &#8216;Whitebox&#8217; Server Kit List</strong></span></p>
<p><strong><a href="http://www.rayheffer.com/wp-content/uploads/2010/12/DSC_0019.jpg" rel="lightbox[838]" title="Asus Rampage II Extreme Intel X58 1366 Motherboard"><img class="alignright size-medium wp-image-857" title="Asus Rampage II Extreme Intel X58 1366 Motherboard" src="http://www.rayheffer.com/wp-content/uploads/2010/12/DSC_0019-300x200.jpg" alt="Asus Rampage II Extreme Intel X58 1366 Motherboard" width="300" height="200" /></a>MOTHERBOARD</strong>: Asus Rampage II Extreme Intel X58 1366<br />
<strong> CPU</strong>: Intel i7 930 2.8GHz Socket 1366 8MB L3 Cache<br />
<strong> RAM</strong>: 12GB OCZ Gold Low Voltage (6x2GB) DDR3 PC3-16000C10 2000MHz Triple Channel<br />
<strong>NETWORK</strong>: Intel Pro/1000 MT Dual port 1GbE (the two onboard GbE NIC&#8217;s don&#8217;t work with vSphere)<br />
<strong> SSD</strong>: OCZ 120GB Vertex 2E SSD 2.5&#8243; SATA-II Read = 285MB/s, Write = 275MB/s 50,000 IOPS<br />
<strong> GRAPHICS</strong>: Asus HD 4350 512MB DDR2 DVI VGA HDMI Out PCI-E Low Profile Graphics Card<br />
<strong> PSU</strong>: Antec TruePower New 650W Modular PSU<br />
<strong> OTHER</strong>: LiteOn IHAS124-19 24x DVD±RW DL &amp; RAM SATA Optical Drive<br />
<strong>CASE</strong>: Antec Plusview 1000AMG</p>
<p><strong>Network Switch: </strong>Linksys SLM2008<br />
Thanks to <a href="http://www.techhead.co.uk" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.techhead.co.uk?referer=');">Techhead</a> for pointing this out. This is ideal for my home lab environment as it has 8 x 10/100/1000 GbE ports and supports 802.1q VLAN segmentation, and Jumbo Frame support (9KB). It even supports PoE (Power over Ethernet) from the first port, although I doubt I&#8217;ll use that. It is an awesome switch and pretty cheap at around £70.</p>
<p><strong><span style="text-decoration: underline;">Total Cost: £970 (inc VAT and Postage)</span>*</strong></p>
<p>*Best price I could find for all components listed as of December 2010</p>
<p>To help understand what features my setup will support, I&#8217;ve put together this table&#8230;</p>
<h3><strong>Features &amp; Hardware Requirements</strong></h3>
<table id="box-table-a" summary="Whitebox Server">
<tbody>
<tr>
<td width="122" valign="top"><strong>Feature</strong></td>
<td width="262" valign="top"><strong>Hardware   Requirement</strong></td>
<td width="232" valign="top"><strong>Meets   Requirement?</strong></td>
</tr>
<tr>
<td width="122" valign="top">vSphere</td>
<td width="262" valign="top">64-bit processor<br />
Intel-VT<br />
AMD-V</td>
<td width="232" valign="top">Yes</td>
</tr>
<tr>
<td width="122" valign="top">VMDirectPath</td>
<td width="262" valign="top">Intel-VTd<br />
AMD IOMMU</td>
<td width="232" valign="top"><strong><em>No</em></strong></td>
</tr>
<tr>
<td width="122" valign="top">DPM</td>
<td width="262" valign="top">Wake-on-LAN, Server IPMI or HP iLO</td>
<td width="232" valign="top">Yes</td>
</tr>
<tr>
<td width="122" valign="top">Dynamic Voltage &amp; Frequency Scaling</td>
<td width="262" valign="top">Intel Enhanced Speedstep<br />
AMD Enhanced PowerNow</td>
<td width="232" valign="top">Yes</td>
</tr>
<tr>
<td width="122" valign="top">Fault Tolerance</td>
<td width="262" valign="top">Intel&#8217;s Core 2, Core i7<br />
AMD&#8217;s 3rd Generation Opteron family</td>
<td width="232" valign="top">Yes *</td>
</tr>
<tr>
<td width="122" valign="top">VMotion</td>
<td width="262" valign="top">Similar CPU family (not cross vendor)</td>
<td width="232" valign="top">Yes</td>
</tr>
<tr>
<td width="122" valign="top">Enhanced VMotion Capability</td>
<td width="262" valign="top">Intel FlexMigration<br />
AMD-V Extended Migration</td>
<td width="232" valign="top">Yes</td>
</tr>
</tbody>
</table>
<p>* Fault tolerance would need more than one ESX host in an HA cluster, and a processor that supports virtualisation (VT), however the virtual ESX hosts will not provide VT therefore Fault Tolerance cannot be used.</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2010/12/DSC_0017.jpg" rel="lightbox[838]" title="Antec Plusview 1000AMG case"><img class="alignleft size-medium wp-image-861" title="Antec Plusview 1000AMG case" src="http://www.rayheffer.com/wp-content/uploads/2010/12/DSC_0017-300x200.jpg" alt="Antec Plusview 1000AMG case" width="300" height="200" /></a> So here is the case I&#8217;m using, it&#8217;s an Antec Plusview 1000 AMG which is larger than I would normally use, but as it was just sitting in my garage I decided to put it to good use. It will also sit quite happily in my spare room under the desk, and the only fans I am intending to use in this case are the CPU fan and obviously the built-in PSU fan. Other than those two the graphics card and motherboard are silent which means that my wife won&#8217;t get too upset!</p>
<p>In part 2 I&#8217;ll show you the hardware build, configuration and then the installation of ESXi 4.1 and vCenter.</p>
<p><strong>Update: </strong>I have had issues with the Asus Rampage II Extreme detecting 8GB instead of 12GB memory, see <a href="http://bit.ly/fKZRjs" target="_blank" onclick="pageTracker._trackPageview('/outgoing/bit.ly/fKZRjs?referer=');">this link</a> for further information.</p>
<p><span style="color: #999999;">Part 1</span> | <a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/">Part 2</a> | <a href="http://www.rayheffer.com/898/vmware-vsphere-%E2%80%98whitebox%E2%80%99-server-lab-setup-%E2%80%93-part-3/">Part 3</a></p>
<p><a href="http://www.rayheffer.com/873/video-vmware-vsphere-whitebox-server-lab-setup-part-2/"><strong>Continue to part 2 (video)</strong></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>VMware ESX 3.x Snapshots</title>
		<link>http://www.rayheffer.com/4/vmware-esx-3-x-snapshots/</link>
		<comments>http://www.rayheffer.com/4/vmware-esx-3-x-snapshots/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 15:55:09 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[delta]]></category>
		<category><![CDATA[esx]]></category>
		<category><![CDATA[snapshots]]></category>
		<category><![CDATA[vi3]]></category>

		<guid isPermaLink="false">http://wp.rayheffer.com/?p=4</guid>
		<description><![CDATA[Snapshots are a fantastic way of providing a quick and reliable method of rolling back the state of a virtual machine, should something go astray following an patch or update. VMware VCB also uses virtual machine snapshots to quiesce the VM prior to taking the backup data. However, in larger environments where there may be tens or [...]]]></description>
			<content:encoded><![CDATA[<div class="tweetmeme_button" style="float: right; margin-left: 10px;">
			<a href="http://api.tweetmeme.com/share?url=http%3A%2F%2Fwww.rayheffer.com%2F4%2Fvmware-esx-3-x-snapshots%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F4_2Fvmware-esx-3-x-snapshots_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F4%2Fvmware-esx-3-x-snapshots%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Snapshots are a fantastic way of providing a quick and reliable method of rolling back the state of a virtual machine, should something go astray following an patch or update. VMware VCB also uses virtual machine snapshots to quiesce the VM prior to taking the backup data.</p>
<p>However, in larger environments where there may be tens or hundreds of VMware ESX servers, snapshots can also be a pain in the backside if there is no control over who is using them. Why? Because snapshots work by creating a delta VMDK that records the changes in blocks, a process called copy-on-write (COW). Over time the delta VMDK file will grow, and depending on the level of I/O within the VM it could grow faster on some virtual machines and not others.</p>
<p>The danger only presents itself if the datastore where the VMDK resides reaches it&#8217;s capacity. When this happens, virtual machines that are not thin-provisioned should continue to run with no problems, but think about these situations:</p>
<p>1) You have other virtual machines in the same datastore using snapshots.<br />
2) You have one or more virtual machines on thin-provisioned disks.<br />
3) You have powered off virtual machines, that need to be powered on.</p>
<p>In all of the above scenarios if the datastore is full then the affected virtual machines will be suspended (paused). Virtual machines with thick-provisioned disks will continue to operate as the VMDK already has the full allocated of storage space available. Virtual machines that are powered off, and need to be powered back on will fail as they won&#8217;t have enough disk space to create the virtual swap file.<br />
<span id="more-4"></span></p>
<p>The simple rules to follow to avoid these situations is:</p>
<p>1) Allow enough free disk space in each datastore for the snapshots to reside. If snapshots are only ever created during a VCB backup, and the virtual machines have little I/O then you won&#8217;t need as much space as busy environments.<br />
2) Monitor the use of snapshots in your environment. I&#8217;ve included a command you can run to find snapshots below.<br />
3) Don&#8217;t forget about snapshots and leave them in place. They will get bigger!<br />
4) Change the permissions to restrict who can take virtual machine snapshots. The fewer the better, and try to establish some internal procedures to make IT staff aware of the potential issues.</p>
<p>A simple, yet useful command you can run on each ESX server to find snapshots is this:</p>
<p>Login to your ESX server and change the working directory to /vmfs/volumes. Then use the grep command to find vmsn (VMware Snapshot) files.</p>
<p><code># cd /vmfs/volumes<br />
# ls -Rh | grep "vmsn"</code></p>
<p>This can be really useful, especially when you don&#8217;t know who is creating snapshots and forgetting they are there!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/4/vmware-esx-3-x-snapshots/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
<!-- WP Super Cache is installed but broken. The path to wp-cache-phase1.php in wp-content/advanced-cache.php must be fixed! -->
