<?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; Tech Tips</title>
	<atom:link href="http://www.rayheffer.com/category/tech-tips/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>8.3 VCAP-DCA Study Guide &#8211; vMA (vSphere Management Assistant)</title>
		<link>http://www.rayheffer.com/1179/4-1-vcap-dca-study-guide-vma-vsphere-management-assistant/</link>
		<comments>http://www.rayheffer.com/1179/4-1-vcap-dca-study-guide-vma-vsphere-management-assistant/#comments</comments>
		<pubDate>Mon, 04 Jul 2011 20:16:12 +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>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1179</guid>
		<description><![CDATA[If you haven&#8217;t already used the vMA (vSphere Management Assistant) then I strongly encourage you to do so as it&#8217;s an essential tool in managing your ESX and ESXi hosts, and it really makes the transition from ESX to ESXi straight forward. Understanding and using the vMA is part of section 8.3 in the VCAP-DCA [...]]]></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%2F1179%2F4-1-vcap-dca-study-guide-vma-vsphere-management-assistant%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1179_2F4-1-vcap-dca-study-guide-vma-vsphere-management-assistant_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1179%2F4-1-vcap-dca-study-guide-vma-vsphere-management-assistant%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/02/vsphere.png" rel="lightbox[1179]" title="VMware vSphere"><img class="size-full wp-image-1176 alignleft" title="VMware vSphere" src="http://www.rayheffer.com/wp-content/uploads/2011/02/vsphere.png" alt="VMware vSphere" width="70" height="70" /></a>If you haven&#8217;t already used the vMA (vSphere Management Assistant) then I strongly encourage you to do so as it&#8217;s an essential tool in managing your ESX and ESXi hosts, and it really makes the transition from ESX to ESXi straight forward. Understanding and using the vMA is part of section 8.3 in the VCAP-DCA blueprint.</p>
<p><span id="more-1179"></span></p>
<h4><strong>Commands Covered</strong></h4>
<ul>
<li>domainjoin-cli</li>
<li>visudo</li>
<li>vifptarget</li>
<li>vicfg-nics</li>
<li>vicfg-syslog</li>
<li>vifp listservers</li>
<li>vma-update</li>
<li><strong>vicfg-syslog</strong></li>
<li><strong>vilogger</strong></li>
<li><strong>vifptarget (vifpinit)</strong></li>
<li><strong>resxtop</strong></li>
</ul>
<h4><strong>Configuring Active Directory Authentication</strong></h4>
<p>Log into vMA as vi-admin then:</p>
<p><code># sudo domainjoin-cli join mydomain.local administrator<br />
# sudo domainjoin-cli query<br />
# sudo reboot</code></p>
<h4><strong>Adding an Active Directory Group to the Sudoers file</strong></h4>
<p>Log into vMA as vi-admin then:</p>
<p><code># sudo visudo</code></p>
<p>Add a new line under the entry for root:</p>
<p><code>root    ALL=(ALL)       ALL<br />
%MYDOMAIN\\Domain\ Admins ALL=(ALL) ALL</code></p>
<p>This translates to: <code>MYDOMAIN\Domain Admins</code> can run from <code>ALL</code> terminals, acting as <code>ALL</code> (any) users, and run <code>ALL</code> (any) command. The reason there are two backslashes before the domain name is because the first slash is an escape character, and says to allow the next character. A backslash is also required when spaces exist, in our case <code>Domain Admins</code>. Again, <code>Domain\ Admins</code> means that it should allow the space.</p>
<p>Save and exit the sudoers file (:wq)</p>
<h4><strong>Add vCenter server to vMA</strong></h4>
<p>Log into vMA as vi-admin then:</p>
<p><code># sudo vifp addserver vcenter.mydomain.local --authpolicy adauth --username mydomain\\administrator</code></p>
<p>To set this as the default target:</p>
<p><code># vifptarget -s vcenter.mydomain.local</code></p>
<p>Verify that your target has been set:</p>
<p><code># vifptarget -d</code></p>
<p>It should display the hostname of your vCenter server.</p>
<p>Make sure you can run commands against one of your hosts in vCenter:</p>
<p><code># vicfg-nics -l --vihost &lt;FQDN of your ESX host&gt;</code></p>
<p><strong>Tip: </strong>Make sure you enter the fully qualified domain name otherwise it will not find the ESX host.</p>
<h4><strong>List servers that have been added</strong></h4>
<p><code># vifp listservers</code></p>
<h4><strong>Removing a server from the vMA</strong></h4>
<p>Log into vMA as vi-admin then:</p>
<p><code># sudo vifp removeserver vcenter.mydomain.local</code></p>
<h4><strong>Using vma-update (vima-update)</strong></h4>
<p># sudo vma-update scan<br />
# sudo vma-update update</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1179/4-1-vcap-dca-study-guide-vma-vsphere-management-assistant/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Customising the default profile in Windows 7</title>
		<link>http://www.rayheffer.com/1459/customising-the-default-profile-in-windows-7/</link>
		<comments>http://www.rayheffer.com/1459/customising-the-default-profile-in-windows-7/#comments</comments>
		<pubDate>Fri, 13 May 2011 12:11:19 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[VMware View]]></category>
		<category><![CDATA[VDI]]></category>
		<category><![CDATA[view]]></category>
		<category><![CDATA[vsphere]]></category>
		<category><![CDATA[waik]]></category>
		<category><![CDATA[windows 7]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1459</guid>
		<description><![CDATA[Configuring the default user profile in Windows 7 When creating your base (parent) image you may want to configure the default user profile so when new users log into the desktop for the first time, it retains certain customisations such as the desktop background colour, shortcuts, etc.  Prior to Windows 7 you were able to [...]]]></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%2F1459%2Fcustomising-the-default-profile-in-windows-7%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1459_2Fcustomising-the-default-profile-in-windows-7_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1459%2Fcustomising-the-default-profile-in-windows-7%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p><strong>Configuring the default user profile in Windows 7</strong></p>
<p>When creating your base (parent) image you may want to configure the default user profile so when new users log into the desktop for the first time, it retains certain customisations such as the desktop background colour, shortcuts, etc.  Prior to Windows 7 you were able to copy a user profile to the default user profile, but Windows 7 does not permit this method. Instead, you must create an unattend.xml (unattended installation file) with Windows System Image Manager (WSIM) which is part of the <a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34&amp;displaylang=en" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/downloads/en/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34_amp_displaylang=en&amp;referer=');">Windows Automated Installation Kit</a>.<br />
<span id="more-1459"></span><br />
You want to keep your base build as clean as possible, so I suggest installing the Windows AIK on to another machine so you can create your unattend.xml file.</p>
<p><strong>Step 1: </strong>Download and Install the <a href="http://www.microsoft.com/downloads/en/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34&amp;displaylang=en" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.microsoft.com/downloads/en/details.aspx?familyid=696DD665-9F76-4177-A811-39C26D3B3B34_amp_displaylang=en&amp;referer=');">Windows Automated Installation Kit</a>.</p>
<p><strong>Step 2:</strong> Launch Windows System Image Manager (Start &gt; All Programs &gt; Microsoft Windows AIK)</p>
<p><strong>Step 3:</strong> Select Windows Image (File &gt; Select Windows Image), navigate to your Windows 7 Enterprise CD and select install.wim from the sources directory.</p>
<p><strong>Step 4: </strong>In the Windows Image section (bottom left), navigate to Windows 7 ENTERPRISE &gt; Components &gt; ﻿<code>x86_Microsoft-Windows-Shell-Setup_6.1.7600.16385_neutral</code>, then right click and select &#8216;Add Setting to Pass 4 specialize&#8217;. If you are using an AMD processor then simply select the alternative for amd64.</p>
<p><strong>Step 5:</strong> In the answer file section (top middle), you should now see <code>x86_Microsoft-Windows-Shell-Setup_neutral</code> listed under 4 specialize. Click on this, and in the properties pane (top right) you need to change CopyProfile to true. Save your newly created answer file as Untitled.xml on to the C: drive of your Windows 7 base image.</p>
<p><strong>Step 6: </strong>On your Windows 7 build, make sure you are logged on as a local administrator then run the following: <code>%systemroot%\system32\sysprep\sysprep.exe /oobe /reboot /generalize /unattend:c:\Unattend.xml</code>. Sysprep will now run and copy the profile of the currently logged on user as the default, then it will reboot the machine.</p>
<p>Once Sysprep has rebooted your virtual machine, finish the setup wizard and any final tweaks you wish to make before shutting it down and making it active for your View desktop pool (you are doing this with VMware View right?).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1459/customising-the-default-profile-in-windows-7/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>Changing text typing repeat delay on a VMware virtual machine</title>
		<link>http://www.rayheffer.com/1367/changing-text-typing-repeat-delay-on-a-vmware-virtual-machine/</link>
		<comments>http://www.rayheffer.com/1367/changing-text-typing-repeat-delay-on-a-vmware-virtual-machine/#comments</comments>
		<pubDate>Thu, 17 Mar 2011 15:34:54 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Virtualisation]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1367</guid>
		<description><![CDATA[If you find that when typing text using the VMware virtual machine console on a low bandwidth connection,  it repeats characters (no matter how careful you are). Try setting the following configuration parameter: keyboard.typematicMinDelay = 2000000 You&#8217;ll need to power off your VM first, then add this to the end of your configuration (.vmx) file. [...]]]></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%2F1367%2Fchanging-text-typing-repeat-delay-on-a-vmware-virtual-machine%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1367_2Fchanging-text-typing-repeat-delay-on-a-vmware-virtual-machine_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1367%2Fchanging-text-typing-repeat-delay-on-a-vmware-virtual-machine%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>If you find that when typing text using the VMware virtual machine console on a low bandwidth connection,  it repeats characters (no matter how careful you are). Try setting the following configuration parameter:</p>
<p><code>keyboard.typematicMinDelay = 2000000</code></p>
<p>You&#8217;ll need to power off your VM first, then add this to the end of your configuration (.vmx) file.  If you are using VMware ESX/ESXi then edit the settings of the virtual machine and go to Options then Advanced, General &gt; Configuration Parameters.</p>
<p><strong>VMware KB 196:</strong> <a href="http://kb.vmware.com/kb/196" target="_blank" onclick="pageTracker._trackPageview('/outgoing/kb.vmware.com/kb/196?referer=');">http://kb.vmware.com/kb/196</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1367/changing-text-typing-repeat-delay-on-a-vmware-virtual-machine/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>8.3 VCAP-DCA Study Guide &#8211; Introduction to vMA (vSphere Management Assistant)</title>
		<link>http://www.rayheffer.com/1268/vmware-vma-introduction-to-the-vsphere-management-assistant/</link>
		<comments>http://www.rayheffer.com/1268/vmware-vma-introduction-to-the-vsphere-management-assistant/#comments</comments>
		<pubDate>Thu, 24 Feb 2011 12:05:50 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[ESX]]></category>
		<category><![CDATA[ESXi]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[VCAP-DCA]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vcli]]></category>
		<category><![CDATA[vma]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=1268</guid>
		<description><![CDATA[The vSphere Management Assistant (vMA) runs a 64 bit operating system (RedHat Enterprise Linux) and features the VMware vCLI in addition to vSphere SDK for Perl, Java JRE, CIM vSphere profiles, VMware tools and an SNMP agent. The vMA virtual machine requires a single vCPU with 512MB memory and a 5GB virtual disk. If you are [...]]]></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%2F1268%2Fvmware-vma-introduction-to-the-vsphere-management-assistant%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F1268_2Fvmware-vma-introduction-to-the-vsphere-management-assistant_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F1268%2Fvmware-vma-introduction-to-the-vsphere-management-assistant%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-1275" title="VMware vMA (vSphere Management Assistant)" src="http://www.rayheffer.com/wp-content/uploads/2011/02/vma.png" alt="VMware vMA (vSphere Management Assistant)" width="141" height="135" />The vSphere Management Assistant (vMA) runs a 64 bit operating system (RedHat Enterprise Linux) and features the VMware vCLI in addition to vSphere SDK for Perl, Java JRE, CIM vSphere profiles, VMware tools and an SNMP agent. The vMA virtual machine requires a single vCPU with 512MB memory and a 5GB virtual disk. If you are studying for the VCAP-DCA exam then you will need to know how to install and use the vMA to manage a vSphere environment. The best way to learn how to use the vMA is to setup your own home lab. I&#8217;ve already posted an article on building a whitebox VMware vSphere server for your home lab (<a href="http://www.rayheffer.com/838/vmware-vsphere-whitebox-server-lab-setup-part-1/" target="_blank">click here</a>), otherwise you can always use VMware Workstation on your PC or laptop.<br />
<span id="more-1268"></span></p>
<h4><strong>Installing vMA</strong></h4>
<p>Installing the vMA is very easy and you can download the latest version from <a href="http://www.vmware.com/support/developer/vima" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vmware.com/support/developer/vima?referer=');">VMware </a> where you will also find documentation. It will download in <code>.zip</code> format and contains the vMA as an OVF. This can be imported into vCenter &#8216;<em>File &gt; Deploy OVF Template&#8230;</em>&#8216;.  Once it has been deployed into your vSphere environment and powered on, you will be presented with a text based setup wizard where you can set the IP address, subnet mask, gateway, DNS, and so on. When you have completed the setup, you will need to connect to the vMA using an SSH client (PuTTY).</p>
<h4><strong>Getting started with vMA</strong></h4>
<p>Log into a the vMA using <code>vi-admin</code> and the password you created during the initial setup. As I mentioned previously, vMA has all of the vCLI commands (E.g. <code>vicfg-nics</code>, <code>vicfg-vswitch</code>) which are located in <code>/usr/bin</code>.</p>
<p>With any command remember that you can use <code>--help</code> (E.g. <code>vicfg-nics --help</code>) to display a list of options, even seasoned command line junkie&#8217;s use this so don&#8217;t think of it as something just for us newbies!</p>
<p>Most commands will need a target server, so here is an example of a simple command you can try out on one of your hosts. Throughout this article I will be using my own home lab to run these commands.</p>
<p><code>$ vicfg-nics -l --server esx01.home.lab</code> (Always use the FQDN of your host)</p>
<p>It will prompt you for a username and password that you can use to authenticate against this host, for our example we are using root. You will then see your NIC&#8217;s listed:</p>
<p><code>Name    PCI     Driver     Link Speed    Duplex MAC Address        MTU    Description<br />
vmnic0  02:00.0 e1000      Up   1000Mbps Full   00:50:56:a5:00:07  1500   Intel Corporation PRO/1000 MT Single Port Adapter<br />
vmnic1  02:02.0 e1000      Up   1000Mbps Full   00:50:56:a5:00:03  1500   Intel Corporation PRO/1000 MT Single Port Adapter</code></p>
<p>As you can see this is a really easy way of managing your ESX hosts, but another feature you should be aware of is the vi-fastpass which allows you to add your hosts and vcenter server with the associated passwords. With vi-fastpass you can run the <code>vicfg </code>commands without being prompted each time. Very slick.</p>
<p>To use vi-fastpass you need to add the hosts you wish to manage using the vifp addserver command:</p>
<p><code>$ vifp addserver</code></p>
<p>Next you need to set your target using the vifptarget command:</p>
<p><code>$ vifptarget -s esx01.home.lab</code></p>
<p><strong>Note: </strong>The vifptarget command has replaced vifpinit. Watch out for this if you are studying for your VCAP-DCA exam.</p>
<p>You&#8217;ll notice that the shell prompt now has the hostname of your target host, very useful if you forget which target you last set!</p>
<p><code>[vi-admin@vma ~][esx01] $</code></p>
<p>If you run the <code>vicfg-nics -l </code>command again you won&#8217;t be prompted for the root password.</p>
<h4><strong>Session Files</strong></h4>
<p>Another method of storing the host credentials is with session files. I personally don&#8217;t use this because I prefer vi-fastpass, but it is good to understand how it works. Firstly, change directory to <code>/usr/share/doc/vmware-vcli/samples/session</code> and you&#8217;ll see three Perl scripts:</p>
<p><code>$ cd /usr/share/doc/vmware-vcli/samples/session<br />
$ ll</code></p>
<p><code> </code></p>
<p><code>-r-xr-xr-x 1 root root  782 Apr  8  2010 load_session.pl<br />
-r-xr-xr-x 1 root root 2624 Apr  8  2010 multisession.pl<br />
-r-xr-xr-x 1 root root  888 Apr  8  2010 save_session.pl</code></p>
<h4><strong>Creating a host session</strong></h4>
<p><code># ./save_session.pl --server esx01.home.lab --username root --password Password --savesessionfile /home/vi-admin/esx01.session</code></p>
<p>The above command will create a file in <code>/home</code> called <code>esx1.session</code> and stores the credentials for that host. It doesn&#8217;t store the password in plain text, and it only lasts for 30 minutes unlike vi-fastpass.</p>
<p>To test your session file, first make sure your vifptarget is clear then run the vicfg-nics command using the session file:</p>
<p><code>$ vifptarget -c<br />
$ vicfg-nics -l --sessionfile /home/vi-admin/esx01.session</code></p>
<p>The command should run without prompting you for a password.</p>
<h4><strong>Summary</strong></h4>
<p>Now that you can see how easy it is to get started with vMA, I recommend that you download the documentation from VMware and experiment with different commands. In addition to adding ESX/ESXi hosts with <code>vifp addserver</code>, you can also add vCenter servers. To display a list of your servers use <code>vifp listservers</code>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/1268/vmware-vma-introduction-to-the-vsphere-management-assistant/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>Building a Remote Desktop Gateway (RDG) / RD Gateway Server</title>
		<link>http://www.rayheffer.com/953/building-a-remote-desktop-gateway-rdg-rd-gateway-server/</link>
		<comments>http://www.rayheffer.com/953/building-a-remote-desktop-gateway-rdg-rd-gateway-server/#comments</comments>
		<pubDate>Wed, 05 Jan 2011 08:11:00 +0000</pubDate>
		<dc:creator>Ray Heffer</dc:creator>
				<category><![CDATA[Business & IT]]></category>
		<category><![CDATA[Microsoft]]></category>
		<category><![CDATA[Tech Tips]]></category>
		<category><![CDATA[Windows Server 2008 R2]]></category>
		<category><![CDATA[dmz]]></category>
		<category><![CDATA[rd gateway]]></category>
		<category><![CDATA[rds]]></category>
		<category><![CDATA[remote access]]></category>
		<category><![CDATA[remote desktop services]]></category>
		<category><![CDATA[ts gateway]]></category>

		<guid isPermaLink="false">http://www.rayheffer.com/?p=953</guid>
		<description><![CDATA[Creating a Remote Desktop Gateway (RD Gateway) is straight forward and can be used to securely access your Windows servers over port 443 using the Remote Desktop Connection Client.  I use this to access my home lab when I&#8217;m on the road or at work, and it saves exposing your machines to the internet directly [...]]]></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%2F953%2Fbuilding-a-remote-desktop-gateway-rdg-rd-gateway-server%2F" onclick="pageTracker._trackPageview('/outgoing/api.tweetmeme.com/share?url=http_3A_2F_2Fwww.rayheffer.com_2F953_2Fbuilding-a-remote-desktop-gateway-rdg-rd-gateway-server_2F&amp;referer=');"><br />
				<img src="http://api.tweetmeme.com/imagebutton.gif?url=http%3A%2F%2Fwww.rayheffer.com%2F953%2Fbuilding-a-remote-desktop-gateway-rdg-rd-gateway-server%2F&amp;source=rayheffer&amp;style=normal&amp;service=TinyURL.com&amp;b=2" height="61" width="50" /><br />
			</a>
		</div>
<p>Creating a Remote Desktop Gateway (RD Gateway) is straight forward and can be used to securely access your Windows servers over port 443 using the Remote Desktop Connection Client.  I use this to access my home lab when I&#8217;m on the road or at work, and it saves exposing your machines to the internet directly over RDP (TCP 3389). The RD Gateway isn&#8217;t new, in fact it was available on Windows Server 2008 as TS Gateway, and the installation is the same. For this article, I will be using Windows Server 2008 R2.<span id="more-953"></span></p>
<p>I run my RD Gateway on a virtual machine located inside a DMZ that I have created using <a href="http://www.vyatta.com/" target="_blank" onclick="pageTracker._trackPageview('/outgoing/www.vyatta.com/?referer=');">Vyatta</a>, a free virtual appliance. I won&#8217;t go into the firewall configuration here, as this is a quick configuration guide for creating your RDS Gateway.</p>
<p><strong>Step 1:</strong> Build a new virtual machine and install Windows Server 2008 R2.</p>
<p><strong>Step 2:</strong> Click on Add Roles (in Server Manager). You will then be presented with the following wizard dialog boxes. Click on each image for full screen.</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-001.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-969" title="Installing Remote Desktop Services Gateway (RD Gateway) - Add roles wizard" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-001-300x220.jpg" alt="Installing Remote Desktop Services Gateway (RD Gateway) - Add roles wizard" width="300" height="220" /><br />
</a>a) Click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-002.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-970" title="Remote Desktop Gateway (RD Gateway) - Select Server Role" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-002-300x221.jpg" alt="Remote Desktop Gateway (RD Gateway) - Select Server Role" width="300" height="221" /><br />
</a>b) Select &#8220;Remote Desktop Services&#8221; and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-003.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-971" title="Introduction to Remote Desktop Services" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-003-300x220.jpg" alt="Introduction to Remote Desktop Services" width="300" height="220" /><br />
</a>c) Click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-004.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-972" title="Remote Desktop Gateway role service" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-004-300x221.jpg" alt="Remote Desktop Gateway role service" width="300" height="221" /><br />
</a>d) Select &#8220;Remote Desktop Gateway and click next&#8221;</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-005.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-973" title="Role services and features required for Remote Desktop Gateway" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-005-300x148.jpg" alt="Role services and features required for Remote Desktop Gateway" width="300" height="148" /><br />
</a>e) Click &#8220;Add Required Role Services&#8221;</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-006.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-974" title="Remote Desktop Gateway (RD Gateway) Server Authentication SSL Certificate" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-006-300x221.jpg" alt="Remote Desktop Gateway (RD Gateway) Server Authentication SSL Certificate" width="300" height="221" /><br />
</a>f) Select &#8220;Choose a certificate for SSL encryption later&#8221;</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-007.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-976" title="Remote Desktop Gateway Authorization Policies" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-007-300x221.jpg" alt="Remote Desktop Gateway Authorization Policies" width="300" height="221" /><br />
</a>g) Select &#8220;Create authorization policies&#8221;  &#8221;Now&#8221; and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-008.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-977" title="Authorized user groups to connect to the RD Gateway" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-008-300x220.jpg" alt="Authorized user groups to connect to the RD Gateway" width="300" height="220" /><br />
</a>h) Add the group(s) that you wish to grant access through the RD Gateway or leave the default &#8220;Administrators&#8221; and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-009.jpg" rel="lightbox[953]" title="RD CAP (Remote Desktop Connection Authorization Policy)"><img class="alignnone size-medium wp-image-980" title="RD CAP (Remote Desktop Connection Authorization Policy)" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-009-300x221.jpg" alt="RD CAP (Remote Desktop Connection Authorization Policy)" width="300" height="221" /></a></p>
<p>i) Leave the default &#8220;Password&#8221; selected and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-010.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-981" title="RD RAP (Remote Desktop Resource Authorization Policy)" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-010-300x221.jpg" alt="RD RAP (Remote Desktop Resource Authorization Policy)" width="300" height="221" /><br />
</a>j) Click &#8220;Browse&#8221; to choose which computers RD Gateway users can connect to, or select &#8220;Allow users to connect to any computer on the network&#8221; and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-011.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-982" title="Introduction to Network Policy and Access Services (RD Gateway)" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-011-300x221.jpg" alt="Introduction to Network Policy and Access Services (RD Gateway)" width="300" height="221" /><br />
</a>k) Click next on the &#8220;Introduction to Network Policy and Access Services&#8221; screen</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-012.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-983" title="Remote Desktop Gateway - Network Policy Server Role" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-012-300x221.jpg" alt="Remote Desktop Gateway - Network Policy Server Role" width="300" height="221" /><br />
</a>l) Leave the default &#8220;Network Policy Server&#8221; selected and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-013.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-985" title="Remote Desktop Gateway - Introduction to Web Server (IIS)" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-013-300x221.jpg" alt="Remote Desktop Gateway - Introduction to Web Server (IIS)" width="300" height="221" /><br />
</a>m) Click next on the &#8220;Introduction to Web Server (IIS)&#8221; screen</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-014.jpg" rel="lightbox[953]"><img class="alignnone size-medium wp-image-986" title="Remote Desktop Gateway (RD Gateway) - IIS Web Server Roles" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-014-300x221.jpg" alt="Remote Desktop Gateway (RD Gateway) - IIS Web Server Roles" width="300" height="221" /><br />
</a>n) Leave the defaults selected and click next</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-015.jpg" rel="lightbox[953]" title="Installing Remote Desktop Services Gateway (RD Gateway)"><img class="alignnone size-medium wp-image-987" title="Installing Remote Desktop Services Gateway (RD Gateway)" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-015-300x221.jpg" alt="Installing Remote Desktop Services Gateway (RD Gateway)" width="300" height="221" /></a></p>
<p>o) Click Install to begin the installation.</p>
<p>When the installation is finished you should be presented with the following screen:</p>
<p><a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-016.jpg" rel="lightbox[953]" title="Remote Desktop Gateway (RD Gateway) - Installation Summary"><img class="alignnone size-medium wp-image-988" title="Remote Desktop Gateway (RD Gateway) - Installation Summary" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-016-300x220.jpg" alt="Remote Desktop Gateway (RD Gateway) - Installation Summary" width="300" height="220" /></a></p>
<p><strong>Step 3: Configuring the RD Gateway</strong></p>
<ol>
<li>Now the RD Gateway is installed, go to Start &gt; Administrative Tools &gt; Remote Desktop Services &gt; Remote Desktop Gateway Manager.</li>
<li>Right click on the RD Gateway server within the RD Gateway Manager console and select Properties.</li>
<li>Select &#8220;Create a self-signed certificate&#8221; then click &#8220;Create and Import Certificate&#8221;. You will then be presented with the following: <a href="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-017.jpg" rel="lightbox[953]" title="RD Gateway - Create a self-signed certificate"><img class="alignnone size-medium wp-image-993" title="RD Gateway - Create a self-signed certificate" src="http://www.rayheffer.com/wp-content/uploads/2011/01/rds-gateway-017-300x153.jpg" alt="RD Gateway - Create a self-signed certificate" width="300" height="153" /></a></li>
<li>Make sure that the certificate name is the internet DNS (domain) name that resolves to the internet IP address of the RD Gateway server. The firewall will need to allow communication to the server on TCP port 443.</li>
<li>Tick &#8220;Store the root certificate&#8221; and choose a file location to save the certificate. For example: C:\rd-cert.cer</li>
</ol>
<p>As this is a self-signed certificate, you will need to import the certificate to your machine that you are accessing the RD Gateway from. To do this, follow these steps:</p>
<ol>
<li>From the client machine accessing the RD Gateway, right click on the certificate file and click &#8220;Install Certificate&#8221;</li>
<li>Click Next then select &#8220;Place all certificates in the following store&#8221;</li>
<li>Browse to &#8220;Trusted Root Certification Authorities&#8221;, then click Next.</li>
<li>Click Finish</li>
</ol>
<p><strong>Note: </strong>You will need to ensure that the internet (DNS) host name can be resolved to the internet IP address of the RD Gateway server, so make sure that this is the case. This domain name must match the certificate name (E.g. rdg.mydomain.com)</p>
<p><strong>Step 4: Configuring the Remote Desktop Connection Client</strong></p>
<ol>
<li>Launch the Remote Desktop Connection client.</li>
<li>Select the &#8220;Advanced&#8221; tab and click &#8220;Settings&#8221;.</li>
<li>Select &#8220;Use these RD Gateway server settings&#8221; (Windows XP will be &#8220;Use these TS Gateway settings&#8221;)</li>
<li>Enter the server / host name (E.g. rdg.mydomain.com) of your RD Gateway server</li>
<li>Optional: Select &#8220;Use my RD Gateway credentials for the remote computer&#8221;</li>
<li>Click OK.</li>
<li>Finally, under the &#8220;General&#8221; tab enter the local IP address or server name of the machine you wish to connect to.</li>
</ol>
<p>Your connection will be tunnelled over SSL, providing your firewall configuration permits TCP port 443 from the internet to your RD Gateway server and TCP port 3389 from the RD Gateway server to your internal network.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rayheffer.com/953/building-a-remote-desktop-gateway-rdg-rd-gateway-server/feed/</wfw:commentRss>
		<slash:comments>5</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>
	</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! -->
