<?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>ben.neise.co.uk &#187; VMware</title>
	<atom:link href="http://ben.neise.co.uk/index.php/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://ben.neise.co.uk</link>
	<description></description>
	<lastBuildDate>Wed, 27 Jul 2011 10:19:42 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Creating a Shortcut to a PowerShell Script</title>
		<link>http://ben.neise.co.uk/index.php/2011/07/creating-a-shortcut-to-a-powershell-script/</link>
		<comments>http://ben.neise.co.uk/index.php/2011/07/creating-a-shortcut-to-a-powershell-script/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 10:09:40 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Powershell Script]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[VI Toolkit]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=163</guid>
		<description><![CDATA[You've probably noticed that when you double-click on a PowerShell script, it is opened for editing rather than being run. This is useful from a security standpoint, and while administrators have no problem opening up the shell and running the script, you've probably made something useful that you want to share with users, and users always need a bit more hand-holding.]]></description>
			<content:encoded><![CDATA[<p>You&#8217;ve probably noticed that when you double-click on a PowerShell script, it is opened for editing rather than being run. This is useful from a security standpoint, and while administrators have no problem opening up the shell and running the script, you&#8217;ve probably made something useful that you want to share with users, and users always need a bit more hand-holding.</p>
<div id="attachment_166" class="wp-caption alignnone" style="width: 228px"><img class="size-medium wp-image-166" title="PowerShell shortcut properties" src="http://ben.neise.co.uk/wp-content/uploads/2009/05/psshortcut-218x300.png" alt="PowerShell shortcut properties" width="218" height="300" /><p class="wp-caption-text">PowerShell shortcut properties</p></div>
<p>Assuming that your PowerShell installation is in the default location, you need to append the path to your script in the shortcut path like so:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">%windir%\System32\WindowsPowerShell\v1.0\powershell.exe C:\Scripts\MyUsefulScript.ps1</pre></div></div>

<p>If you are wanting to run a PowerCLI (VI Toolkit) script, you also need to add the following line:-</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008080; font-weight: bold;">Add-PSSnapin</span> VMware.VimAutomation.Core</pre></div></div>

<p>&#8230;to your script, as the VMware Cmdlets are not loaded by default unless you run it from the VMware Toolkit Shortcut.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2011/07/creating-a-shortcut-to-a-powershell-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Eric Sloof&#8217;s quick guide to using the VMware VIX API with vCenter</title>
		<link>http://ben.neise.co.uk/index.php/2010/04/eric-sloofs-quick-guide-to-using-the-vmware-vix-api-with-vcenter/</link>
		<comments>http://ben.neise.co.uk/index.php/2010/04/eric-sloofs-quick-guide-to-using-the-vmware-vix-api-with-vcenter/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 11:45:32 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=373</guid>
		<description><![CDATA[Eric Sloof from NTPro.NL has posted an excellent short video showing how easy it is to create a VB application to do some simple operations on vSphere virtual machines. Online Training – Automating vSphere with the VIX API from Eric Sloof NTPRO.NL on Vimeo. I can&#8217;t wait to try this out, although I think I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://twitter.com/esloof">Eric Sloof</a> from <a href="http://www.ntpro.nl/blog/">NTPro.NL</a> has posted an excellent short video showing how easy it is to create a VB application to do some simple operations on vSphere virtual machines.</p>
<p><object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="400" height="300" 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://vimeo.com/moogaloop.swf?clip_id=11193427&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=24ff95&amp;fullscreen=1" /><embed type="application/x-shockwave-flash" width="400" height="300" src="http://vimeo.com/moogaloop.swf?clip_id=11193427&amp;server=vimeo.com&amp;show_title=1&amp;show_byline=1&amp;show_portrait=1&amp;color=24ff95&amp;fullscreen=1" allowscriptaccess="always" allowfullscreen="true"></embed></object></p>
<p><a href="http://vimeo.com/11193427">Online Training – Automating vSphere with the VIX API</a> from <a href="http://vimeo.com/esloof">Eric Sloof NTPRO.NL</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>I can&#8217;t wait to try this out, although I think I&#8217;m going to have to do a little Visual Basic study first.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2010/04/eric-sloofs-quick-guide-to-using-the-vmware-vix-api-with-vcenter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Automatically converting machines to thin provisioned format</title>
		<link>http://ben.neise.co.uk/index.php/2010/03/automatically-converting-machines-to-thin-provisioned-format/</link>
		<comments>http://ben.neise.co.uk/index.php/2010/03/automatically-converting-machines-to-thin-provisioned-format/#comments</comments>
		<pubDate>Thu, 18 Mar 2010 10:19:06 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Powershell Script]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Onyx]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=370</guid>
		<description><![CDATA[A script to automatically convert your traditional thick-provisioned machines to thin format.]]></description>
			<content:encoded><![CDATA[<p>I haven&#8217;t been posting too much here recently I&#8217;m afraid. A lot of the things that I&#8217;m currently working on are pretty specific to the environment here, and are not particularly useful (or indeed, interesting) to anyone else.</p>
<p>One of the things I&#8217;ve been doing might be more generally useful. We needed to convert around 700 of our machines to thin-provisioned format. When migrating to the new environment we&#8217;d stuck to traditional &#8220;thick&#8221; machines, as there was a lot of upheaval, and we didn&#8217;t have the necessary monitoring in place. Now that things have settled, we were looking to take advantage of the thin format to save us some space. We had already run <a href="http://ben.neise.co.uk/index.php/2009/10/using-sdelete-to-maximise-the-amount-of-disk-space-reclaimed-during-conversion-to-thin-provisioned-disks/">SDELETE</a> on the (non-persistent) machines during the migration, so we were ready to go.</p>
<p>The conversion process is fairly simple: a new option during a storage vMotion. However, the idea of doing this 700 times did not appeal to me, so I wrote the script below to automate the process.</p>
<pre class="brush: powershell; title: ; notranslate"># Convert Machines To Thin Provisioned
# Ben Neise 16/03/10

# Create an empty array
$arrMachinesToBeConverted = @()

Write-Host &quot;Getting virtual machine objects&quot; -ForegroundColor Blue
Write-Host &quot;&quot;

# Select the broad category of VMs we're looking at, for example all the machines in a specific blue folder
$objVMs = Get-Folder &quot;Projects&quot; | Get-VM | Sort-Object

Write-Host &quot;Generating list of candidates&quot; -ForegroundColor Blue
Write-Host &quot;&quot;

# Loop through all the virtual machines selected
ForEach ($objVM in $objVMs){

	Write-Host &quot;Investigating &quot; -NoNewline
	Write-Host $objVM -ForegroundColor Blue -NoNewline

	# Skip the rest of the loop if the machine is thin provisioned
	If ($objVM | Get-HardDisk | Where-Object {$_.StorageFormat -like &quot;Thin&quot;}){
		Write-Host &quot; - disks are already thin provisioned&quot; -ForegroundColor DarkGray
		continue
	}

	# Skip the rest of the loop is the machine is switched on and non-persistent
	If ($objVM | Where-Object {$_.PowerState -ne &quot;PoweredOff&quot;} | Get-HardDisk | Where-Object {$_.Persistence -notlike &quot;IndependentPersistent&quot;}){
		Write-Host &quot; - switched on and non-persistent&quot; -ForegroundColor DarkGray
		continue
	}

	# Skip the rest of the loop if the machine is powered-on, and has snapshots
	If ($objVM | Where-Object {$_.PowerState -ne &quot;PoweredOff&quot; -and ($objVM | Get-Snapshot)}) {
		Write-Host &quot; - switched on and with snapshots&quot; -ForegroundColor DarkGray
		continue
	}

	# Skips the rest of the loop if the machine has a shared drive and is not set up as fault tolerant (indicating that it's a Linked Clone)
	# Thanks to Keshav Attrey for this method - http://www.vmdev.info/?p=546)
	$viewVM = $objVM | Get-View -Property Name,Summary,Config.Hardware.Device
	$unshared = $viewVM.Summary.Storage.Unshared
	$committed = $viewVM.Summary.Storage.Committed
	$ftInfo = $viewVM.Summary.Config.FtInfo
	If (($unshared -ne $committed) -and (($ftInfo -eq $null) -or ($ftInfo.InstanceUuids.Length -le 1))){
		Write-Host &quot;The machine is a linked clone&quot; -ForegroundColor DarkGray
		continue
	}

	Write-Host &quot;Added to the list of machines to be converted&quot;
	$arrMachinesToBeConverted += $objVM
}

Write-Host &quot;Starting Storage vMotions&quot; -ForegroundColor Blue
Write-Host  $arrMachinesToBeConverted.Count -ForegroundColor Blue -NoNewline
Write-Host &quot; machines to be converted&quot; -ForegroundColor DarkGray
Write-Host &quot;&quot;

ForEach ($objVM in $arrMachinesToBeConverted | Sort-Object){

	# Get the biggest datastore
	$objBiggestDatastore = Get-Datastore | Sort-Object -Property FreeSpaceMB -Descending
	# Select the datastore from the top of the previously generated list (index 0) and remove the preceeding &quot;Datastore-&quot; from it's ID to give us the MOID
	$strTargetDatastore = ($objBiggestDatastore[0].Id).replace('Datastore-','')	

	# Let the user know what's going on
	Write-Host &quot;Migrating machine &quot; -NoNewline
	Write-Host $objVM -ForegroundColor Blue -NoNewline
	Write-Host &quot;, to Thin Provisioned format on datastore &quot; -NoNewline
	Write-Host $objBiggestDatastore[0] -ForegroundColor Blue -NoNewline
	Write-Host &quot;&quot;

	# Get the view of the VM we're moving
	$viewVM = Get-View -VIObject $objVM
	# Remove the preceding &quot;HostSystem-&quot; from the VM's Host's ID, giving us the Host's MOID
	$strTargetHost = ($objVM.host.id).replace('HostSystem-','')
	# Create a task specification for the relocation
	$specRelocate = New-Object VMware.Vim.VirtualMachineRelocateSpec
	# Add the target datastore to the specification using the MOID
	$specRelocate.datastore = New-Object VMware.Vim.ManagedObjectReference
	$specRelocate.datastore.type = &quot;Datastore&quot;
	$specRelocate.datastore.value = $strTargetDatastore
	# Add the host to the specification using the MOID
	$specRelocate.host = New-Object VMware.Vim.ManagedObjectReference
	$specRelocate.host.type = &quot;HostSystem&quot;
	$specRelocate.host.value = $strTargetHost
	# This is the specification property that makes the disk Thin Provisioned
	$specRelocate.transform = &quot;sparse&quot;
	# Create the task where the previously specified task is applied to the view of the target VM
	$task = $viewVM.RelocateVM_Task($specRelocate, $priority)
	# Start the task, and wait for it to complete before continuing
	Get-VIObjectByVIView $task | Wait-Task | Out-Null

}</pre>
<p>It works through the collection of virtual machine objects in <strong>$objVMs</strong>, and adds them to an array if they pass certain criteria. They must be:-</p>
<ul>
<li>Not be currently thin provisioned</li>
<li>Not switched on and non-persistent</li>
<li>Not switched on with snapshots</li>
<li>Not a linked clone (thanks to <a href="http://www.vmdev.info/?page_id=2">Keshav Attrey</a> for his <a href="http://www.vmdev.info/?p=546">method of finding linked clones</a>)</li>
</ul>
<p>It then starts a separate loop going through each machine object in the array. I could have integrated the migration task into the first loop, but this approach means you can add a human &#8220;sanity-check&#8221; if you&#8217;ve got certain machines you don&#8217;t want to migrate.</p>
<p>The script finds the datastore with the largest amount of free space, and then the actual migration is done using code which I <a href="http://ben.neise.co.uk/index.php/2009/11/changing-standbyaction-using-powershell-script-generated-with-help-from-onyx/">generated using Onyx</a>. The free space on the datastores is re-evaluated before every move. This makes the script quite slow, but this isn&#8217;t something you want to rush.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2010/03/automatically-converting-machines-to-thin-provisioned-format/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Changing drive letter assignments after deploying a virtual machine from a template</title>
		<link>http://ben.neise.co.uk/index.php/2010/01/changing-drive-letter-assignments-after-deploying-a-virtual-machine-from-a-template/</link>
		<comments>http://ben.neise.co.uk/index.php/2010/01/changing-drive-letter-assignments-after-deploying-a-virtual-machine-from-a-template/#comments</comments>
		<pubDate>Fri, 22 Jan 2010 13:36:31 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Powershell Script]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=346</guid>
		<description><![CDATA[Using PowerCLI and DISKPART to change drive letter assignments after specific assignments have been reset by Sysprep during the customisation process.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had an ongoing problem with &#8220;Sequencing&#8221; machines for <a href="http://en.wikipedia.org/wiki/Microsoft_Application_Virtualization">Microsoft Application Virtualisation</a> (formerly SoftGrid). The virtual machine template is correctly set up with a secondary drive set to Q:\ (the drive letter is integral to the sequencing process). However, when the machines are deployed from the template, the Sysprep part of the customization process <a href="http://social.technet.microsoft.com/forums/en-US/itprovistadeployment/thread/694daccd-a48d-4529-9aaa-555cda297038">results in the drive being &#8220;reset&#8221;</a> to the lowest available &#8211; in this case D:\.</p>
<p>At first, we manually changed these assignments using the Disk Management MMC before setting the drives to non-persistent. Lately, I&#8217;ve been using a DISKPART script, which speeds up the process, but still requires logging into each machine.</p>
<p>I saw Arnim <a href="http://www.van-lieshout.com/2010/01/powercli-get-wmi-info-from-isolated-guests/">van Lieshout&#8217;s post on <strong>Invoke-VMScript</strong> yesterday</a>, and realised that this could be used to run the DISKPART script on multiple machines. In order to get the TXT file used by DISKPART onto the machine, I&#8217;m also using the <strong>Copy-VMGuestFile</strong> command found in <a href="http://www.vmware.com/support/developer/windowstoolkit/wintk40u1/windowstoolkit40U1-200911-releasenotes.html">PowerCLI 4.0 Update 1</a>.</p>
<pre class="brush: powershell; title: ; notranslate"># Change drive letter assignment from D to Q

# Gets the specific VMs we're after as an object
$objVMs = Get-Folder &quot;Sequencers&quot; | Get-VM | Sort-Object Name

# Assign the command line required for DISKPART to a variable
$strScript = &quot;IF EXIST D:\ DISKPART /S C:\DiskPart_Change_C_To_Q.txt&quot;

# Loop through the VMs
ForEach ($objVM in $objVMs){
# Let the user know
Write-Host Copying file to $objVM
Copy-VMGuestFile -Source &quot;C:\Tools\DiskPart_Change_C_To_Q.txt&quot; -Destination &quot;c:\&quot; -LocalToGuest -VM $objVM -HostUser root -HostPassword password -GuestUser Administrator -GuestPassword password
Write-Host Changing disk partitions on $objVM
Invoke-VMScript $strScript -vm $objVM -HostUser root -HostPassword password -GuestUser Administrator -GuestPassword password -ScriptType &quot;bat&quot;
}&lt;/pre&gt;
The TXT file contained the following:-
&lt;pre&gt;SELECT VOLUME 2
ASSIGN LETTER=Q</pre>
<p>This requires root credentials for the host, and administrator rights on the target machine, but, as Arnim notes, will work in the absence of client network connectivity.</p>
<p>This is a bit of a hack,: leaving the TXT file behind on the C drive; using root credentials rather than an account with the least effective permissions; and having the script contain the credentials in plain-text. However, I&#8217;m enthusiastic about using this solution in a more structured way in future. I&#8217;m already thinking about using it to defragment and <a href="http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx">SDelete</a> our thick-provisioned virtual machines before converting them to Thin provisioned disks.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2010/01/changing-drive-letter-assignments-after-deploying-a-virtual-machine-from-a-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linked Clones</title>
		<link>http://ben.neise.co.uk/index.php/2010/01/linked-clones/</link>
		<comments>http://ben.neise.co.uk/index.php/2010/01/linked-clones/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 16:18:57 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Powershell Script]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=330</guid>
		<description><![CDATA[We've started our first “proper” implemenation of Linked Clones in our vSphere 4 environment. While we've done some limited proof-of-concept work, this is the first project to be entirely deployed using Linked Clones. The objective is to reduce the space used by our training machines on our new environment.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve started our first “proper” implemenation of Linked Clones in our vSphere 4 environment. While we&#8217;ve done some limited proof-of-concept work, this is the first project to be entirely deployed using Linked Clones. The objective is to reduce the space used by our training machines on our new environment.</p>
<p>Linked clones allow multiple machines to share a common read-only &#8220;base&#8221; VMDK file, with each machine generating their own delta (REDO). Under normal usage circumstances, the REDO would continue to grow throughout the life of the machine; however as our machines have non-persistent hard drives, they reset to a clean state when powered-down. This makes our environment ideally suited to taking advanatage of the functionality offered by Linked Clones. They can either be created manually (by moving and renaming files on the datastore), or via the APIs, you can get more information on them in this <a href="http://www.vmware.com/support/developer/vc-sdk/linked_vms_note.pdf">White Paper from VMware</a>.</p>
<p>Our training machines are functionally identical to our production machines, and similarly consist of three types &#8211; Capture, Packaging and Verification. These are 11, 8, and 8 GB respectively. The usage patterns are slightly different, as &#8211; unlike &#8220;live&#8221; projects which have a steady stream of work, trainees tend to come in in large batches. This means that the training environment either needs to be continuously large, but mostly idle, or it needs to be regularly redeployed then stripped back.</p>
<p>The benefits achieved via the implementation of Linked Clones in this project resulted in roughly the same ratio of space saving as our proof-of-concepts, but as the number of machines involved was greater, the differences are more pronounced. Also this is the first time we’ve exceeded 8 machines sharing the same VMDK, which is a notable milestone as it is only possible if we limit the number of possible hosts that the machines can run on (<a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1003319">there is a VMFS limitation of 8 hosts accessing a VMDK concurrently</a>). As we have DRS enabled, this meant reducing the number of hosts in each cluster to 8 or less.</p>
<p>We deployed twenty-five machines each, of  the three different builds used in a project. All were Windows XP virtual machines</p>
<p>The three machines being used as the parents had their <a href="http://ben.neise.co.uk/index.php/2009/10/using-sdelete-to-maximise-the-amount-of-disk-space-reclaimed-during-conversion-to-thin-provisioned-disks/">slack space on the drives was cleaned</a> using <a href="http://technet.microsoft.com/en-us/sysinternals/bb897443.aspx">SDelete</a>, then the machine was converted to Thin Provisioned using Storage vMotion. It was switched off, and a snapshot was created. This snapshot will form the base for the parent&#8217;s clones.</p>
<p>The machines were deployed using the a script similar to the one at the bottom of this post, and it took just over an hour to deploy and customize all 75 machines. This was considerably faster than the time it would have taken to deploy 75 machines using the normal &#8220;Deploy from template&#8221;  method.</p>
<p>Here are the data:-</p>
<ul>
<li>Estimated space used if deployed traditionally: <strong>675 GB</strong>
<ul>
<li>Capture: 11 GB per machine</li>
<li> Packaging: 8 GB per machine</li>
<li>Verification: 8 GB per machine</li>
</ul>
</li>
</ul>
<ul>
<li>Estimated Space if Deployed as Thin Provisioned, but not Linked Clones: <strong>238.75 GB</strong>
<ul>
<li>Capture: 3.34 GB per machine</li>
<li>Packaging: 3.72 GB per machine</li>
<li>Verification: 2.49 GB per machine</li>
</ul>
</li>
</ul>
<ul>
<li>Space used in current configuration: <strong>19.3 GB</strong>
<ul>
<li>Capture 3.34 GB for parent, plus 0.13 GB per Linked Clone</li>
<li>Packaging 3.72 GB for parent, plus 0.13 GB per Linked Clone</li>
<li>Verification 2.49 GB for parent, plus 0.13 GB per Linked Clone</li>
</ul>
</li>
</ul>
<p>And in graph-format, for extra impact:-</p>
<p><a href="../wp-content/uploads/2010/01/DiskSpaceUsed1.png"><img title="DiskSpaceUsed" src="../wp-content/uploads/2010/01/DiskSpaceUsed1.png" alt="" width="478" height="284" /></a></p>
<p>All size estimates are based on the machines in a powered-down state. When powered on, a swap file (equal to the size of the assigned RAM) is created, and (assuming the machines are non-persistent) REDO files are created on all types of machines.</p>
<p>I’ve been on a few of the machines and they don’t appear to suffer from any noticeable performance degradation, although the true test won’t come until we get considerable concurrent use.</p>
<p>I&#8217;m tentatively declaring this a huge success. Rather than the training environment using 240 GB between training engagaments, it&#8217;s now down to a svelte 20GB, with no reduction in functionality.</p>
<p>Below is a script similar to the one I used to deploy the linked clones. The actual &#8220;meat&#8221;, which deploys the machines was based on Hal Rottenberg&#8217;s <a href="http://poshcode.org/1549">New-LinkedClone.ps1</a> script. As far as possible, I&#8217;ve tried to strip out stuff that&#8217;s specific to our environment (we use the Custom Attributes as an asset management database and to track which machines were deployed from which templates). There&#8217;s probably going to be stuff in there that doesn&#8217;t make much sense, but if you&#8217;ve got a bit of an understanding of PowerShell, you should be able to cut and keep the bits you want.</p>
<pre class="brush: powershell; title: ; notranslate"># Script to deploy linked clones

# List of custom attributes which you're wanting to copy from the template or parent to the newly created machine
# (Machines deployed from templates no longer inherit CAs in vSphere 4.0)
# These help us track provenance, and provide information to the user
$arrStrAttributesToCopy = @(
&quot;AD Object Location&quot;,
&quot;Customisation&quot;,
&quot;Infrastructure Consultant&quot;,
&quot;Logon Administrator Name&quot;,
&quot;Logon Administrator Password&quot;,
&quot;Logon User Name&quot;,
&quot;Logon User Password&quot;,
&quot;Mobilisation Consultant&quot;,
&quot;Project&quot;,
&quot;Role&quot;,
)

# Name of the Custom Attribute on the parent which contains the name of the customisation to use
$CustomFieldName = &quot;Customisation&quot;

Function DeployLinkedClone ($strSourceVM, $intToBeDeployed, $intStartDeployingAtNumber, $CustomFieldName){
# Bases the name of the machine on the second part of the string split by spaces. This assumes that the template follows the standard naming convention of &quot;Tmpl [Name] x.x&quot;
$strMachinePrefix = ($strSourceVM.split(' ')[1])
$objVM = Get-VM $strSourceVM
$viewVM = $objVM | Get-View
$objCustomization = Get-OSCustomizationSpec ($objVM.CustomFields.Item($CustomFieldName))
# Ensure that the machines does not have a non persistent HD
If ($objVM | Get-HardDisk | Where-Object {$_.Persistence -like &quot;IndependentNonPersistent&quot;}){
Write-Host $objTemplate has a non-persistent HD!
}
# If the customisation, as specified in the parent's custom attribute does not exist, then quit.
If (!$objCustomization){
Write-Host Customisation ($objVM.CustomFields.Item($CustomFieldName)) not found. Exiting.
Break
}
$i = 1
Do {
# Convert the single digit integer (i.e., &quot;1&quot;) into a double digit (i.e., &quot;01&quot;)
$strMachineNumber = (&quot;{0:0#}&quot; -f $intStartDeployingAtNumber)
# Concatenate the machine name prefix (from the template name) with the double-digit integer, which is incrememted on each loop
$strMachineBeingDeployed = $strMachinePrefix+$strMachineNumber
# Check that the machine doesn't already exist
If ((Get-VM -Name $strMachineBeingDeployed -ErrorAction SilentlyContinue)){
Write-Host &quot;Machine $strMachineBeingDeployed already exists!&quot;
Break
}
# Let the user know what's going on
Write-Host &quot;&quot;
Write-Host &quot;Deploying new linked-clone &quot; -NoNewline
Write-Host $strMachineBeingDeployed -ForegroundColor Blue -NoNewline
Write-Host &quot;, from template &quot; -NoNewline
Write-Host $strSourceVM -ForegroundColor Blue -NoNewline
Write-Host &quot;, using customisation &quot; -NoNewline
Write-Host $objCustomization -ForegroundColor Blue -NoNewline
Write-Host &quot;, on the same Host as the parent&quot; -NoNewline
Write-Host &quot;&quot;
# Create the new machine using all these variables
$objFolder = $viewVM.parent
$specClone = New-Object Vmware.Vim.VirtualMachineCloneSpec
# Get the most recent snapshot attached to the machine
$specClone.Snapshot = $viewVM.Snapshot.CurrentSnapshot
# Create an object to represent the location of the clone
$specClone.Location = New-Object Vmware.Vim.VirtualMachineRelocateSpec
# This is the move-type that specifies the new disk backing (which is the bit that makes a linked clone)
$specClone.Location.DiskMoveType = &quot;createNewChildDiskBacking&quot;
# Run the task with the specified parameters
$task = $viewVM.CloneVM_Task($objFolder, $strMachineBeingDeployed, $specClone)
Get-VIObjectByVIView $task | Wait-Task | Out-Null
# Get the object for the machine which was just deployed
$objTargetVM = Get-VM $strMachineBeingDeployed
# Apply the customisation specification to the newly created clone
Set-VM -VM $objTargetVM -OSCustomizationSpec $objCustomization -Confirm:$false
# Start the clone
Start-VM -VM $objTargetVM
# Get the view (needed for writing custom attributes)
$viewTarget = $objTargetVM | Get-View
# Loop through each of the custom attributes which are to be copied
ForEach ($arrStrAttributeToCopy in $arrStrAttributesToCopy){
# Read the attribute from the source template
$objAttribute = $objVM.CustomFields.Item($arrStrAttributeToCopy)
# Apply the attribute to the machine object
$viewTarget.setCustomValue($arrStrAttributeToCopy,$objAttribute)
}
# Set the &quot;Template&quot; custom attribute to the parent templates
$arrStrAttributeToCopy = &quot;Template&quot;
$viewTarget.setCustomValue($arrStrAttributeToCopy,$strSourceTemplate)
# Increment the number used for naming the machines
$intStartDeployingAtNumber ++
# Increment the number used to count the number of machines deployed
$i ++
}
# Continue to loop while the number of machines deployed is less than the number required
While ($i -le $intToBeDeployed)
}

# Get the current time (for timing how long the script took to run)
$dteStart = Get-Date

# Name of source VM, should be persistent, should have a snapshot and the customisation specified in the nominated custom attribute
$strSourceVM = &quot;Tmpl Capture 1.0&quot;
# Number to be deployed
$intToBeDeployed = 25
# Number to start deploying from
$intStartDeployingAtNumber = 1
DeployLinkedClone $strSourceVM $intToBeDeployed $intStartDeployingAtNumber $CustomFieldName

# Name of source VM, should be persistent, should have a snapshot and the customisation specified in the nominated custom attribute
$strSourceVM = &quot;Tmpl Packaging 1.0&quot;
# Number to be deployed
$intToBeDeployed = 25
# Number to start deploying from
$intStartDeployingAtNumber = 1
DeployLinkedClone $strSourceVM $intToBeDeployed $intStartDeployingAtNumber $CustomFieldName

# Name of source VM, should be persistent, should have a snapshot and the customisation specified in the nominated custom attribute
$strSourceVM = &quot;Tmpl Verification 1.0&quot;
# Number to be deployed
$intToBeDeployed = 25
# Number to start deploying from
$intStartDeployingAtNumber = 1
DeployLinkedClone $strSourceVM $intToBeDeployed $intStartDeployingAtNumber $CustomFieldName

$dteEnd = Get-Date
$dteDiff = New-TimeSpan $dteStart $dteEnd
$timeTaken = [math]::round($dteDiff.totalMinutes, 2)
Write-Host &quot;&quot;
Write-Host &quot;It took&quot; $timeTaken &quot;minutes for these machines to deploy&quot;

# End of script
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2010/01/linked-clones/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Happy New Year</title>
		<link>http://ben.neise.co.uk/index.php/2010/01/happy-new-year/</link>
		<comments>http://ben.neise.co.uk/index.php/2010/01/happy-new-year/#comments</comments>
		<pubDate>Mon, 04 Jan 2010 14:00:06 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=326</guid>
		<description><![CDATA[Happy New Year to everyone!

I passed the VCP on vSphere 4 just before Christmas with 463/500. At the time the deadline for taking the exam without having to the attend the What's New was 31st December 2009, but that's now been extended to the 31st January. It was nice to have it out of the way before Christmas though.]]></description>
			<content:encoded><![CDATA[<p>Happy New Year to everyone!</p>
<p>I passed the VCP on vSphere 4 just before Christmas with 463/500. At the time the deadline for taking the exam without having to the attend the <a href="http://mylearn.vmware.com/mgrreg/courses.cfm?ui=www&amp;a=one&amp;id_subject=10069">What&#8217;s New</a> was 31st December 2009, but that&#8217;s <a href="http://mylearn.vmware.com/portals/certification/">now been extended to the 31st January</a>. It was nice to have it out of the way before Christmas though.</p>
<p>The exam seemed no more difficult than the VCP on VI 3; I think they even reused a few of the questions. I found the following useful:-</p>
<ul>
<li><a href="http://www.simonlong.co.uk/blog/vcp-vsphere-4-practice-exam/">Simon Long&#8217;s VCP vSphere 4 Practice Exams</a></li>
<li><a href="http://www.vmware.com/pdf/vsphere4/r40/vsp_40_config_max.pdf">vSphere 4 Configuration Maximums</a></li>
<li><a href="http://virtualisedreality.wordpress.com/vcp-in-vsphere-4-0-study-notes/">Barry Coombs&#8217; VMware vSphere cue-cards</a></li>
</ul>
<p>Those sites also contain numerous links to other resources, so I&#8217;m sure you&#8217;ll find something which will suit your revision style.</p>
<p>Next on my to-do list is the <a href="http://www.microsoft.com/learning/en/us/exam.aspx?ID=70-431&amp;locale=en-us">Microsoft 70-431 Microsoft SQL Server 2005 &#8211; Implementation and Maintenance</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2010/01/happy-new-year/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere bug with DRS, StandBy and non-persistent hard drives</title>
		<link>http://ben.neise.co.uk/index.php/2009/12/vsphere-bug-with-drs-standby-and-non-perisistent-hard-drives/</link>
		<comments>http://ben.neise.co.uk/index.php/2009/12/vsphere-bug-with-drs-standby-and-non-perisistent-hard-drives/#comments</comments>
		<pubDate>Wed, 09 Dec 2009 10:36:55 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Onyx]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=321</guid>
		<description><![CDATA[We've been in touch with VMware recently about an issue we were experiencing in vSphere 4, where machines in standby could not be powered on. VMware have now confirmed that this is a bug, and that there will be a fix in R2.

While it's fairly specific to our use-case, I thought I'd share the details in case anyone else runs into this.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve been in touch with VMware recently about an issue we were experiencing in vSphere 4, where machines in standby could not be powered on. VMware have now confirmed that this is a bug, and that there will be a fix in R2.</p>
<p>While it&#8217;s fairly specific to our use-case, I thought I&#8217;d share the details in case anyone else runs into this.</p>
<p>First of all, this bug will only affect you if the following conditions are met:</p>
<ul>
<li>You are using VMware vSphere 4.0 (or 4.0 Update 1)</li>
<li>Guest OS power-saving settings cause the virtual machine to enter standby</li>
<li>One or more of the guest&#8217;s hard drives are set to &#8220;independent non-persistent&#8221;</li>
<li>DRS is enabled on the virtual machine&#8217;s cluster</li>
</ul>
<p>The machine enters standby as normal. The issue arises when you try to power the virtual machine back on: if DRS has allocated the machine to another host based on load the machine will not resume, and gives an error similar to the following:-</p>
<blockquote><p>&#8220;Virtual Machine is configured to use a device that prevents the operation: Device &#8216;Hard disk 1&#8242; is disk which is not in persistent mode. Device &#8216;Hard disk 1&#8242; which is not in persistent mode&#8221;.</p></blockquote>
<p>You cannot manually migrate the machine (even back to the original host). You cannot change the power-state on the machine, edit the virtual machine settings, or delete the machine.</p>
<p>If this has happened to you, the only way we&#8217;ve found to get the machine back up-and-running seems to be to remove the machine from inventory, then create a new virtual machine with the same specifications, and add the old machine&#8217;s VMDK.</p>
<p>Fortunately, there are a couple of workarounds. You can either disable power-saving settings in the guest OS or change the guest power management settings from &#8220;Suspend the virtual machine&#8221; to &#8220;Put the guest OS into standby mode and leave the virtual machine powered on&#8221; (you can automate this as described <a href="http://ben.neise.co.uk/index.php/2009/11/changing-standbyaction-using-powershell-script-generated-with-help-from-onyx/">in my previous post</a>).</p>
<p>Changing the guest power-management settings means that when the guest enters standby, although vSphere shows the machine as &#8220;powered-on&#8221;, VMware Tools is not running, which can cause problems (i.e., when trying to gracefully shut down a batch of machines).</p>
<p>This was also my first time working with the VMware vSphere support and I was impressed. They quickly replicated the problem and confirmed that it was indeed a bug. As most people nowadays tend to use snapshots rather than non-persistent drives, and few users virtualise desktop operating systems (which are more likely to have power-saving settings on by default) I can understand why this particular set of circumstances went untested.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2009/12/vsphere-bug-with-drs-standby-and-non-perisistent-hard-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Changing StandByAction using PowerShell script created with help from Onyx</title>
		<link>http://ben.neise.co.uk/index.php/2009/11/changing-standbyaction-using-powershell-script-generated-with-help-from-onyx/</link>
		<comments>http://ben.neise.co.uk/index.php/2009/11/changing-standbyaction-using-powershell-script-generated-with-help-from-onyx/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 11:09:33 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[Powershell Script]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Onyx]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=302</guid>
		<description><![CDATA[Using Onyx to generate PowerShell/PowerCLI script to change the StandBy action on a number of machines.]]></description>
			<content:encoded><![CDATA[<p>We&#8217;re currently having some issues caused by the <a href="http://communities.vmware.com/thread/244259?tstart=0">convergence of vSphere 4.0, IndependentNonPersistent drives, StandBy and DRS</a> (I&#8217;ll post more on that later).  As a workaround, we needed to modify 228 machines so that they did not go into hibernation. You can do this though the vSphere Client by right clicking the virtual machine, click <strong>Edit Settings</strong>, go to the <strong>Options Tab</strong>, then select <strong>Power Management</strong>, and changing the radio button. We were wanting to change from &#8220;Suspend the virtual machine&#8221; to &#8220;Put the guest OS into standby mode and leave the virtual machine powered on&#8221;.</p>
<p><img class="size-medium wp-image-303 alignleft" title="PowerSettings" src="http://ben.neise.co.uk/wp-content/uploads/2009/11/PowerSettings-300x264.PNG" alt="PowerSettings" width="300" height="264" /></p>
<p>To do this the machines need to be powered down. We had an imminent maintenance window, but it wouldn&#8217;t allow us the time to make this change manually (even if we wanted to), this necessitated some automation. Unfortunately I had no idea how to go about editing this setting using the PowerCLI, even after a little search through the <a href="http://communities.vmware.com/community/vmtn/vsphere/automationtools/windows_toolkit">VMware PowerCLI community</a>.</p>
<p>This seemed like the perfect opportunity to try out <a href="http://ben.neise.co.uk/index.php/2009/11/alpha-build-of-project-onyx/">Project Onyx</a>.</p>
<p><a href="http://blogs.vmware.com/vipowershell/2009/11/project-onyx-is-here.html">Carter Shanklin&#8217;s video</a> does a good job of explaining how to Onyx up and running, and it worked exactly as described (even on my Windows 7 machine).</p>
<ol>
<ol>
<li><a href="http://bit.ly/vmwOnyx15">Download the Onyx files</a> and extract to a folder</li>
<li>Run the Onyx executable</li>
</ol>
</ol>
<p><img class="size-medium wp-image-304 alignright" title="OnyxWindow" src="http://ben.neise.co.uk/wp-content/uploads/2009/11/OnyxWindow-300x203.PNG" alt="OnyxWindow" width="300" height="203" /></p>
<ol>
<li>Click the <strong>Connect</strong> button, and connect to your VirtualCenter server.</li>
<li>Once that&#8217;s launched, start vSphere client, but instead of connecting to your VirtualCenter server, connect to <strong>http://localhost:1545</strong> (Carter actually says <strong>1445</strong> in the video, but you can see on screen that he&#8217;s using <strong>1545</strong>). Use your normal credentials.</li>
<li>Ignore the warning about unencrypted traffic (as Carter explains, the unencrypted traffic is local-only, the network traffic is still encrypted)</li>
<li>Click the <strong>Start </strong>button on Onyx</li>
<li>In vSphere client make whatever changes it is that you&#8217;re wanting to record.</li>
<li>Click the <strong>Pause</strong> button on Onyx, and you&#8217;ll see in the window a script has been created.</li>
<li>Copy this into <a href="http://thevesi.org/index.jspa">your favourite PowerShell editor</a>, and modify until it&#8217;s suitable for your purposes.</li>
</ol>
<p>The original capture from the Onyx Window</p>
<pre class="brush: powershell; title: ; notranslate">$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.changeVersion = &quot;2009-11-27T09:16:04.570821Z&quot;
$spec.powerOpInfo = New-Object VMware.Vim.VirtualMachineDefaultPowerOpInfo
$spec.powerOpInfo.defaultPowerOffType = &quot;soft&quot;
$spec.powerOpInfo.defaultSuspendType = &quot;hard&quot;
$spec.powerOpInfo.defaultResetType = &quot;soft&quot;
$spec.powerOpInfo.standbyAction = &quot;checkpoint&quot;

$_this = Get-View -Id 'VirtualMachine-vm-1074'
$_this.ReconfigVM_Task($spec)</pre>
<p>A second capture changing the setting back to isolate the exact line that makes the changes</p>
<pre class="brush: powershell; title: ; notranslate">$spec = New-Object VMware.Vim.VirtualMachineConfigSpec
$spec.changeVersion = &quot;2009-11-27T09:16:33.872017Z&quot;
$spec.powerOpInfo = New-Object VMware.Vim.VirtualMachineDefaultPowerOpInfo
$spec.powerOpInfo.defaultPowerOffType = &quot;soft&quot;
$spec.powerOpInfo.defaultSuspendType = &quot;hard&quot;
$spec.powerOpInfo.defaultResetType = &quot;soft&quot;
$spec.powerOpInfo.standbyAction = &quot;powerOnSuspend&quot;

$_this = Get-View -Id 'VirtualMachine-vm-1074'
$_this.ReconfigVM_Task($spec)</pre>
<p>And a finished script, which will run it against all machines in a specified blue folder comment/uncomment one of the $specVM.powerOpInfo.standbyAction lines to choose which option you want.</p>
<pre class="brush: powershell; title: ; notranslate">$objVMs = Get-Folder &quot;Folder Name&quot; | Get-VM
ForEach ($objVM in $objVMs){
	$specVM = New-Object VMware.Vim.VirtualMachineConfigSpec
	$specVM.powerOpInfo = New-Object VMware.Vim.VirtualMachineDefaultPowerOpInfo
	$specVM.powerOpInfo.standbyAction = &quot;checkpoint&quot; 			# Put the guest OS into StandBy Mode and leave the Virtual Machine powered On
	#$specVM.powerOpInfo.standbyAction = &quot;powerOnSuspend&quot; 		# Suspend the Virtual Machine
	$viewVM = Get-View -Id $objVM.Id
	$viewVM.ReconfigVM_Task($specVM)
}</pre>
<p>I was actually surprised at how easy this was; and I think it&#8217;s going to make me a bit more adventurous with what I attempt to do via the PowerCLI.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2009/11/changing-standbyaction-using-powershell-script-generated-with-help-from-onyx/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vSphere 4.0 Update 1 Released</title>
		<link>http://ben.neise.co.uk/index.php/2009/11/vsphere-4-0-update-1-released/</link>
		<comments>http://ben.neise.co.uk/index.php/2009/11/vsphere-4-0-update-1-released/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 13:22:27 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[vCenter]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=298</guid>
		<description><![CDATA[VMware have released update 1 for vSphere 4.0.]]></description>
			<content:encoded><![CDATA[<p>VMware have released update 1 for vSphere 4.0.</p>
<p>The following enhancements have been made to ESX (from the <a href="http://www.vmware.com/support/vsphere4/doc/vsp_esx40_u1_rel_notes.html#whatsnew">release notes</a>):-</p>
<blockquote><p><strong>VMware View 4.0 support</strong> <strong>–</strong> This release adds support for VMware View 4.0, a solution built specifically for delivering desktops as a managed service from the protocol to the platform.</p>
<p><strong>Windows 7 and Windows 2008 R2 support –</strong>This release adds support for 32-bit and 64-bit versions of Windows 7 as well as 64-bit Windows 2008 R2 as guest OS platforms. In addition, the vSphere Client is now supported and can be installed on a Windows 7 platform. For a complete list of supported guest operating systems with this release, see the <a href="http://www.vmware.com/resources/compatibility/search.php" target="_blank"><em>VMware Compatibility Guide</em></a>.</p>
<p><strong>Enhanced Clustering Support for Microsoft Windows –</strong> Microsoft Cluster Server (MSCS) for Windows 2000 and 2003 and Windows Server 2008 Failover Clustering is now supported on an VMware High Availability (HA) and Dynamic Resource Scheduler (DRS) cluster in a limited configuration. HA and DRS functionality can be effectively disabled for individual MSCS virtual machines as opposed to disabling HA and DRS on the entire ESX/ESXi host<strong>. </strong>Refer to the <em><a href="http://www.vmware.com/pdf/vsphere4/r40_u1/vsp_40_u1_mscs.pdf" target="_blank">Setup for Failover Clustering and  Microsoft Cluster Service</a></em> guide for additional configuration guidelines.</p>
<p><strong>Enhanced VMware Paravirtualized SCSI Support</strong><strong> –</strong> Support for boot disk devices attached to a Paravirtualized SCSI ( PVSCSI) adapter has been added for Windows 2003 and 2008 guest operating systems. Floppy disk images are also available containing the driver for use during the Windows installation by selecting F6 to install additional drivers during setup. Floppy images can be found in the <tt>/vmimages/floppies/</tt> folder.</p>
<p><strong>Improved vNetwork Distributed Switch  Performance</strong> <strong>–</strong> Several performance and usability issues have been resolved resulting in the following:</p>
<ul>
<li>Improved performance when making configuration changes to a vNetwork Distributed Switch (vDS) instance when the ESX/ESXi host is under a heavy load</li>
<li>Improved performance when adding or removing an ESX/ESXi host to or from a vDS instance</li>
</ul>
<p><strong>Increase in vCPU per Core Limit</strong> <strong>–</strong> The limit on vCPUs per core has been increased from 20 to 25. This change raises the supported limit only. It does not include any additional performance optimizations. Raising the limit allows users more flexibility to configure systems based on specific workloads and to get the most advantage from increasingly faster processors. The achievable number of vCPUs per core depends on the workload and specifics of the hardware. For more information see the <em><a href="http://www.vmware.com/pdf/Perf_Best_Practices_vSphere4.0.pdf" target="_blank">Performance Best Practices for VMware vSphere 4.0</a></em> guide.</p>
<p><strong>Enablement of Intel Xeon Processor 3400 Series</strong> – Support for the Xeon processor 3400 series has been added. For a complete list of supported third party hardware and devices, see the <a href="http://www.vmware.com/resources/compatibility/search.php" target="_blank">VMware Compatibility Guide</a>.</p></blockquote>
<p>vCenter 4.0 has also been updated, and now has full compatibility with Windows 7 x86 and x64 versions. Saving the <a href="http://xtravirt.com/running-vmware-vsphere-client-windows-7">various hacks that were necessary to get it working</a>.</p>
<p>Also, the PowerCLI has been updated, and can be found <a href="http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html">here</a>. There are 68 new CMDLETS, which <a href="http://www.virtu-al.net/2009/11/20/powercli-bring-on-the-next-version/">Alan Renouf does a great job of explaining</a>. I&#8217;m especially looking forward to trying out Get\Set-CustomAttribute (no more manipulation of the View object), Move-VMTemplate (no more converting templates to machines), and Get\Set-VMQuestion (for those times when the datastores run out of space for the REDO files necessitated by Non-Persistent disks).</p>
<p>I&#8217;m looking forward to investigating the new PowerCLI functionality, and I&#8217;m also looking forward to not needing to  manually customise the dozen or so Windows 7 guests I&#8217;m deploying next week!</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2009/11/vsphere-4-0-update-1-released/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alpha build of Project Onyx</title>
		<link>http://ben.neise.co.uk/index.php/2009/11/alpha-build-of-project-onyx/</link>
		<comments>http://ben.neise.co.uk/index.php/2009/11/alpha-build-of-project-onyx/#comments</comments>
		<pubDate>Tue, 17 Nov 2009 10:39:53 +0000</pubDate>
		<dc:creator>Ben</dc:creator>
				<category><![CDATA[News]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[Onyx]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[Script]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://ben.neise.co.uk/?p=294</guid>
		<description><![CDATA[VMware have released an Alpha build of Project Onyx. This is a script recorder for vSphere Client, which is designed to allow scripting of things which are awkward or difficult to achieve using the VMware PowerCLI APIs alone]]></description>
			<content:encoded><![CDATA[<p>Carter Shanklin has announced that VMware have released an <a href="http://blogs.vmware.com/vipowershell/2009/11/project-onyx-is-here.html">Alpha build of the long-anticipated Project Onyx</a>. This is a script recorder for vSphere Client, which is designed to allow scripting of things which are awkward or difficult to achieve using the VMware PowerCLI APIs alone.<br />
<P><object width="425" height="344"><param name="movie" value="http://www.youtube.com/v/bANfdjuH4wk&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1"></param><param name="allowFullScreen" value="true"></param><param name="allowScriptAccess" value="always"></param><embed src="http://www.youtube.com/v/bANfdjuH4wk&#038;color1=0xb1b1b1&#038;color2=0xcfcfcf&#038;hl=en_US&#038;feature=player_embedded&#038;fs=1" type="application/x-shockwave-flash" allowfullscreen="true" allowScriptAccess="always" width="425" height="344"></embed></object><br />
<P>Downloading this at the moment, although I don&#8217;t suspect I&#8217;ll have time to look at it for a while.</p>
]]></content:encoded>
			<wfw:commentRss>http://ben.neise.co.uk/index.php/2009/11/alpha-build-of-project-onyx/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

