<?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>VCritical &#187; networking</title>
	<atom:link href="http://www.vcritical.com/tag/networking/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.vcritical.com</link>
	<description>Informed Virtualization Criticism</description>
	<lastBuildDate>Mon, 12 Jul 2010 22:38:36 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Yes, NIC teaming is not unsupported</title>
		<link>http://www.vcritical.com/2009/02/yes-nic-teaming-is-not-unsupported/</link>
		<comments>http://www.vcritical.com/2009/02/yes-nic-teaming-is-not-unsupported/#comments</comments>
		<pubDate>Fri, 06 Feb 2009 18:41:32 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[Hyper-V]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[Server Core]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=162</guid>
		<description><![CDATA[Unlike Hyper-V, VMware ESX ships with complete network interface (NIC) teaming capabilities, a critical feature for hypervisors.]]></description>
			<content:encoded><![CDATA[<p>Network teaming is useful for providing redundancy and increasing network capacity for servers.  Traditionally, the downside has been getting it set up &#8212; often requiring the installation of non-native drivers for the network interface cards (NICs).</p>
<h2>VMware ESX NIC Teaming</h2>
<p>VMware ESX ships with the ability to connect multiple NICs to a single vSwitch&#8211;right out of the box.  No additional drivers or configuration needed.  You just need to click a few buttons to add the additional NICs.  You end up with something like this:</p>
<p><img class="alignnone size-full wp-image-692" title="VMware ESX vSwitch with NIC team." src="http://www.vcritical.com/wp-content/uploads/2009/02/vswitch-nic-team.png" alt="VMware ESX vSwitch with NIC team." width="469" height="234" /></p>
<p>There are several advanced configuration options available, but for the most part it &#8220;just works&#8221; and can be set up very quickly.  This is one of the many great benefits of virtualizing your server hardware&#8211;individual virtual machines benefit from enhanced network redundancy without any additional configuration in the guest OS.  Plus, it works for all guests, regardless of OS vendor.</p>
<h2>Hyper-V NIC Teaming</h2>
<p>How does Hyper-V handle NIC teaming?  <span id="more-162"></span>They punt and leave it up to the hardware (server and/or NIC) manufacturers.  This puts the system administrator in an unpleasant situation.  Take, for example, <a href="http://web2.minasi.com/forum/topic.asp?whichpage=1&amp;TOPIC_ID=28524&amp;#136573" target="_blank">this thread on Mark Minasi&#8217;s Forum</a>.  That is not an isolated incident, <a href="http://www.google.com/search?q=network+team+hyper-v" target="_blank">as you can see.</a></p>
<p>Since this feature is up to the server vendor, let&#8217;s see what one of them has to say about it.  According to this <a href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01516156/c01516156.pdf">HP integration note</a>, dated January 2009:</p>
<p style="padding-left: 30px;"><strong>IMPORTANT</strong><br />
Windows Server 2008 Hyper-V does not support the Network Configuration Utility (NIC Teaming). Deselect this component before installing the PSP components.</p>
<p>Ouch.  But wait&#8211;HP just published a <a href="http://h20000.www2.hp.com/bc/docs/support/SupportManual/c01663264/c01663264.pdf">HOWTO paper</a> on the topic.  Perhaps things are changing.  Evidently, the installation order of the teaming drivers and Hyper-V is critical:</p>
<p style="padding-left: 30px;"><strong>NOTE</strong><br />
If the teaming software is installed first, the network adapters may cease passing traffic. The resolution to this issue is to uninstall both the HP teaming software and Hyper-V, reboot the server and then reinstall Hyper-V and the teaming software.</p>
<p>But this is my favorite part (Server Core fans, take note):</p>
<p style="padding-left: 30px;"><strong>Uninstalling teaming software</strong><br />
If HP ProLiant Network Teaming Software is already installed on a server, it must be removed (uninstalled) prior to installing and enabling Hyper-V.</p>
<p style="padding-left: 30px;"><strong>NOTE</strong><br />
There is no known method of uninstalling HP ProLiant Teaming software on machines running Windows Server 2008 Server Core. A tool for removing the teaming software is under development and will be available on the HP website in the future. HP recommends that any machine designated to run Server Core, Hyper-V, and teaming be configured as such during the initial installation, using the specified order of installation described above.</p>
<p>Even if Hyper-V is &#8220;free&#8221; and the HP NIC teaming drivers are &#8220;free,&#8221; <strong>your time is valuable</strong>.  Do you want to spend it configuring your hypervisor host OS, or getting real work done for your customers?</p>
<p><strong>UPDATE</strong> You can read more about NIC teaming straight from Microsoft <a href="http://blogs.technet.com/apb/archive/2009/02/25/using-vmm-to-manage-you-hyper-v-nic-teams-created-with-bacs.aspx" target="_blank">in this new post</a>, via <a href="http://blogs.technet.com/chengw/archive/2009/02/26/nic-teaming-and-vmm.aspx" target="_blank">Cheng&#8217;s Random Thoughts</a>.  Wow &#8212; don&#8217;t configure VLANs in SCVMM.  Where&#8217;s the single pane of glass?</p>
<p><em>Please note, the purpose of this article is to highlight the state-of-the-art in hypervisor NIC teaming &#8211;  not knock HP.  I am very satisfied with the HP Proliant servers that I use every day.  They run ESX like a champ!</em></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/08/single-pane-of-glass-hyper-v-edition/' rel='bookmark' title='Permanent Link: Single Pane of Glass &#8212; Hyper-V Edition'>Single Pane of Glass &#8212; Hyper-V Edition</a></li>
<li><a href='http://www.vcritical.com/2010/03/its-not-hyper-v-its-the-drivers/' rel='bookmark' title='Permanent Link: It&#8217;s not Hyper-V &#8212; it&#8217;s the drivers!'>It&#8217;s not Hyper-V &#8212; it&#8217;s the drivers!</a></li>
<li><a href='http://www.vcritical.com/2008/12/let-them-eat-cake/' rel='bookmark' title='Permanent Link: Let them eat cake!'>Let them eat cake!</a></li>
<li><a href='http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/' rel='bookmark' title='Permanent Link: Thanks for all the port groups!'>Thanks for all the port groups!</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/02/yes-nic-teaming-is-not-unsupported/feed/</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Clean up vCenter with PowerShell after SCVMM leaves</title>
		<link>http://www.vcritical.com/2009/01/clean-up-vcenter-with-powershell-after-scvmm-leaves/</link>
		<comments>http://www.vcritical.com/2009/01/clean-up-vcenter-with-powershell-after-scvmm-leaves/#comments</comments>
		<pubDate>Mon, 05 Jan 2009 21:16:01 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[PowerCLI]]></category>
		<category><![CDATA[PowerShell]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[Technical]]></category>
		<category><![CDATA[vCenter]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=432</guid>
		<description><![CDATA[When System Center Virtual Machine Manager (SCVMM) connects to VirtualCenter/vCenter, several changes are made.  Learn how to recover everything with PowerShell.]]></description>
			<content:encoded><![CDATA[<p>Microsoft System Center Virtual Machine Manager (SCVMM) 2008 makes several changes to your vCenter environment that you may like to know about, especially since they don&#8217;t seem to be mentioned in the product documentation.  It&#8217;s also worth pointing out that none of these changes are reverted when you subsequently decide to discontinue managing vCenter with SCVMM.</p>
<p>There are three different affected areas and you can fix each one manually or all in one shot with a VI Toolkit (for Windows) PowerShell script that I wrote for just this purpose.</p>
<h2>1.  SCVMM Port Groups</h2>
<p><img class="size-full wp-image-436 alignleft" title="VI Client displaying several SCVMM-created networks" src="http://www.vcritical.com/wp-content/uploads/2008/12/networks-scvmm.png" alt="networks-scvmm" width="203" height="205" /></p>
<p>First, let&#8217;s address the new port groups that SCVMM created when managing your VMware ESX VMs.  I covered this in more detail in a <a href="http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/">previous article</a>.  Essentially, the SCVMM interface presents vSwitches, not port groups.  It then creates one or more new port groups for you without warning &#8212; one per vSwitch, per VLAN, on each ESX host.</p>
<p>To recover from this mess, you will need to reconfigure any VMs that are currently using these port groups and then delete the port groups from the vSwitches.  If you have more than a couple VMs this task will be easier with the script.<span id="more-432"></span></p>
<h2 style="clear:both">2.  Custom Attribute: ClusterInvariantVMMId</h2>
<p>I bet you did not know that SCVMM would add a new strangely-named custom attribute to vCenter and tag every single VM in your inventory with a GUID.  I&#8217;ve heard puzzled VMware customers asking about this.  Initially, the explanation for this phenomenon was not clear &#8212; until I evaluated the SCVMM product and VMware vCenter integration.  If you are done with SCVMM, it is safe to remove this attribute with VI Client (on the Administration menu).</p>
<p><img class="size-full wp-image-435 alignnone" style="border: 1px solid black;" title="VM Annotation field displaying ClusterInvariantVMMID" src="http://www.vcritical.com/wp-content/uploads/2008/12/annotations.png" alt="annotations" width="433" height="243" /></p>
<h2>3.  Self-Service Role</h2>
<p>Evidently the Self-Service Portal feature of SCVMM will allow users to provision and manage VMs on ESX hosts in addition to Hyper-V.  I tried this and it did not work, but I probably wasn&#8217;t persistent enough.  When you are done using SCVMM you won&#8217;t be needing that role anymore &#8212; go ahead and delete it.</p>
<p><img class="alignnone size-full wp-image-433" title="roles" src="http://www.vcritical.com/wp-content/uploads/2008/12/roles.png" alt="roles" width="442" height="265" /></p>
<h2>PowerShell Cleanup Script</h2>
<p>If you would like to clean up all three of these issues in one step, use the following VI Toolkit (for Windows):</p>

<div class="wp_syntax"><div class="code"><pre class="powershell" style="font-family:monospace;"><span style="color: #008000;"># SCVMM-Cleanup.ps1</span>
<span style="color: #008000;">#</span>
<span style="color: #008000;"># When SCVMM connects to vCenter, it makes several changes and doesn't clean up</span>
<span style="color: #008000;"># after itself.  This script returns everything back to normal.</span>
&nbsp;
<span style="color: #008000;"># Version 1.0  January 5, 2009</span>
<span style="color: #008000;"># Eric Gray</span>
&nbsp;
<span style="color: #008000;"># modify this line accordingly</span>
Get<span style="color: pink;">-</span>VC vchostname <span style="color: pink;">-</span>user xxx <span style="color: pink;">-</span>Password yyy
&nbsp;
<span style="color: #008000;"># VMs using SCVMM-created port groups will be reconfigured to use this instead</span>
<span style="color: #800080;">$portGroup</span> <span style="color: pink;">=</span> <span style="color: #800000;">&quot;VM Network&quot;</span>
&nbsp;
<span style="color: #008000;"># Move all NICs from the SCVMM.vSwitchX.Y port groups to $portGroup</span>
get<span style="color: pink;">-</span>vm <span style="color: pink;">|</span> Get<span style="color: pink;">-</span>NetworkAdapter <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.NetworkName <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;SCVMM*&quot;</span><span style="color: #000000;">&#125;</span> `
    <span style="color: pink;">|</span> Set<span style="color: pink;">-</span>NetworkAdapter <span style="color: pink;">-</span>NetworkName <span style="color: #800080;">$portGroup</span> <span style="color: #008080; font-style: italic;">-Confirm</span>:<span style="color: #800080;">$false</span>
&nbsp;
<span style="color: #008000;"># Delete those SCVMM port groups after they are no longer in use</span>
<span style="color: #0000FF;">foreach</span> <span style="color: #000000;">&#40;</span><span style="color: #800080;">$esx</span> <span style="color: #0000FF;">in</span> Get<span style="color: pink;">-</span>VMHost<span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#123;</span>
    Get<span style="color: pink;">-</span>VirtualPortGroup <span style="color: pink;">-</span>VMHost <span style="color: #800080;">$esx</span>.Name <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span> <span style="color: #000080;">$_</span>.Name <span style="color: #FF0000;">-like</span> <span style="color: #800000;">&quot;SCVMM*&quot;</span> <span style="color: #000000;">&#125;</span> `
    <span style="color: pink;">|</span> Remove<span style="color: pink;">-</span>VirtualPortGroup  <span style="color: #008080; font-style: italic;">-Confirm</span>:<span style="color: #800080;">$false</span>
<span style="color: #000000;">&#125;</span>
&nbsp;
<span style="color: #008000;"># Clean up the custom attribute</span>
Get<span style="color: pink;">-</span>Datacenter <span style="color: pink;">|</span> Remove<span style="color: pink;">-</span>CustomField <span style="color: #008080; font-style: italic;">-Name</span> ClusterInvariantVMMId <span style="color: #008080; font-style: italic;">-Confirm</span>:<span style="color: #800080;">$false</span>
&nbsp;
<span style="color: #008000;"># Remove the SCVMM role</span>
<span style="color: #800080;">$authMgr</span> <span style="color: pink;">=</span> Get<span style="color: pink;">-</span>View AuthorizationManager
<span style="color: #0000FF;">foreach</span><span style="color: #000000;">&#40;</span><span style="color: #800080;">$role</span> <span style="color: #0000FF;">in</span> <span style="color: #800080;">$authMgr</span>.RoleList <span style="color: pink;">|</span> <span style="color: #0000FF;">where</span> <span style="color: #000000;">&#123;</span><span style="color: #000080;">$_</span>.Name <span style="color: #FF0000;">-eq</span> <span style="color: #800000;">&quot;SCVMMSelfServiceUser&quot;</span><span style="color: #000000;">&#125;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#123;</span>
    <span style="color: #800080;">$authMgr</span>.RemoveAuthorizationRole<span style="color: #000000;">&#40;</span><span style="color: #800080;">$role</span>.roleid<span style="color: pink;">,</span> <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span>
<span style="color: #000000;">&#125;</span></pre></div></div>

<p>If you or one of your coworkers accidentally polluted your vCenter environment, this should help you get everything back in order.</p>
<p style="text-align: right;"><em>Thanks go to Carter Shanklin for reviewing the script.</em></p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/04/igt-part-6-cluster-invari-what-id/' rel='bookmark' title='Permanent Link: IGT Part 6: Cluster invari-what ID?'>IGT Part 6: Cluster invari-what ID?</a></li>
<li><a href='http://www.vcritical.com/2009/03/managing-vi3-with-scvmm-considered-harmful/' rel='bookmark' title='Permanent Link: Managing VI3 with SCVMM considered harmful'>Managing VI3 with SCVMM considered harmful</a></li>
<li><a href='http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/' rel='bookmark' title='Permanent Link: Thanks for all the port groups!'>Thanks for all the port groups!</a></li>
<li><a href='http://www.vcritical.com/2009/04/vmware-vcenter-server-4-task-and-event-retention/' rel='bookmark' title='Permanent Link: VMware vCenter Server 4 task and event retention'>VMware vCenter Server 4 task and event retention</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2009/01/clean-up-vcenter-with-powershell-after-scvmm-leaves/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Thanks for all the port groups!</title>
		<link>http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/</link>
		<comments>http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/#comments</comments>
		<pubDate>Tue, 16 Dec 2008 00:48:41 +0000</pubDate>
		<dc:creator>Eric Gray</dc:creator>
				<category><![CDATA[Virtualizationism]]></category>
		<category><![CDATA[ESX]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[SCVMM]]></category>
		<category><![CDATA[VI Client]]></category>

		<guid isPermaLink="false">http://www.vcritical.com/?p=362</guid>
		<description><![CDATA[
VMware ESX virtual machine networking is pretty straightforward.  A virtual switch (vSwitch) is created on each host by default and is associated with one or more physical NICs.  When multiple physical NICs are used, virtual machines benefit from added redundancy and load balancing by simply connecting to such a vSwitch.
However, VMs don&#8217;t connect directly to [...]]]></description>
			<content:encoded><![CDATA[<p><img style=' float: left; padding: 4px; margin: 0 7px 2px 0;'  class="size-medium wp-image-370 alignleft" title="viclient-networks" src="http://www.vcritical.com/wp-content/uploads/2008/12/viclient-networks.png" alt="" width="233" height="135" /></p>
<p>VMware ESX virtual machine networking is pretty straightforward.  A virtual switch (vSwitch) is created on each host by default and is associated with one or more physical NICs.  When multiple physical NICs are used, virtual machines benefit from added redundancy and load balancing by simply connecting to such a vSwitch.</p>
<p><strong>However, VMs don&#8217;t connect directly to vSwitches, they connect to port groups on a vSwitch.</strong> Port groups offer a means of configuring different settings, like VLAN and security, on a single vSwitch.  ESX virtual network administrators perform the infrequent task of creating port groups on hosts.  Later, virtual machine administrators simply select appropriate port groups when configuring VMs, seen as friendly names like this in the VI Client:</p>
<p><img class="size-full wp-image-383 alignnone" title="viclient-vm-network" src="http://www.vcritical.com/wp-content/uploads/2008/12/viclient-vm-network.png" alt="viclient-vm-network" width="243" height="73" /></p>
<p>VM administrators do not necessarily know or care about VLAN or security settings, so this model abstracts some of the complexity that is a result of this network configuration flexibility.  Here is what a vSwitch with two port groups and two physical NICs looks like:</p>
<p><img class="alignnone size-full wp-image-384" title="vswitch1-2pg" src="http://www.vcritical.com/wp-content/uploads/2008/12/vswitch1-2pg.png" alt="vswitch1-2pg" width="463" height="149" /></p>
<p>Unfortunately, if you use Microsoft System Center Virtual Machine Manager (SCVMM) to configure your VMware ESX virtual machines, <span id="more-362"></span>you are only offered vSwitches in the configuration interfaces, not port groups:</p>
<p><img class="size-full wp-image-382 alignnone" title="esxvm-network-connect-scvmm" src="http://www.vcritical.com/wp-content/uploads/2008/12/esxvm-network-connect-scvmm.png" alt="esxvm-network-connect-scvmm" width="373" height="200" /></p>
<p>When creating a new VM, or modifying an existing  one, SCVMM simply introduces new port groups on the fly into your environment.  Well, that&#8217;s one way to avoid having to figure out which existing port group to use, but it might have been better if the SCVMM interface actually presented the correct objects in the first place.</p>
<p>After making such a configuration change, the VM is then connected to a cryptically-named network like this:</p>
<p><img class="alignnone size-full wp-image-369" title="esxvm-network" src="http://www.vcritical.com/wp-content/uploads/2008/12/esxvm-network.png" alt="" width="233" height="82" /></p>
<p>And new port groups are added to the vSwitches on all ESX hosts, something the virtual network administrator might not appreciate:</p>
<p><img class="alignnone size-full wp-image-385" title="vswitch1-4pg" src="http://www.vcritical.com/wp-content/uploads/2008/12/vswitch1-4pg.png" alt="vswitch1-4pg" width="448" height="244" /></p>
<p>Are you thinking about managing VMware ESX with SCVMM?  Are you also the virtual network administrator?  If not, you may have some explaining to do.</p>


<p>Related posts:<ol><li><a href='http://www.vcritical.com/2009/01/clean-up-vcenter-with-powershell-after-scvmm-leaves/' rel='bookmark' title='Permanent Link: Clean up vCenter with PowerShell after SCVMM leaves'>Clean up vCenter with PowerShell after SCVMM leaves</a></li>
<li><a href='http://www.vcritical.com/2009/02/yes-nic-teaming-is-not-unsupported/' rel='bookmark' title='Permanent Link: Yes, NIC teaming is not unsupported'>Yes, NIC teaming is not unsupported</a></li>
<li><a href='http://www.vcritical.com/2009/08/single-pane-of-glass-hyper-v-edition/' rel='bookmark' title='Permanent Link: Single Pane of Glass &#8212; Hyper-V Edition'>Single Pane of Glass &#8212; Hyper-V Edition</a></li>
<li><a href='http://www.vcritical.com/2009/03/managing-vi3-with-scvmm-considered-harmful/' rel='bookmark' title='Permanent Link: Managing VI3 with SCVMM considered harmful'>Managing VI3 with SCVMM considered harmful</a></li>
</ol></p><div style="font-family:Verdana; color:#000000; background-color: #C0C0C0; padding: 7px;border: dashed thin">

<a href="http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/#comments">Leave a Comment</a> •
<a href="http://feedproxy.google.com/vcritical">Subscribe to RSS</a> •
<a href="http://feedburner.google.com/fb/a/mailverify?uri=vcritical&loc=en_US">Subscribe via Email</a> •
<a href="http://www.twitter.com/eric_gray">Follow Eric Gray on Twitter</a><br/>

More articles on: <a href="http://www.vcritical.com/tag/esx/" rel="tag">ESX</a>, <a href="http://www.vcritical.com/tag/networking/" rel="tag">networking</a>, <a href="http://www.vcritical.com/tag/scvmm/" rel="tag">SCVMM</a>, <a href="http://www.vcritical.com/tag/vi-client/" rel="tag">VI Client</a> • <a href="http://www.vcritical.com/category/virtualizationism/">Browse All Virtualization Content</a><br/>

<a href="http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/">Thanks for all the port groups!</a> by <a href="http://www.vcritical.com/about/">Eric Gray</a> © 2008 • <a href="http://www.vcritical.com/">VCritical</a>

</div>]]></content:encoded>
			<wfw:commentRss>http://www.vcritical.com/2008/12/thanks-for-all-the-port-groups/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
