Hyper-V: Clustering & Resiliency. Step 2: Networking

 

Hello Folks,

This is the 3nd post in our Hyper-V 2012 R2 from the ground up series.  Last week we covered setting Host Configuration using SCVMM 2012 R2 and Clustering & Resiliency – Storage.

Today we keep going down the rabbit hole to see how deep it goes. Step 2 in our “from the ground up” series is Networking. As usual, I recommend you download Windows Server 2012 R2 and Hyper-V Server 2012 R2, setup your own lab and try it for yourself.  I ‘m a big believer in getting my hand in the pot to learn.

In our lab we have 5 machines describes as below

 

Machine

Roles and details

image
  • 192.168.1.1 – Corp
  • 10.10.10.1 – Storage 1
  • 11.11.11.1 – Storage 2
  • Running Active Directory Domain Services, DNS, iSCSI Target
image
  • 192.168.1.6 – Corp
  • 10.10.10.6 - Storage 1
  • 11.11.11.6 – Storage 2
  • External DHCP
  • Running System Center 2012 R2 Virtual Machine Manager & SQL Server 2012 SP1
  • Running Server Manager & MMC Interfaces: Hyper-V Manager, Failover Cluster Manager
image
  • 192.168.1.4 – Management
  • 10.10.10.4 – Storage 1
  • 11.11.11.4 – Storage 2
  • 15.15.15.4 – Live Migration
  • 16.16.16.4 – Heartbeat
  • 70.70.70.4 – VMNIC1
  • 80.80.80.4 – VMNIC2
  • 90.90.90.4 – VMNIC3
  • Running Hyper-V, Failover Clustering
  • Note: Hyper-V is running inside a VM thus some functionality may not be available.
image
  • 192.168.1.5 – Management
  • 10.10.10.5 – Storage 1
  • 11.11.11.5 – Storage 2
  • 15.15.15.5 – Live Migration
  • 16.16.16.5 – Heartbeat
  • 70.70.70.5 – VMNIC1
  • 80.80.80.5 – VMNIC2
  • 90.90.90.5 – VMNIC3
  • Running Hyper-V, Failover Clustering
  • Note: Hyper-V is running inside a VM thus some functionality may not be available.
image
  • FS01.contoso.com - Windows Server 2012 R2
  • 3 NICs (address – Alias) 
    • 192.168.1.2 – Corp
    • 10.10.10.2 – Storage 1
    • 11.11.11.2 – Storage 2
  • Running File Server Role & Services

Our machine are setup in a network configuration that include the following segments:

  • Corporate Network for management and Client access
  • Corp
  • SMB networks for file share storage access along with iSCSI connectivity
  • Storage 1
  • Storage 2
  • Dedicated live migration networks
  • Live Migration
  • Dedicated network for Cluster Communication
  • Heartbeat

image

So first, let configure our NIC teams on the Hyper-V hosts

Configure Hyper-v hosts NIC Teams.

1.  From SCVMM01 open Server Manager, Right-click All Servers, and click Add Servers. In the Add Servers window, click Find Now, Select HYPER-V01 and HYPER-V02, click the right arrow, and then click OK.

image

2.  In Server Manager under All Servers, right-click HYPER-V01 and click Configure NIC Teaming to start the NIC
Teaming work pane.

image

3.  In the Teams pane, select Tasks, then New Team and in the NIC Teaming window, type VMTEAM1 in the Team name field and select VMNIC1 and VMNIC2 in the Member adapters box and click OK.

image

4.  Repeat steps 2 and 3 for HYPER-V02.

Now we have our teams setup on both Hyper-V hosts, lets create virtual switches.  The Hyper-V Virtual Switch is a software-based layer-2 network switch that is available in Hyper-V Manager. The switch includes programmatically managed and extensible capabilities to connect virtual machines to both virtual networks and the physical network. In addition, Hyper-V Virtual Switch provides policy enforcement for security, isolation, and service levels.

The Hyper-V Virtual Switch in Windows Server 2012 introduces several new features and enhanced capabilities for tenant isolation, traffic shaping, protection against malicious virtual machines, and simplified troubleshooting.

With built-in support for Network Device Interface Specification (NDIS) filter drivers and Windows Filtering Platform (WFP) callout drivers, the Hyper-V Virtual Switch enables independent software vendors (ISVs) to create extensible plug-ins (known as Virtual Switch Extensions) that can provide enhanced networking and security capabilities. Virtual Switch Extensions that you add to the Hyper-V Virtual Switch are listed in the Virtual Switch Manager feature of Hyper-V Manager.

Creating a Virtual Switch

1.  Open the Virtual Machine Manager Console. Select the Fabric workspace, expand Servers, and click All Hosts. In the main detail pane, right-click HYPER-V01, and select Properties.

image

2.  Click the Virtual Switches tab, click New Virtual Switch, and select New Standard Switch. In the Name field, type vSwitch1.  Select the External radio button, and, from the Network adapter dropdown, select VMTEAM1 – Microsoft Network Adapter Multiplexor Driver. This will bind the vSwitch to this physical adapter. Click OK.

image

3. In warning dialog, click OK to dismiss the warning.

image

4. Repeat steps 1 to 3 for Hyper-V02 with the same switch name (vSwitch1) and network adapter
(VMTEAM1)

Note: It is important to match the case for this vSwitch, so type the name exactly.

This will create the same switch on both Hyper-v hosts.  therefore enabling the easy migration of virtual machines from one host to the other.

Next Thursday we will continue our Network configuration by setting up a Logical Network and completing the Virtual network by tying all the piece together.  we will be that much closer to be able to create our Highly Available Hyper-V cluster.

Won’t you join me?

Cheers!

clip_image011

Pierre Roman | Technology Evangelist
Twitter | Facebook | LinkedIn