2012
05.25

Before we looks at this new networking feature of W2012 Hyper-V, lets look at what we have been using in Windows Server 2008/R2.  Right now, if you create a VM, you give it one or more virtual network cards (vNICs).  Each vNIC is connected to a virtual network (basically a virtual unmanaged switch) and each switch is connected to one physical NIC (pNIC) or NIC team in the host.  Time for a visual:

image

Think about a typical physical rack server for a moment.  When you connect it to a switch the port is a property of the switch, right?  You can configure properties for that switch port like QoS, VLANs, etc.  But if you move that server to another location, you need to configure a new switch port.  That’s messy and time consuming.

In the above example, there is a switch port.  But Microsoft anticipated the VM mobility issue and port configuration.  Instead of the port being a property of the virtual network, it’s actually a property of the VM.  Move the VM, you move the port, and you move the port settings.  That’s clever; configure the switch port once and now it’s a matter of “where do you want your workload to run today?” with no configuration issues.

OK, now let’s do a few things:

  • Stop calling it a virtual network and now call it a virtual switch.
  • Now you have a manageable layer 2 network device.
  • Introduce lots of new features for configuring ports and doing troubleshooting.
  • Add certified 3rd-party extensibility.

We have different kinds of Virtual Switch like we did before:

  • External – connected to a pNIC or NIC team in the host to allow VM comms on the physical network.
  • Internal – Allows VMs to talk to each other on the virtual switch and with the host parent partition.
  • Private – An isolated network where VMs can talk to each other on the same virtual switch.

Although I’m focusing on the converged fabric side of things at the moment, the extensibility is significant.  Companies like Cisco, NEC, Five9, and others have announced how they are adding functionality.  NEC are adding their switch technology, Five9 are adding a virtual firewall, and Cisco have SR-IOV functionality and a Cisco Nexus 1000v that pretty much turns the Hyper-V Switch into a Cisco switch with all the manageability from their console.  The subject of extensibility is a whole other set of posts.

With a virtual switch I can do something as basic as this:

image

It should look kind of familiar Smile  I’ve already posted about NIC teaming in Windows Server 2012.  Let’s add a team!

image

With the above configuration, the VMs are now connected to both the NICs in the host.  If one NIC dies, the team fails over and the VMs talk through the other NIC.  Depending on you load distribution setting, your VMs may even use the aggregation of the bandwidth, e.g. 2 * 10 GbE to get 20 Gbps of bandwidth. 

With NIC teaming, we have converged two NICs and used a single pipe for VM communications.  We haven’t converged any fabrics just yet.  There’s a lot more stuff with policies and connections that we can do with the Virtual Switch.  There will be more posts on those topics soon, helping us get to the point where we can look at converging fabrics.

4 comments so far

Add Your Comment
  1. I have teamed two nics into one trunk on WS2012. Now I would like to make sure that the parent partition of that server with hyper-v role could access two different vlans and the same goes for the guest child partitions. How could I solve this as hyper-v allows only one virtual switch for one interface and only one vlan tag for one switch. Also I do not see the option to install a loopback adapter when trying to add legacy hardware.

    • What you need to do is:
      - Create a management OS (parent partition is old term) virtual NIC for the managment OS to use for itself
      - Bind the new virtual NIC to the VLAN of your choice

      http://www.aidanfinn.com/?p=12609

      • Thank you!
        Everything works perfectly – I don’t know how I overlooked that post.
        PS! Funny tho that when I added two virtual nics to the vSwitch using PS then they do not show in hyper-v gui and also the vSwitch gets grayed out. Oh well I’d better document all my steps & scripts in detail.

  2. Any rumors about when the Cisco Nexus 1000v for Hyper-V will be released? I have heard some claim it is to be released during the MMS in Las Vegas in april, but still have not seen a beta version?

Get Adobe Flash player