<?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>Tech Llama</title>
	<atom:link href="http://tech.lazyllama.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://tech.lazyllama.com</link>
	<description>Lazyllama&#039;s Technology Pages</description>
	<lastBuildDate>Sat, 14 Jan 2012 21:12:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	
		<item>
		<title>Converting a &#8220;Big Board&#8221;: vBulletin to xenForo Migration</title>
		<link>http://tech.lazyllama.com/2011/08/08/converting-a-big-board-vbulletin-to-xenforo-migration/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=converting-a-big-board-vbulletin-to-xenforo-migration</link>
		<comments>http://tech.lazyllama.com/2011/08/08/converting-a-big-board-vbulletin-to-xenforo-migration/#comments</comments>
		<pubDate>Mon, 08 Aug 2011 15:02:52 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[Forum Software]]></category>
		<category><![CDATA[urban75]]></category>
		<category><![CDATA[vbulletin]]></category>
		<category><![CDATA[xenForo]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=135</guid>
		<description><![CDATA[Migrating what? First a bit about the urban75 boards. Based in Brixton, London, UK, urban75 is one of the busiest, non-profit community sites around, featuring huge photography sections, bulletin boards, live chat, drug information, football, direct action info and more. The boards are entirely non-profit and carry no advertising. The site is primarily funded by [...]]]></description>
			<content:encoded><![CDATA[<h4>Migrating what?</h4>
<p>First a bit about the <a title="Urban75 Forums" href="http://www.urban75.net/forums/" target="_blank">urban75 boards</a>. Based in Brixton, London, UK, <a title="Urban75 Home Page" href="http://www.urban75.com" target="_blank">urban75</a> is one of the busiest, non-profit community sites around, featuring huge photography sections, bulletin boards, live chat, drug information, football, direct action info and more. The boards are entirely non-profit and carry no advertising. The site is primarily funded by donations from board users (there are no subscriptions).</p>
<p>As a result, we&#8217;re not running on particularly flashy hardware, upgrading the server using spare equipment our hosting provider has available.</p>
<h4>vBulletin Days and Nightmares</h4>
<p>We have been running <a title="vBulletin Software" href="http://www.vbulletin.com" target="_blank">vBulletin</a> for almost a decade and it served us well for much of that time.</p>
<p>In August 2010 we upgraded to vBulletin 4. That upgrade was, frankly, a nightmare.</p>
<p>I spent many, many hours trying to optimise the database, tracing slow queries and following bug reports. I also ended up installing Sphinx search, even though vBulletin seemed very slow at handling the results it got back from Sphinx. At first there were many complaints, some about things which we could fix, and others about things which eventually people just got used to.</p>
<h4>xenForo is announced</h4>
<p>When <a title="xenForo Website" href="http://xenforo.com/" target="_blank">xenForo</a> was announced, several of the moderators on the boards went over to the community on xenforo.com and were impressed by what they saw.</p>
<p>I speculatively purchased a xenForo license when they first became available, thinking I could use it myself even if it turned out to be unsuitable for Urban75.</p>
<p>Following the purchase of the license, I installed a test copy on our little test server, and invited the moderators over for a look.</p>
<p>I think it&#8217;s fair to say everyone was blown away by the functionality and there was soon a consensus that we should look to move the main Urban75 boards to xenForo.</p>
<h4>Testing Times</h4>
<p>We weren&#8217;t going to go live with a pre-1.0 version so we waited. We invited a number of users over from the main boards to take a look at xenForo and feedback their thoughts. That lasted a couple of weeks with lots of positive feedback. When 1.0 was released I started further investigations into the migration, checking what functionality was missing and what add-ons would be useful.</p>
<p>Using <a href="http://xenforo.com/community/threads/vbulletin-4-importer.5726/" target="_blank">Paul M&#8217;s vBulletin 4 Importer</a>  I ran through an import from a year-old backup of the main boards, importing around 9 million posts without a hitch. On our test server the import took just over 24 hours.</p>
<p>There was no way I was going to use the xenForo built-in search on that size of message base so I installed the Sphinx executable and <a href="http://xenforo.com/community/threads/sphinx-search-engine.6447/" target="_blank">mlx&#8217;s Sphinx Search Engine add-on</a>, followed by a few hours configuring and indexing using Sphinx. Running some test searches showed results from the xenForo boards on the test server coming back much faster than they did on the vBulletin live server. Both were using Sphinx so that indicated something seriously bad was going on with vBulletin displaying search results.</p>
<p>I tried a few other extras, including <a href="http://xenforo.com/community/threads/vbulletin-4-x-url-redirection.7584/" target="_blank">Darkimmortal&#8217;s vB4 URL Redirection add-on</a>, the Tapatalk and ForumRunner mobile add-ons, and the <a href="http://xenforo.com/community/threads/stop-forum-spam.5417/" target="_blank">Stop Forum Spam</a> and <a href="http://xenforo.com/community/threads/multiple-account-detection.6373/" target="_blank">Multiple Account Detector</a> add-ons.</p>
<h4>Preparing for the Migration</h4>
<p>Work got in the way of planning a full migration for a while, but eventually I put a stake in the ground, choosing the weekend of the anniversary of our vBulletin 4 upgrade. With the help of other moderators, we got a couple of styles sorted out, one very similar to the default xenForo style and another variation without avatars which had been a particular request.</p>
<p>In preparation, I installed the xenForo software on the live server under a different directory from the existing vBulletin, and did some of the config under a single Administrator user.</p>
<h4>Here We Go!</h4>
<p>The actual night of the migration arrived and I closed the vBulletin site at 23:59 on 5th August 2011. We have a small phpBB installation which we open for times when the main boards are down and I put a link to that on the &#8220;Site Closed&#8221; message.</p>
<p>First things first, a full MySQL dump of the vBulletin database and the embryonic xenForo database, just in case.</p>
<p>Then the first step of the migration, using the latest version of the vBulletin 4 importer.</p>
<p>The user importer fell over quite quickly, complaining about &#8220;Duplicate entry for key 2&#8243; for a user named &#8220;Ęllie&#8221;. Scratched by head for a few minutes before gently renaming the user and re-starting the import. A few minutes later I hit another user with the same issue, this time called &#8220;&#8216;Mått&#8221;. Same fix for that one and the rest of the users imported fine.</p>
<p>I started the largest part of the import, copying the Threads and Posts at 01:55 on Saturday morning. By 02:30 it was obvious this was going to be a very long job so I went to bed hoping that the import might speed up while I was asleep. Rising at 06:30 I found that it hadn&#8217;t got any faster and that my original estimate of a much faster import on the live system was sadly wrong.</p>
<p>With me monitoring progress through the day, and updating the users via the phpBB boards and the &#8220;Site Closed&#8221; message, the posts finally finished importing at about 21:30. The importer then runs through a cache update for users and threads.</p>
<p><a href="http://tech.lazyllama.com/wp-content/uploads/2011/08/u75import.png"><img class="aligncenter size-full wp-image-146" title="u75import" src="http://tech.lazyllama.com/wp-content/uploads/2011/08/u75import.png" alt="" width="715" height="658" /></a></p>
<p>A dash through configuring Friendly URLs, moving the Sphinx config to index the xenForo boards instead of the vBulletin ones, checking basic user permissions and configuring a few more add-ons took me until 23:30 when we finally re-opened the boards.</p>
<p>So 23.5 hours start to finish for 10.3 million posts and I understand that we&#8217;re now the largest UK site running xenForo.</p>
<h4>Aftermath</h4>
<p>It took me a little while afterwards to get the vB4 Redirection working properly, and we&#8217;ve had a slow-query issue with another add-on which the author is hoping to fix. My thanks to Kier for helping track down where that query was coming from despite my still-frazzled support request.</p>
<p>The users seem generally pleased with the results, though there are a number of complaints about relatively minor pieces of functionality missing, dislike of change, dislike of the colours along with some genuine issues with useful functions missing that were previously available. Some of these are already addressed in xenForo 1.1, other might be later, and some may never get fixed.</p>
<p>From a tech admin point of view, xenForo is much lighter on the hardware, we&#8217;ve hit more than 800 users online already which is close to the highest we ever had under vBulletin and the only issue has been with the add-on I mentioned earlier.</p>
<p>My thanks to all the folks at xenForo for coming up with what has to be the neatest bit of forum software around. Also thanks to the authors of all the add-ons we&#8217;re using, and to all the xenForo community members for sharing their experiences and supporting such a great product.</p>
<p>It&#8217;s been a long journey, but we&#8217;ve reached our first xenForo milestone. May there be many more in the future!</p>
<p><span style="text-decoration: underline;"><strong>Board Stats as of 8/8/2011</strong></span></p>
<p><strong>Discussions: </strong>278,346<br />
<strong>Messages:</strong> 10,346,335<br />
<strong>Members:</strong> 40,492</p>
<p><span style="text-decoration: underline;"><strong>Test System</strong></span></p>
<p><strong>CPU:</strong> One core of 2.133GHz Xeon X3210<br />
<strong>RAM:</strong> 1.5GB<br />
<strong>OS:</strong> Ubuntu Linux 10.10 virtual machine running on vSphere 4.1 host<br />
<strong>Disks:</strong> Virtual disk stored on 3ware-controlled RAID1 pair of 250GB SATA drives</p>
<p><span style="text-decoration: underline;"><strong>Live System</strong></span><br />
<strong>CPU:</strong> Intel Quad Core Q9300 @ 2.50GHz<br />
<strong>RAM:</strong> 4GB<br />
<strong>OS:</strong> FreeBSD 7.2<br />
<strong>Disks:</strong> Adaptec-controlled RAID1 pair of 150GB WD Raptor SATA drives</p>
<div id="tweetbutton135" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F08%2F08%2Fconverting-a-big-board-vbulletin-to-xenforo-migration%2F&amp;text=Converting%20a%20%26%238220%3BBig%20Board%26%238221%3B%3A%20vBulletin%20to%20xenForo%20Migration&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F08%2F08%2Fconverting-a-big-board-vbulletin-to-xenforo-migration%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2011/08/08/converting-a-big-board-vbulletin-to-xenforo-migration/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>vSphere PowerCLI: Moved your ISO datastore ? Reconnecting your CD-ROM drives</title>
		<link>http://tech.lazyllama.com/2011/07/28/vsphere-powercli-moved-your-iso-datastore-reconnecting-your-cd-rom-drives/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vsphere-powercli-moved-your-iso-datastore-reconnecting-your-cd-rom-drives</link>
		<comments>http://tech.lazyllama.com/2011/07/28/vsphere-powercli-moved-your-iso-datastore-reconnecting-your-cd-rom-drives/#comments</comments>
		<pubDate>Thu, 28 Jul 2011 11:18:03 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[ISO]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=130</guid>
		<description><![CDATA[We recently moved our ISO store from a legacy NFS server to our main NFS filer. The first task was copying the actual files, which can be done via any machine that has both datastores mounted (with read-write access to the destination store). The more significant job is reconfiguring the VMs to use the copies [...]]]></description>
			<content:encoded><![CDATA[<p>We recently moved our ISO store from a legacy NFS server to our main NFS filer.</p>
<p>The first task was copying the actual files, which can be done via any machine that has both datastores mounted (with read-write access to the destination store).</p>
<p>The more significant job is reconfiguring the VMs to use the copies of the ISOs in the new datastore.</p>
<p>Here&#8217;s the PowerCLI script I used:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;">#</span>
<span style="color: #008000;"># Disconnect all CD/DVD ISOs on a particular datastore and reconnect them to the new datastore</span>
<span style="color: #008000;">#</span>
<span style="color: #800080;">$myvcenter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;myvcenter.host.net&quot;</span>
<span style="color: #800080;">$mydatacenter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;BigDC1&quot;</span>
<span style="color: #800080;">$originalISOstore</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;MyFirstISOstore&quot;</span>
<span style="color: #800080;">$finalISOstore</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;MuchBetterISOstore&quot;</span>
&nbsp;
Connect<span style="color: pink;">-</span>VIServer <span style="color: #800080;">$myvcenter</span>
&nbsp;
<span style="color: #000000;">&#40;</span>Get<span style="color: pink;">-</span>VM <span style="color: pink;">-</span>Location: <span style="color: #000000;">&#40;</span>Get<span style="color: pink;">-</span>Datacenter <span style="color: #800080;">$mydatacenter</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span> <span style="color: pink;">|</span> <span style="color: #0000FF;">ForEach</span> <span style="color: #000000;">&#40;</span> <span style="color: #000080;">$_</span> <span style="color: #000000;">&#41;</span> 
	<span style="color: #000000;">&#123;</span> 
	<span style="color: #800080;">$myDrive</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>CDDrive <span style="color: #000080;">$_</span>
	<span style="color: #0000FF;">if</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$myDrive</span>.IsoPath <span style="color: #FF0000;">-match</span> <span style="color: #800000;">&quot;\[&quot;</span><span style="color: pink;">+</span><span style="color: #800080;">$originalISOstore</span><span style="color: pink;">+</span><span style="color: #800000;">&quot;\]&quot;</span><span style="color: #000000;">&#41;</span> 
		<span style="color: #000000;">&#123;</span>
		Set<span style="color: pink;">-</span>CDDrive <span style="color: pink;">-</span><span style="color: #008080; font-weight: bold;">CD</span> <span style="color: #800080;">$myDrive</span> <span style="color: pink;">-</span>IsoPath <span style="color: #000000;">&#40;</span><span style="color: #800080;">$myDrive</span>.IsoPath <span style="color: #FF0000;">-replace</span> <span style="color: #800080;">$originalISOstore</span><span style="color: pink;">,</span> <span style="color: #800080;">$finalISOstore</span><span style="color: #000000;">&#41;</span> <span style="color: #008080; font-style: italic;">-Confirm</span>:<span style="color: #800080;">$false</span>  
		<span style="color: #000000;">&#125;</span> 
	<span style="color: #000000;">&#125;</span>
Disconnect<span style="color: pink;">-</span>VIServer <span style="color: #800080;">$myvcenter</span> <span style="color: #008080; font-style: italic;">-confirm</span>:$false</pre></td></tr></table></div>

<p>It&#8217;s fairly self-explanatory. </p>
<p>The biggest caveat with this is that it assumes that the source and destination stores have the same structure, but it wouldn&#8217;t be difficult to amend it to change the destination path slightly.</p>
<div id="tweetbutton130" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F07%2F28%2Fvsphere-powercli-moved-your-iso-datastore-reconnecting-your-cd-rom-drives%2F&amp;text=vSphere%20PowerCLI%3A%20Moved%20your%20ISO%20datastore%20%3F%20Reconnecting%20your%20CD-ROM%20drives&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F07%2F28%2Fvsphere-powercli-moved-your-iso-datastore-reconnecting-your-cd-rom-drives%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2011/07/28/vsphere-powercli-moved-your-iso-datastore-reconnecting-your-cd-rom-drives/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere Bugs &amp; Minor Irritations</title>
		<link>http://tech.lazyllama.com/2011/02/23/vsphere-bugs-minor-irritations/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vsphere-bugs-minor-irritations</link>
		<comments>http://tech.lazyllama.com/2011/02/23/vsphere-bugs-minor-irritations/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 15:11:59 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=103</guid>
		<description><![CDATA[I&#8217;ve recently reported a couple of annoying bugs to VMware. Both have been around for a long time, almost certainly since the days of Virtual Center 2.0, maybe even earlier. If a VM has nothing in the &#8220;Notes&#8221; annotation, vCenter displays the &#8220;Notes&#8221; from the previously selected VM instead. So if you have a machine [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently reported a couple of annoying bugs to VMware. Both have been around for a long time, almost certainly since the days of Virtual Center 2.0, maybe even earlier.</p>
<ul>
<li>If a VM has nothing in the &#8220;<strong>Notes</strong>&#8221; annotation, vCenter displays the &#8220;Notes&#8221; from the previously selected VM instead.<br />
So if you have a machine with a note saying &#8220;Delete after 1st Jan 2011&#8243;, and you then view the summary of a machine with no note set, it&#8217;ll display the &#8220;Delete after 1st Jan 2011&#8243;. That could be bad&#8230;<br />
The problem only occurs if the VM has never had any Notes annotation. If you set one and then remove it, it shows the blank note correctly.<br />
<strong>**UPDATE**</strong> &#8211; <em>This appears to be fixed in 4.1 U1 &#8211; it only seems to affect VMs which were deployed without notes under VirtualCenter 2.x. </em></li>
<li>When deploying a VM from a template, the Tasks &amp; Events history doesn&#8217;t correctly name the template from which the VM was deployed.<br />
As you can see in the example image, vCenter lists the deployed VM name instead of the template.&nbsp;</p>
<p style="text-align: center;"><span style="color: #000000; font-size: 12px; font-weight: bold; line-height: 18px;"><a href="http://tech.lazyllama.com/wp-content/uploads/2011/02/template-badname2.png"><img class="size-medium wp-image-111  " style="border: 1px solid black;" title="template-badname" src="http://tech.lazyllama.com/wp-content/uploads/2011/02/template-badname2-300x73.png" alt="" width="400" height="90" /></a></span></p>
</li>
</ul>
<p style="text-align: center;">Click for full size</p>
<p style="text-align: left;"><strong>** UPDATE **</strong> <em>VMware have acknowledged this as a bug but it will not be fixed until vSphere 5, later this year.</em></p>
<p>And there&#8217;s a cosmetic thing which winds me up. I haven&#8217;t reported it as a bug but if anyone from VMware reads this, maybe they can have a word. It&#8217;s really trivial&#8230;.</p>
<p><a href="http://tech.lazyllama.com/wp-content/uploads/2011/02/ctrl-alt-del.png"><img class="aligncenter size-full wp-image-106" title="ctrl-alt-del" src="http://tech.lazyllama.com/wp-content/uploads/2011/02/ctrl-alt-del.png" alt="" width="459" height="100" /></a></p>
<p>&#8220;<strong>Send Ctrl-Alt-del</strong>&#8220;. What has &#8220;<strong>del</strong>&#8221; done to deprive it of a capital &#8220;D&#8221;?</p>
<p>VMware Fusion also has a &#8220;<strong>Send Ctrl-Alt-Del</strong>&#8221; menu option but it gets the capitalisation right. I can only offer this as proof that Macs are better than PCs&#8230; or something.</p>
<div id="tweetbutton103" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F02%2F23%2Fvsphere-bugs-minor-irritations%2F&amp;text=vSphere%20Bugs%20%26%23038%3B%20Minor%20Irritations&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F02%2F23%2Fvsphere-bugs-minor-irritations%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2011/02/23/vsphere-bugs-minor-irritations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere HA Slot Sizes</title>
		<link>http://tech.lazyllama.com/2011/02/15/vsphere-ha-slot-sizes/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vsphere-ha-slot-sizes</link>
		<comments>http://tech.lazyllama.com/2011/02/15/vsphere-ha-slot-sizes/#comments</comments>
		<pubDate>Tue, 15 Feb 2011 17:31:20 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[ha]]></category>
		<category><![CDATA[slot size]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=92</guid>
		<description><![CDATA[vSphere HA slot sizes are used to calculate the number of VMs that can be powered on in an HA cluster with &#8220;Host failures cluster tolerates&#8221; selected. The slots size is calculated based on the size of reservations on the VMs in the cluster. HA Admission Control then prevents new VMs being powered on if [...]]]></description>
			<content:encoded><![CDATA[<p>vSphere HA <strong>slot sizes</strong> are used to calculate the number of VMs that can be powered on in an HA cluster with <strong>&#8220;Host failures cluster tolerates</strong>&#8221; selected. The slots size is calculated based on the size of reservations on the VMs in the cluster. HA Admission Control then prevents new VMs being powered on if it would not leave any slots available should a host fail.</p>
<p>The slot size for a cluster can be seen by going to the <strong>Summary Page</strong> for the cluster and clicking the &#8220;<em>Advanced Runtime Info</em>&#8221; link in the HA box.</p>
<p>If none of the VMs have CPU or RAM reservations, a <strong>default of 256MHz and 0GB</strong> is used.</p>
<p>The slots per host is derived by taking the total available CPU/RAM for the host and dividing by the slot size. Some CPU is reserved for the system so it will usually be a little lower than the full amount. So a host with 2xquad-core 2.4GHz CPUs (total 19.2GHz) and no VM CPU or RAM reservations has 73 slots and will only allow 73 VMs to be powered on if the cluster has two hosts and is set to protect against a single host failure.</p>
<p>Obviously this allows a very minimal amount of resource for each VM, so either reservations should be set for each VM, or slots size can be manually adjusted (see the <strong>VMware vSphere Availability Guide</strong> (<a href="http://www.vmware.com/pdf/vsphere4/r41/vsp_41_availability.pdf">pdf</a>) for full details).</p>
<p>Note that the slot size is used for admission control calculations only. It has no direct effect on the resources available to VMs should an HA event occur.</p>
<p>There is a <strong>VMware Knowledgebase</strong> article (<a href="http://kb.vmware.com/kb/1010594">1010594</a>) which  has some details of the difference in VI3 and vSphere 4.x.</p>
<div id="tweetbutton92" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F02%2F15%2Fvsphere-ha-slot-sizes%2F&amp;text=vSphere%20HA%20Slot%20Sizes&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2011%2F02%2F15%2Fvsphere-ha-slot-sizes%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2011/02/15/vsphere-ha-slot-sizes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere: Attempting to add NFS datastore &#8211; &#8220;Error performing operation: Unable to create object, volume Name not valid&#8221;</title>
		<link>http://tech.lazyllama.com/2010/09/29/vsphere-attempting-to-add-nfs-datastore-error-performing-operation-unable-to-create-object-volume-name-not-valid/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vsphere-attempting-to-add-nfs-datastore-error-performing-operation-unable-to-create-object-volume-name-not-valid</link>
		<comments>http://tech.lazyllama.com/2010/09/29/vsphere-attempting-to-add-nfs-datastore-error-performing-operation-unable-to-create-object-volume-name-not-valid/#comments</comments>
		<pubDate>Wed, 29 Sep 2010 16:40:13 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[vifs.pl]]></category>
		<category><![CDATA[vMA]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=86</guid>
		<description><![CDATA[We&#8217;ve had this error on ESX 3.5 and 4.0 hosts, both ESX and ESXi. When trying to add a new NFS datastore we get the above error message, both in the vSphere Client and when using the command-line tools. Logging on to the Service Console on an affected host, &#8220;esxcfg-nas -l&#8221; also results in the [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve had this error on ESX 3.5 and 4.0 hosts, both ESX and ESXi.<br />
When trying to add a new NFS datastore we get the above error message, both in the vSphere Client and when using the command-line tools.</p>
<p>Logging on to the Service Console on an affected host, &#8220;esxcfg-nas -l&#8221; also results in the same error.</p>
<p>The cause is invalid entries in the /etc/vmware/esx.conf file. Fortunately, it seems to be possible to remove the bad entries and the host then starts working properly without a reboot.</p>
<p>In our case, the bad entries looked like:<br />
<code>/nas/./enabled = "false"<br />
/nas/./host = "1"<br />
/nas/./share = "0"</code><br />
whereas valid entries are recognisable:<br />
<code>/nas/vmdesktop/enabled = "true"<br />
/nas/vmdesktop/host = "10.0.0.100"<br />
/nas/vmdesktop/readOnly = "false"<br />
/nas/vmdesktop/share = "/vol/vmdesktop"</code></p>
<p>As I mention above, fixing it on ESX isn&#8217;t too hard, just edit /etc/vmware/esx.conf using nano or vi as root, being careful not to affect any other lines.</p>
<p>On ESXi, it&#8217;s a little more tricky as you can&#8217;t readily log on and edit files without enabling Technical Support mode.</p>
<p>It is, however, possible to edit esx.conf via the Remote CLI (Linux or Windows) or using the vMA.</p>
<p>Below are some example commands which grabs the esx.conf file, edit it using &#8216;sed&#8217;, and then put the altered file back on the host.</p>
<p><code>vifs -get /host/esx.conf work.conf<br />
cat work.conf | sed -e '/\/nas\/\./d' &gt; fixed.conf<br />
vifs.pl -put fixed.conf /host/esx.conf<br />
</code></p>
<p>The &#8216;sed&#8217; command will probably need to change for you, depending on what the invalid lines look like. You can just use nano or vi on Linux or the vMA to do the edit, but if you&#8217;re using Windows you may find that Notepad and Wordpad either don&#8217;t display the file clearly or convert the line endings from Unix format to DOS. Using the free VIM for Windows (http://www.vim.org/download.php) will let you keep the file in the same format.</p>
<p>After making those changes, it was possible to add NFS datastores as normal.</p>
<div id="tweetbutton86" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F09%2F29%2Fvsphere-attempting-to-add-nfs-datastore-error-performing-operation-unable-to-create-object-volume-name-not-valid%2F&amp;text=vSphere%3A%20Attempting%20to%20add%20NFS%20datastore%20%26%238211%3B%20%26%238220%3BError%20performing%20operation%3A%20Unable%20to%20create%20object%2C...%20&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F09%2F29%2Fvsphere-attempting-to-add-nfs-datastore-error-performing-operation-unable-to-create-object-volume-name-not-valid%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2010/09/29/vsphere-attempting-to-add-nfs-datastore-error-performing-operation-unable-to-create-object-volume-name-not-valid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add multiple datastores to multiple vSphere hosts</title>
		<link>http://tech.lazyllama.com/2010/09/17/add-multiple-datastores-to-multiple-vsphere-hosts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=add-multiple-datastores-to-multiple-vsphere-hosts</link>
		<comments>http://tech.lazyllama.com/2010/09/17/add-multiple-datastores-to-multiple-vsphere-hosts/#comments</comments>
		<pubDate>Fri, 17 Sep 2010 14:33:35 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=78</guid>
		<description><![CDATA[In large vSphere environments it can be very tedious to add multiple NFS datastores to lots of hosts. PowerCLI comes to the rescue as usual. I needed to add some datastores to all the clustered hosts in a single datacenter, but to skip our non-clustered standalone hosts which are used for backups. A bit of [...]]]></description>
			<content:encoded><![CDATA[<p>In large vSphere environments it can be very tedious to add multiple NFS datastores to lots of hosts.<br />
PowerCLI comes to the rescue as usual.</p>
<p>I needed to add some datastores to all the clustered hosts in a single datacenter, but to skip our non-clustered standalone hosts which are used for backups.</p>
<p>A bit of PowerCLI which should be fairly self-explanatory:</p>

<div class="wp_syntax"><table><tr><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
</pre></td><td class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;">#</span>
<span style="color: #008000;">#  Add Datastores to all hosts in all clusters in a specified datacenter</span>
<span style="color: #008000;">#  If a host isn't in a cluster it won't get the datastore</span>
<span style="color: #008000;">#  Easy enough to change to do all hosts in a datacenter, all in vCenter etc</span>
<span style="color: #008000;">#</span>
<span style="color: #008000;">#  Change the value below to point it to your own vCenter</span>
<span style="color: #800080;">$myvCenter</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;vcenter.example.com&quot;</span>
&nbsp;
<span style="color: #008000;"># Array of arrays below holds NFS-hostname, NFS-path and Datastore name, should be easy to add to</span>
<span style="color: #800080;">$nfsArray</span> <span style="color: pink;">=</span> <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span>
			  <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;nfsserver1&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;/vol/nfspath1&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;VMstore1&quot;</span><span style="color: #000000;">&#41;</span><span style="color: pink;">,</span>
			  <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;nfsserver2&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;/vol/nfspath2&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;VMstore2&quot;</span><span style="color: #000000;">&#41;</span><span style="color: pink;">,</span>
			  <span style="color: pink;">@</span><span style="color: #000000;">&#40;</span><span style="color: #800000;">&quot;nfsserver3&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;/vol/nfspath3&quot;</span><span style="color: pink;">,</span><span style="color: #800000;">&quot;VMstore3&quot;</span><span style="color: #000000;">&#41;</span>
			 <span style="color: #000000;">&#41;</span>
&nbsp;
<span style="color: #800080;">$datacenter</span> <span style="color: pink;">=</span> <span style="color: #008080; font-weight: bold;">Read-Host</span> <span style="color: #008080; font-style: italic;">-Prompt</span> <span style="color: #800000;">&quot;Datacenter name&quot;</span>
&nbsp;
<span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Datacenter is $datacenter&quot;</span>
&nbsp;
connect<span style="color: pink;">-</span>viserver <span style="color: pink;">-</span>server <span style="color: #800080;">$myvCenter</span>
&nbsp;
<span style="color: #008000;">#</span>
<span style="color: #008000;"># Get all hosts in all clusters in the named datacenter</span>
<span style="color: #800080;">$ObjAllHosts</span> <span style="color: pink;">=</span> get<span style="color: pink;">-</span>datacenter <span style="color: #008080; font-style: italic;">-name</span> <span style="color: #800080;">$datacenter</span> <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>Cluster  <span style="color: pink;">|</span>  Get<span style="color: pink;">-</span>VMHost 
&nbsp;
<span style="color: #0000FF;">ForEach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$objHost</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$ObjAllHosts</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
	<span style="color: #0000FF;">ForEach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$nfsItem</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$nfsArray</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
&nbsp;
      <span style="color: #008080; font-weight: bold;">Write-Host</span> <span style="color: #800000;">&quot;Adding datastore&quot;</span> <span style="color: #800080;">$nfsItem</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: #800000;">&quot;with path&quot;</span> <span style="color: #800080;">$nfsItem</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span><span style="color: #800000;">&quot;:&quot;</span><span style="color: #800080;">$nfsItem</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #800000;">&quot;to&quot;</span> <span style="color: #800080;">$objHost</span>
      New<span style="color: pink;">-</span>Datastore <span style="color: pink;">-</span>Nfs <span style="color: pink;">-</span>NfsHost <span style="color: #800080;">$nfsItem</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">0</span><span style="color: #000000;">&#93;</span> <span style="color: #008080; font-style: italic;">-Path</span> <span style="color: #800080;">$nfsItem</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">1</span><span style="color: #000000;">&#93;</span> <span style="color: #008080; font-style: italic;">-Name</span> <span style="color: #800080;">$nfsItem</span><span style="color: #000000;">&#91;</span><span style="color: #804000;">2</span><span style="color: #000000;">&#93;</span> <span style="color: pink;">-</span>VMHost <span style="color: #000000;">&#40;</span>Get<span style="color: pink;">-</span>VMHost <span style="color: #800080;">$objHost</span><span style="color: #000000;">&#41;</span>
    <span style="color: #000000;">&#125;</span>
<span style="color: #000000;">&#125;</span>
disconnect<span style="color: pink;">-</span>viserver <span style="color: pink;">-</span>server <span style="color: #800080;">$myvCenter</span> <span style="color: #008080; font-style: italic;">-Confirm</span>:$false</pre></td></tr></table></div>

<div id="tweetbutton78" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F09%2F17%2Fadd-multiple-datastores-to-multiple-vsphere-hosts%2F&amp;text=Add%20multiple%20datastores%20to%20multiple%20vSphere%20hosts&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F09%2F17%2Fadd-multiple-datastores-to-multiple-vsphere-hosts%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2010/09/17/add-multiple-datastores-to-multiple-vsphere-hosts/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>vSphere 4.1 ESXi Installable on USB?</title>
		<link>http://tech.lazyllama.com/2010/07/15/vsphere-4-1-esxi-installable-on-usb/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=vsphere-4-1-esxi-installable-on-usb</link>
		<comments>http://tech.lazyllama.com/2010/07/15/vsphere-4-1-esxi-installable-on-usb/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 10:18:33 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[USB]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=71</guid>
		<description><![CDATA[Looking at the ESXi Installable Setup guides for 4.1 and 4.0 reveals a change. In 4.0 under System Requirements, a USB drive was listed as a possible boot device, as well as being usable for installation. So you could stick in your installation media and select USB as the destination. Under 4.1, USB is no [...]]]></description>
			<content:encoded><![CDATA[<p>Looking at the ESXi Installable Setup guides for 4.1 and 4.0 reveals a change. In 4.0 under System Requirements, a USB drive was listed as a possible boot device, as well as being usable for installation. So you could stick in your installation media and select USB as the destination.</p>
<p>Under 4.1, USB is no longer listed in the documentation as a bootable device, though boot from SAN devices via HBAs is now supported.</p>
<p>I&#8217;ve not checked whether you can actually install ESXi Installable 4.1 to a USB drive. It may well be possible, but I suspect it&#8217;s dropped off the &#8220;Supported&#8221; list of options.</p>
<p>The only reason I can see to drop support for putting Installable onto USB is to encourage people to purchase and use ESXi Embedded from their hardware supplier instead.</p>
<p><strong>**UPDATE 2nd March 2011**</strong></p>
<p>VMware have posted a clarification Knowledgebase article about the<a title="VMware support for booting ESXi from USB or SD" href="http://kb.vmware.com/kb/1010574"> support for USB and SD for booting ESXi</a>.</p>
<blockquote>
<div>You can install ESXi 4.x to a USB or SD flash storage device directly attached to the server. This option is intended to allow you to gain experience with deploying a virtualized server without relying on traditional hard disks. However, VMware supports this option only under these conditions:</div>
<ul>
<li>The server on which you want to install ESXi 4.x is on the ESXi 4.x <a href="http://www.vmware.com/resources/compatibility/search.php" target="_blank">Hardware Compatibility Guide</a>.
<p>AND</li>
<li>You have purchased a server with ESXi 4.x Embedded on the server from a certified vendor.
<p>OR</li>
<li>You have used a USB or SD flash device that is approved by the server vendor for the particular server model on which you want to install ESXi 4.x on a USB or SD flash storage device.</li>
</ul>
<p>If you intend to install ESXi 4.x on a USB or SD flash storage device while ensuring VMware support for it and you have not purchased a server with embedded ESXi 4.x, consult your server vendor for the appropriate choice of a USB or SD flash storage device.</p></blockquote>
<p>So as I suspected, it&#8217;s only supported if you install either using &#8220;Embedded&#8221; or on a device approved by the server vendor.</p>
<p>It does work absolutely fine on a normal USB stick, the host that this web server runs from boots from such an item in fact. It&#8217;s just not supported by VMware.</p>
<p>Worth noting that an approved 2GB USB stick from HP will cost you approx £75, about 15 times the going rate&#8230;</p>
<div id="tweetbutton71" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F07%2F15%2Fvsphere-4-1-esxi-installable-on-usb%2F&amp;text=vSphere%204.1%20ESXi%20Installable%20on%20USB%3F&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F07%2F15%2Fvsphere-4-1-esxi-installable-on-usb%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2010/07/15/vsphere-4-1-esxi-installable-on-usb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>After vSphere 4.1 &#8211; what will be going</title>
		<link>http://tech.lazyllama.com/2010/07/15/after-vsphere-4-1/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=after-vsphere-4-1</link>
		<comments>http://tech.lazyllama.com/2010/07/15/after-vsphere-4-1/#comments</comments>
		<pubDate>Thu, 15 Jul 2010 10:04:19 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[vSphere]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=63</guid>
		<description><![CDATA[vSphere 4.1 has been out for a couple of days now. As well as the new features which have been covered extensively (see What&#8217;s New), the release notes list some future changes for the product range. They&#8217;re not really hidden but haven&#8217;t been given much publicity. ESX will be dropped in future releases, with ESXi [...]]]></description>
			<content:encoded><![CDATA[<p>vSphere 4.1 has been out for a couple of days now.</p>
<p>As well as the new features which have been covered extensively (see <a href="http://www.vmware.com/support/vsphere4/doc/vsp_41_new_feat.html">What&#8217;s New</a>), the <a href="http://www.vmware.com/support/vsphere4/doc/vsp_esx41_vc41_rel_notes.html">release notes</a> list some future changes for the product range. They&#8217;re not really hidden but haven&#8217;t been given much publicity.</p>
<ul>
<li>ESX will be dropped in future releases, with ESXi being the hypervisor product for vSphere.</li>
<li>Future versions of vCenter Update Manager will not scan or remediate guest OSes. I presume the cross-licensing costs of using Shavlik were outweighing any benefit. UM will continue to scan and update ESXi hosts. and presumably aid in conversion of ESX hosts to ESXi.</li>
<li>VMware vCenter Converter plugin and VMware vCenter Guided Consolidation are also going away in future versions. Converter will continue in a standalone format rather than a vCenter plugin.</li>
<li>Web Access isn&#8217;t available on ESXi so that&#8217;ll be going away when ESX is dropped too</li>
</ul>
<p>There are a few other items being dropped such as support for some versions of Linux  in guests, VMI paravirtualization support, and MSCS in Windows 2000 but they aren&#8217;t as widely used.</p>
<div id="tweetbutton63" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F07%2F15%2Fafter-vsphere-4-1%2F&amp;text=After%20vSphere%204.1%20%26%238211%3B%20what%20will%20be%20going&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F07%2F15%2Fafter-vsphere-4-1%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2010/07/15/after-vsphere-4-1/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Passing info from PowerCLI into your VM using guestinfo variables</title>
		<link>http://tech.lazyllama.com/2010/06/22/passing-info-from-powercli-into-your-vm-using-guestinfo-variables/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=passing-info-from-powercli-into-your-vm-using-guestinfo-variables</link>
		<comments>http://tech.lazyllama.com/2010/06/22/passing-info-from-powercli-into-your-vm-using-guestinfo-variables/#comments</comments>
		<pubDate>Tue, 22 Jun 2010 11:22:42 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[PowerCLI]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=37</guid>
		<description><![CDATA[For a project at work we&#8217;ve been trying to pass information into a VM without connecting the VM to the network. This is in order to set up some config within both Windows and Linux VMs. We decided to explore the use of GuestInfo variables which are held in memory in VMware Tools within the [...]]]></description>
			<content:encoded><![CDATA[<p>For a project at work we&#8217;ve been trying to pass information into a VM without connecting the VM to the network.<br />
This is in order to set up some config within both Windows and Linux VMs. We decided to explore the use of GuestInfo variables which are held in memory in VMware Tools within the Guest VM, but which can be set from the host.</p>
<p>From the ESX Service Console of the host you can use<br />
<code>vmware-cmd &lt;cfgfile&gt; setguestinfo &lt;variable&gt; &lt;value&gt;<br />
</code> to set a value and <code>vmware-cmd &lt;cfgfile&gt; getguestinfo &lt;variable&gt;</code> to read the value. Note that you don&#8217;t need to use the &#8220;guestinfo.&#8221; prefix when using these commands.</p>
<p>Within the VM guest OS the values can be set/read using:<br />
<em>(Windows)</em><br />
<code>vmtoolsd.exe --cmd "info-set guestinfo.&lt;variable&gt; &lt;value&gt;"<br />
vmtoolsd.exe --cmd "info-get guestinfo.&lt;variable&gt;"</code>(vmtoolsd.exe is usually in C:\Program Files\VMware\VMware Tools)</p>
<p><em>(Linux)</em><br />
<code>vmware-guestd --cmd "info-set guestinfo.&lt;variable&gt; &lt;value&gt;"<br />
vmware-guestd --cmd "info-get guestinfo.&lt;variable&gt;"</code>(vmware-guestd is usually in /usr/sbin)</p>
<p>It wasn&#8217;t immediately obvious where the guestinfo variables live with regard to the PowerCLI vmConfig properties. Googling didn&#8217;t reveal much useful info, so I though I&#8217;d try the wonders of new technology and use Twitter. I&#8217;ve been following <a href="http://twitter.com/cshanklin">Carter Shanklin of VMware on Twitter</a> since I attended a London UK VMware User Group meeting a couple of months ago, and as he&#8217;s the Product Manager for PowerCLI and the SDK, I thought I&#8217;d ask.</p>
<p>He quickly pointed me at the VMware SDK documentation for the <a href="http://is.gd/cHhHI"><strong>ConfigInfo object</strong></a> and the <strong>extraConfig</strong> object in particular.</p>
<p>A bit of further reading led me to some experiments let me to try the following code:<br />
<code>$vmConfigSpec = New-Object VMware.Vim.VirtualMachineConfigSpec<br />
$extra = New-Object VMware.Vim.optionvalue<br />
$extra.Key="guestinfo.test"<br />
$extra.Value="TestFromPCLI"<br />
$vmConfigSpec.extraconfig += $extra<br />
$vm =  Get-View -ViewType VirtualMachine | where { $_.name -eq "MyVMName" }<br />
$vm.ReconfigVM($vmConfigSpec) </code><br />
That will set the <strong>guestinfo.test</strong> property to <em>&#8220;TestFromPCLI&#8221;</em>. Once that&#8217;s been set it can be read by the VM.</p>
<p>The <strong>guestinfo</strong> property can have multiple Key/Value pairs so you can pass quite a few variables through to a VM. These can only be set when a VM is powered up and running VMware Tools as the value is stored in the VMs memory, and as far as I can tell, the contents are lost when the VM reboots.</p>
<p>However, there is another <strong>extraConfig</strong> object which can also be set which is the <strong>machine.id</strong>. Again this can be read from within the VM (replace <strong>guestinfo.</strong> with <strong>machine.id</strong> in the above code snippets), but this one gets written to the VMs VMX config file and will thus survive reboots.</p>
<p>You could squish several bits of info into that one object/variable, for example a unique identifier and the VM name so that the VM can self-configure.</p>
<div id="tweetbutton37" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F06%2F22%2Fpassing-info-from-powercli-into-your-vm-using-guestinfo-variables%2F&amp;text=Passing%20info%20from%20PowerCLI%20into%20your%20VM%20using%20guestinfo%20variables&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2010%2F06%2F22%2Fpassing-info-from-powercli-into-your-vm-using-guestinfo-variables%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2010/06/22/passing-info-from-powercli-into-your-vm-using-guestinfo-variables/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Unable to upgrade from Virtual Center evaluation license</title>
		<link>http://tech.lazyllama.com/2009/05/29/unable-to-upgrade-from-virtual-center-evaluation-license/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=unable-to-upgrade-from-virtual-center-evaluation-license</link>
		<comments>http://tech.lazyllama.com/2009/05/29/unable-to-upgrade-from-virtual-center-evaluation-license/#comments</comments>
		<pubDate>Fri, 29 May 2009 14:43:51 +0000</pubDate>
		<dc:creator>lazyllama</dc:creator>
				<category><![CDATA[VMware]]></category>
		<category><![CDATA[Licensing]]></category>
		<category><![CDATA[VirtualCenter]]></category>

		<guid isPermaLink="false">http://tech.lazyllama.com/?p=31</guid>
		<description><![CDATA[I encountered a problem with Virtual Center (VC, vCenter) 2.5 Update 4 where trying to change from the evaluation license to a proper license server resulted in a message that there were &#8220;Not enough licenses for this operation&#8221;. There were various suggestions on the web, mostly involving stopping and starting the Virtual Center and License [...]]]></description>
			<content:encoded><![CDATA[<p>I encountered a problem with Virtual Center (VC, vCenter) 2.5 Update 4 where trying to change from the evaluation license to a proper license server resulted in a message that there were &#8220;Not enough licenses for this operation&#8221;.</p>
<p>There were various suggestions on the web, mostly involving stopping and starting the Virtual Center and License Server services. None of them worked. The only other suggestion was to remove all the hosts from the Virtual Center, add the license, then re-add the hosts back in. This would lose any nice filing of VMs in the &#8220;Virtual Machines &#038; Templates&#8221; view, and would generally be a bit of a pain.</p>
<p>As a last resort, I thought I&#8217;d have a Google round for possible registry settings which may affect licensing.</p>
<p>I found <a href="https://www.hitzemann.org/ttb/?p=3">a blog posting about changing the license type that VC looks for</a> within the registry, which also mentioned a &#8220;LicensePath&#8221; key. </p>
<p>Looking in the registry of my VC server there was no &#8220;LicensePath&#8221; key, so I created one, stopped and restart the Virtual Center service and found that VC now found the license server correctly and didn&#8217;t complain about &#8220;Not enough licenses&#8221;.</p>
<p>So to recap, open regedit, navigate to<br />
<code>HKEY_LOCAL_MACHINE\SOFTWARE\VMware, Inc.\VMware VirtualCenter</code></p>
<p>Create a new String key called<code>LicensePath</code> and enter the info for your license server, e.g. <code>27000@vc01.example.com</code> </p>
<div id="tweetbutton31" class="tw_button" style="float:left;margin-right:10px;"><a href="http://twitter.com/share?url=http%3A%2F%2Ftech.lazyllama.com%2F2009%2F05%2F29%2Funable-to-upgrade-from-virtual-center-evaluation-license%2F&amp;text=Unable%20to%20upgrade%20from%20Virtual%20Center%20evaluation%20license&amp;related=&amp;lang=en&amp;count=horizontal&amp;counturl=http%3A%2F%2Ftech.lazyllama.com%2F2009%2F05%2F29%2Funable-to-upgrade-from-virtual-center-evaluation-license%2F" class="twitter-share-button"  style="width:55px;height:22px;background:transparent url('http://tech.lazyllama.com/wp-content/plugins/wp-tweet-button/tweetn.png') no-repeat  0 0;text-align:left;text-indent:-9999px;display:block;">Tweet</a></div>]]></content:encoded>
			<wfw:commentRss>http://tech.lazyllama.com/2009/05/29/unable-to-upgrade-from-virtual-center-evaluation-license/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Dynamic Page Served (once) in 3.482 seconds -->
<!-- Cached page served by WP-Cache -->

