<?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>Maartendamen&#039;s blog &#187; vmware</title>
	<atom:link href="http://www.maartendamen.com/tag/vmware/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.maartendamen.com</link>
	<description>Blogging on various IT subjects</description>
	<lastBuildDate>Tue, 22 Nov 2011 21:27:03 +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>My home server setup part 1: basic setup and hardware</title>
		<link>http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/</link>
		<comments>http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/#comments</comments>
		<pubDate>Thu, 10 Nov 2011 16:28:55 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[Others]]></category>
		<category><![CDATA[corei3]]></category>
		<category><![CDATA[esxi]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[home]]></category>
		<category><![CDATA[homeserver]]></category>
		<category><![CDATA[hypervisor]]></category>
		<category><![CDATA[intel]]></category>
		<category><![CDATA[kingston]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssd]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=1064</guid>
		<description><![CDATA[I have been running on a new home server setup for a little over a year right now. I am very satisfied with the setup and I figured it might be of interest to others out there. So, in a few blog posts I will explain my complete setup (from hardware to backup). Let&#8217;s start [...]]]></description>
			<content:encoded><![CDATA[<p>I have been running on a new home server setup for a little over a year right now. I am very satisfied with the setup and I figured it might be of interest to others out there.<br />
So, in a few blog posts I will explain my complete setup (from hardware to backup).<br />
Let&#8217;s start of with the hardware used in my home server, nothing fancy really:</p>
<p>Motherboard: Intel Desktop Board DH55TC<br />
CPU: Intel Core I3 530 2,93Ghz<br />
Memory: OCZ Gold Low Voltage OCZ3G1333LV4GK (8GB)<br />
Harddisk 1: Kingston SSDNow SNV425-S2BN/64GB<br />
Harddisk 2: 500GB Western Digital Green</p>
<p>All of the hardware is housed in a small desktop enclosure (as shown on the picture)</p>
<p><a href="http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/antec/" rel="attachment wp-att-1076"><img src="http://www.maartendamen.com/wp-content/uploads/2011/11/antec.jpg" alt="" title="antec" width="400" height="400" class="aligncenter size-full wp-image-1076" /></a><br />
<span id="more-1064"></span><br />
<strong>Hypervisor/Virtualization</strong><br />
With the initial setup of my home server I started with a Windows 2008 R2 installation, with Hyper-V on top.<br />
After running on this system for about 2 months, I really couldn&#8217;t overcome the lack of USB passthrough in Hyper-V. A lot of domotica interfaces use USB, so I couldn&#8217;t use them within virtual machines.<br />
I could off course still run my home automation software on the host (Windows 2008 R2), but this has a downside on the flexibility side. I just want my home automation software within a VM so it can be easily moved around to different hardware in case my server crashes.<br />
This is where VMware ESXi comes to the rescue! ESXi does offer USB passthrough, it works very convenient. You can just plugin USB devices to the host and then add them to a Virtual Machine as hardware.<br />
Here&#8217;s an example of a few interfaces connected to my home automation VM:</p>
<p><a href="http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/vmware_usb/" rel="attachment wp-att-1065"><img src="http://www.maartendamen.com/wp-content/uploads/2011/11/vmware_usb.png" alt="" title="vmware_usb" width="547" height="258" class="alignnone size-full wp-image-1065" /></a></p>
<p>VMware ESXi (5.0) is offered for free with a few limitations:</p>
<p>- You can use a maximum of 32GB<br />
- You can use only one processor (with unlimited amount of cores)</p>
<p>Both limitations are not a big problem for my home server setup. More information about VMware ESXi editions can be found <a href="http://www.vmware.com/vmwarestore/vsphere_purchaseoptions.html">here</a>.</p>
<p><strong>Virtual machines</strong></p>
<p>I run quite a few VM&#8217;s on my home server, here&#8217;s a list:</p>
<p>- One Linux (Debian 6.0) machine running my home automation software (HouseAgent).<br />
- One OSX Lion machine, for testing purposes (basically to test HouseAgent on OSX)<br />
- Two Windows servers for general purpose (file sharing etc.)<br />
- One Windows 7 Virtual Machine for general purpose and testing<br />
- I also have some VM&#8217;s that are in the &#8220;Off&#8221; state but are sometimes powered on for testing, such a System Center Operations Manager (SCOM) test environment.</p>
<p>I hear you asking, OSX on ESXi? But isn&#8217;t that unsupported? Yes, it&#8217;s indeed unsupported but thanks to the ESXi unlocker for OSX this is now possible. The unlocker can be downloaded <a href="http://www.insanelymac.com/forum/index.php?showtopic=267339">here</a>. It runs very smooth with VMware tools installed.</p>
<p>So there you have it: three platforms (Linux, Windows and OSX) on one single server! Something I was looking for, for quite a while.. </p>
<p><em>Disk layout</em><br />
All VM&#8217;s use more or less the same disk layout. The OS disks are created on the SSD disk, whereas the data disks are created on the Western Digital disk.<br />
My home automation is entirely created on the SSD, for optimal performance. </p>
<p><em>Performance</em><br />
So what about performance? Well, even with 5 VM&#8217;s located on this hardware it still runs very smooth. Most of the time the VM&#8217;s are idle anyway.<br />
CPU usage is around 15% on average. Memory usage is 7GB out of 8GB. </p>
<p>This concludes the first part of these blog series, I hope you enjoyed it so far. In the next post we&#8217;ll dive into the backup methods I use for my home server.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2011/11/my-home-server-setup-part-1-basic-setup-and-hardware/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Internal error occured in the vSphere Client when you try to add an existing virtual disk to a VM</title>
		<link>http://www.maartendamen.com/2010/12/internal-error-occured-in-the-vsphere-client-when-you-try-to-add-an-existing-virtual-disk-to-a-vm/</link>
		<comments>http://www.maartendamen.com/2010/12/internal-error-occured-in-the-vsphere-client-when-you-try-to-add-an-existing-virtual-disk-to-a-vm/#comments</comments>
		<pubDate>Wed, 01 Dec 2010 12:01:13 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=487</guid>
		<description><![CDATA[Today I got this error when I tried to add an existing virtual disk to a virtual machine: &#8220;An internal error occured in the vSphere Client. Details: Object reference not set to an instance of an object. Contact VMware support if necessary.&#8221; Looking at the hostd.log file using &#8216;tail&#8217;: tail -f /var/log/vmware/hostd.log I got the [...]]]></description>
			<content:encoded><![CDATA[<p>Today I got this error when I tried to add an existing virtual disk to a virtual machine:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error.png" alt="" title="vsphere_error" width="500" height="142" class="alignnone size-full wp-image-488" /></a></p>
<p><em>&#8220;An internal error occured in the vSphere Client.<br />
Details: Object reference not set to an instance of an object.</p>
<p>Contact VMware support if necessary.&#8221;</em><br />
<span id="more-487"></span><br />
Looking at the hostd.log file using &#8216;tail&#8217;:<br />
<code>tail -f /var/log/vmware/hostd.log</code> </p>
<p>I got the folowing error:<br />
<a href="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error21.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error21.png" alt="" title="vsphere_error2" width="617" height="93" class="alignnone size-full wp-image-492" /></a></p>
<p><em>&#8220;Could not convert disk adapter type 4&#8243;</em></p>
<p>The problem lies within the virtual disk descriptor file (.VMDK), in this case the lsilogic adapter was typed with capitals (LSIlogic):<br />
<a href="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error3.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/vsphere_error3.png" alt="" title="vsphere_error3" width="505" height="139" class="alignnone size-full wp-image-495" /></a></p>
<p>Changing the adapter name to &#8220;lsilogic&#8221; (lower-case) fixed the issue!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/12/internal-error-occured-in-the-vsphere-client-when-you-try-to-add-an-existing-virtual-disk-to-a-vm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goofed fiber channel cable</title>
		<link>http://www.maartendamen.com/2010/11/goofed-fiber-channel-cable/</link>
		<comments>http://www.maartendamen.com/2010/11/goofed-fiber-channel-cable/#comments</comments>
		<pubDate>Wed, 24 Nov 2010 17:38:55 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=482</guid>
		<description><![CDATA[Just a &#8216;fun&#8217; little post today&#8230; Today I figured out that one of our HBA&#8217;s (Host Bus Adapter) in a VMware ESX host, did no longer have a correct connection to our SAN (Storage Area Network). After some troubleshooting, I figured out why: Guess fiber channel cables don&#8217;t like bending :-)]]></description>
			<content:encoded><![CDATA[<p>Just a &#8216;fun&#8217; little post today&#8230;<br />
Today I figured out that one of our HBA&#8217;s (Host Bus Adapter) in a VMware ESX host, did no longer have a correct connection to our SAN (Storage Area Network).<br />
After some troubleshooting, I figured out why:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/11/2010-11-24_16-02-51_550.jpg"><img src="http://www.maartendamen.com/wp-content/uploads/2010/11/2010-11-24_16-02-51_550-300x168.jpg" alt="" title="2010-11-24_16-02-51_550" width="300" height="168" class="alignnone size-medium wp-image-483" /></a></p>
<p>Guess fiber channel cables don&#8217;t like bending :-)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/11/goofed-fiber-channel-cable/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HP Insight Management Agent reports that unused VMware nics are down</title>
		<link>http://www.maartendamen.com/2010/07/hp-insight-management-agent-reports-that-unused-vmware-nics-are-down/</link>
		<comments>http://www.maartendamen.com/2010/07/hp-insight-management-agent-reports-that-unused-vmware-nics-are-down/#comments</comments>
		<pubDate>Thu, 01 Jul 2010 14:14:28 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=341</guid>
		<description><![CDATA[When you don&#8217;t use certain nics on your VMware hosts, HP Insight Management Agents may report that the nics are down. Which is the natural behavior of these clients. The system management homepage on those hosts looks like this: To find out the vmnic number, simple click the error, the vmnic number is shown on [...]]]></description>
			<content:encoded><![CDATA[<p>When you don&#8217;t use certain nics on your VMware hosts, HP Insight Management Agents may report that the nics are down. Which is the natural behavior of these clients.<br />
The system management homepage on those hosts looks like this:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics1.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics1.png" alt="" title="vmware_nics1" width="403" height="177" class="alignnone size-full wp-image-342" /></a></p>
<p><span id="more-341"></span><br />
To find out the vmnic number, simple click the error, the vmnic number is shown on that page:</p>
<p><a href="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics2.png"><img src="http://www.maartendamen.com/wp-content/uploads/2010/07/vmware_nics2.png" alt="" title="vmware_nics2" width="725" height="126" class="alignnone size-full wp-image-343" /></a></p>
<p>To resolve this you simple have to put the nics into the &#8220;Down&#8221; state using &#8220;ifconfig&#8221;:</p>
<p><code>ifconfig vmnic3 down</code></p>
<p>To make this change more permanent (surviving reboots) you have to put the command in the file /etc/rc.local (this file is called once the host has been started)<br />
Here is an example rc.local disabling 2 nics:</p>
<p><code><br />
#!/bin/sh<br />
#<br />
# This script will be executed *after* all the other init scripts.<br />
# You can put your own initialization stuff in here if you don't<br />
# want to do the full Sys V style init stuff.</p>
<p>touch /var/lock/subsys/local<br />
ifconfig vmnic3 down<br />
ifconfig vmnic7 down<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/07/hp-insight-management-agent-reports-that-unused-vmware-nics-are-down/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Extending Windows 2003 os disk using diskpart and VMware</title>
		<link>http://www.maartendamen.com/2010/03/extending-windows-2003-os-disk-using-diskpart-and-vmware/</link>
		<comments>http://www.maartendamen.com/2010/03/extending-windows-2003-os-disk-using-diskpart-and-vmware/#comments</comments>
		<pubDate>Wed, 10 Mar 2010 20:07:58 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[disk]]></category>
		<category><![CDATA[microsoft]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=216</guid>
		<description><![CDATA[I use this trick quite often for Windows 2003 machines (this is not needed on Windows 2008 machines, you can use diskpart directly here!) After time the OS disk grows out it&#8217;s free space, usually this happens due to Windows updates or logfiles. So, here&#8217;s how to extend an OS disk of a Windows 2003 [...]]]></description>
			<content:encoded><![CDATA[<p>I use this trick quite often for Windows 2003 machines (this is not needed on Windows 2008 machines, you can use diskpart directly here!)<br />
After time the OS disk grows out it&#8217;s free space, usually this happens due to Windows updates or logfiles.<br />
So, here&#8217;s how to extend an OS disk of a Windows 2003 machine using diskpart and VMware (ESX 2.0, vSphere, ESX3.5 anything will do):</p>
<p><span id="more-216"></span></p>
<ol>
<li>Shut down the virtual machine in question.</li>
<li>Connect the virtual machine OS disk to another virtual machine, this can be a running virtual machine (please note that you do need to reboot this machine after you are done):- Click edit settings on the running virtual machine.- Click on &#8220;Add&#8230;&#8221; to add hardware to the machine.<br />
- Select &#8220;Hard disk&#8221;<br />
- Select &#8220;Use an existing virtual disk&#8221;<br />
- Browse to the virtual disk.<br />
- Click &#8220;Next&#8221; and &#8220;Finish&#8221;</p>
<p>Your running virtual machine should now look like this:</p>
<p><img class="alignnone size-full wp-image-220" title="10-3-2010 20-44-19" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-20-44-19.png" alt="10-3-2010 20-44-19" width="373" height="321" /></p>
<p>Click &#8220;OK&#8221; to apply the settings.</li>
<li>Now go to edit settings again, and change the size of the virtual disk.
<p><img class="alignnone size-full wp-image-221" title="10-3-2010 20-55-36" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-20-55-36.png" alt="10-3-2010 20-55-36" width="317" height="99" />Click &#8220;OK&#8221; once again.</li>
<li>Now open the console of the running machine. And start a command prompt.</li>
<li>Type &#8220;diskpart&#8221;.Within diskpart, type &#8220;list disk&#8221; to display available disks, you should notice the disk with the free space:
<p><img class="alignnone size-full wp-image-222" title="10-3-2010 20-58-31" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-20-58-31.png" alt="10-3-2010 20-58-31" width="439" height="95" /></p>
<p>Now select that disk, using &#8220;select disk 2&#8243; (2 being the disk number offcourse..)<br />
After that, select the appropriate partition, using &#8220;select part 1&#8243; (1 being the partition number)<br />
<img class="alignnone size-full wp-image-223" title="10-3-2010 21-01-03" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-21-01-03.png" alt="10-3-2010 21-01-03" width="439" height="138" /></p>
<p>Now extend the partition using the &#8220;extend&#8221; command.</p>
<p><img class="alignnone size-full wp-image-224" title="10-3-2010 21-02-46" src="http://www.maartendamen.com/wp-content/uploads/2010/03/10-3-2010-21-02-46.png" alt="10-3-2010 21-02-46" width="351" height="73" /></p>
<p>Hooray! :-)</li>
<li>Now shut down the virtual machine, and remove the added disk. After that you can power on the initial virtual machine.</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/03/extending-windows-2003-os-disk-using-diskpart-and-vmware/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>vSphere web access not working &#8211; The attempt to acquire a valid session ticket for  took longer than expected.</title>
		<link>http://www.maartendamen.com/2010/01/vsphere-web-access-not-working-the-attempt-to-acquire-a-valid-session-ticket-for-took-longer-than-expected/</link>
		<comments>http://www.maartendamen.com/2010/01/vsphere-web-access-not-working-the-attempt-to-acquire-a-valid-session-ticket-for-took-longer-than-expected/#comments</comments>
		<pubDate>Mon, 25 Jan 2010 17:23:00 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=120</guid>
		<description><![CDATA[Today I wanted to give someone remote console access using vSphere web access. I granted him virtual machine user access, which should be sufficient. However after installing the component for remote console view. The session failed with the following error: The attempt to acquire a valid session ticket for &#60;virtual machine&#62; took longer than expected. [...]]]></description>
			<content:encoded><![CDATA[<p>Today I wanted to give someone remote console access using vSphere web access.<br />
I granted him virtual machine user access, which should be sufficient. However after installing the component for remote console view. The session failed with the following error:</p>
<p><span id="more-120"></span>The attempt to acquire a valid session ticket for &lt;virtual machine&gt; took longer than expected.</p>
<p><img class="alignnone size-full wp-image-121" title="VMware Web Console error" src="http://www.maartendamen.com/wp-content/uploads/2010/01/vmware_webconsole.png" alt="VMware Web Console error" width="535" height="261" /></p>
<p><em>Image 1: VMware error message.</em></p>
<p>The solution to this problem can be found here: <a href="http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013816">http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&amp;cmd=displayKC&amp;externalId=1013816</a></p>
<p>Creating a shortcut can be done in the first screen (Summary) in the Commands part.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2010/01/vsphere-web-access-not-working-the-attempt-to-acquire-a-valid-session-ticket-for-took-longer-than-expected/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>vSphere snapshot overview script (with e-mail report)</title>
		<link>http://www.maartendamen.com/2009/11/vsphere-snapshot-overview-script-with-e-mail-report/</link>
		<comments>http://www.maartendamen.com/2009/11/vsphere-snapshot-overview-script-with-e-mail-report/#comments</comments>
		<pubDate>Fri, 27 Nov 2009 11:33:48 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[Powershell]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=28</guid>
		<description><![CDATA[I was looking for a way to e-mail an overview of all exisiting snapshots (on virtual machines) in our virtual environment. VMware provides an excellent powershell cmdlet pack (known as PowerCLI), you can download the latest version (as of today) here: http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html I used PowerCLI to write a script that does the following: Loop through [...]]]></description>
			<content:encoded><![CDATA[<p>I was looking for a way to e-mail an overview of all exisiting snapshots (on virtual machines) in our virtual environment.<br />
VMware provides an excellent powershell cmdlet pack (known as PowerCLI), you can download the latest version (as of today) here: <a href="http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html">http://blogs.vmware.com/vipowershell/2009/11/powercli-40-u1-is-out.html</a></p>
<p>I used PowerCLI to write a script that does the following:</p>
<ul>
<li>Loop through all virtual machines to check if there a snapshots created for a specific virtual machine;</li>
<li>sum up all of the snapshots for a machine containing snapshots;</li>
<li>e-mail a report of the above.</li>
</ul>
<p>Here is the script:<br />
<span id="more-28"></span></p>
<pre class="brush: powershell; title: ; notranslate">
Add-PSSnapin -Name &quot;VMware.VimAutomation.Core&quot;

$VIServer = &quot;yourvirtualcenterserver.test.local&quot;
$VIUsername = &quot;DOMAIN\username&quot;
$VIPassword = &quot;password&quot;

Connect-VIServer -Server $VIServer -User $VIUsername -Password $VIPassword

$AllVirtualMachines = Get-VM

$SmtpClient = new-object system.net.mail.smtpClient
$MailMessage = New-Object system.net.mail.mailmessage 

$SmtpClient.Host = &quot;smtpserver.test.local&quot;
$MailMessage.from = &quot;notification@smtpserver.test.local&quot;
$MailMessage.To.add(&quot;address1@test.local&quot;)
$MailMessage.To.add(&quot;address2@test.local&quot;)
$MailMessage.Headers.Add(&quot;message-id&quot;, &quot;&lt;3BD50098E401463AA228377848493927-1&gt;&quot;)
$MailMessage.IsBodyHtml = 1

$MailMessage.Subject = &quot;VMware snapshot overview&quot;
$MailMessage.Body += &quot;&lt;FONT FACE='Arial, Helvetica, Geneva'&gt;&lt;h2&gt;VMware snapshot overview:&lt;/h2&gt;&lt;br&gt;&quot;

foreach ($VirtualMachine in $AllVirtualMachines)
{
	$AllSnapshots=Get-Snapshot -VM $VirtualMachine

	if ($AllSnapshots.count -gt 0)
	{
		$MailMessage.Body += &quot;&lt;b&gt;&quot; + $VirtualMachine + &quot;&lt;/b&gt;&lt;br&gt;&quot;
		foreach ($Snapshot in $AllSnapshots)
		{
			If ($Snapshot.ID -like &quot;VirtualMachineSnapshot-*&quot;)
			{
				$MailMessage.Body += $Snapshot.Created, $Snapshot.Name, $Snapshot.Description + &quot;&lt;br&gt;&quot;
			}
		}
		$MailMessage.Body += &quot;&lt;br&gt;&quot;
	}
}
$MailMessage.Body += &quot;&lt;/font&gt;&quot;
$SmtpClient.Send($MailMessage)
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2009/11/vsphere-snapshot-overview-script-with-e-mail-report/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VMware vSphere default pathing policy</title>
		<link>http://www.maartendamen.com/2009/11/vmware-vsphere-default-pathing-policy/</link>
		<comments>http://www.maartendamen.com/2009/11/vmware-vsphere-default-pathing-policy/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 21:05:49 +0000</pubDate>
		<dc:creator>Maarten</dc:creator>
				<category><![CDATA[VMware vSphere]]></category>
		<category><![CDATA[eva]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[pathing]]></category>
		<category><![CDATA[policy]]></category>
		<category><![CDATA[san]]></category>
		<category><![CDATA[storage]]></category>
		<category><![CDATA[vmware]]></category>
		<category><![CDATA[vsphere]]></category>

		<guid isPermaLink="false">http://www.maartendamen.com/?p=7</guid>
		<description><![CDATA[I am currently building a new vSphere farm at my company. This also includes the storage part, which can become a load of work: First you have to fix up the physical cabling; next, you have to setup up the zoning; up next you have to present the virtual disks to the VMware hosts. Last [...]]]></description>
			<content:encoded><![CDATA[<p>I am currently building a new vSphere farm at my company. This also includes the storage part, which can become a load of work:</p>
<ul>
<li>First you have to fix up the physical cabling;</li>
<li>next, you have to setup up the zoning;</li>
<li>up next you have to present the virtual disks to the VMware hosts.</li>
</ul>
<p>Last but not least you need to take care of pathing for your presented virtual disks. For our HP EVA SAN, vSphere defaults to the &#8220;Most Recently Used (VMware)&#8221; policy.<br />
In the past we used to manually load balance using fixed paths. <span id="more-7"></span>This was mainly because the round robin policy mechanism was still in an EXPERIMENTAL status.<br />
The round robin policy offers great advantages over the default MRU policy:</p>
<ul>
<li>The HP EVA offers ALUA (Asymmetrical Logical Unit Access). ALUA allows a LUN to be accessed via its primary path (via the owning Storage Processor) and via an asymmetrical path (via the not-owning Storage Processor) I/O to the not-owning Storage Processor or not-optimized path  comes with a performance penalty because the I/O has to be transmitted over the internal connection between the storage processors which does not have much bandwidth;</li>
<li>using ALUA in combination with Round Robin will load balance the I/O&#8217;s over the most optimized paths for that LUN;</li>
<li>the load is balanced between the two optimized paths rather then the most recently used path (as with the MRU policy).</li>
</ul>
<p>Setting the pathing policy for each individual LUN can become quite a job. Good thing there is a way to set the default pathing policy for new discovered LUN&#8217;s using &#8220;esxcli&#8221;</p>
<p><em>esxcli nmp satp setdefaultpsp -–psp VMW_PSP_RR –-satp &lt;Storage Array Type&gt;</em></p>
<p>To figure out the storage array type for your virtual disk, right click a LUN and select &#8220;Manage Paths&#8221; (the screenshot highlights the Storage Array Type.</p>
<p><img class="alignleft size-full wp-image-8" title="vmware_roundrobin" src="http://www.maartendamen.com/wp-content/uploads/2009/11/vmware_roundrobin.png" alt="vmware_roundrobin" width="726" height="231" /></p>
]]></content:encoded>
			<wfw:commentRss>http://www.maartendamen.com/2009/11/vmware-vsphere-default-pathing-policy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

