Windows Server 2012 R2 Gateway

Windows server 2012 R2 can be configured as a Gateway VM in a two or four node cluster on Hyper-v Host. Gateway VM or router enhance Data Center by providing them a secure router for public or private cloud. Gateway VM cluster can provide routing functionality up to 200 tenants. Each Gateway VM can provide routing functionality for up to 50 tenants.

Two different versions of the gateway router are available in Windows Server 2012 R2.

RRAS Multitenant Gateway – The RRAS Multitenant Gateway router can be used for multitenant or non-multitenant deployments, and is a full featured BGP router. To deploy an RRAS Multitenant Gateway router, you must use Windows PowerShell commands

RRAS Gateway configuration and options:

  • Configure the RRAS Multitenant Gateway for use with Hyper-V Network Virtualization
  • Configure the RRAS Multitenant Gateway for use with VLANs
  • Configure the RRAS Multitenant Gateway for Site-to-Site VPN Connections
  • Configure the RRAS Multitenant Gateway to Perform Network Address Translation for Tenant Computers
  • Configure the RRAS Multitenant Gateway for Dynamic Routing with BGP

Windows Server 2012 R2 Gateway – To deploy Windows Server Gateway, you must use System Center 2012 R2 and Virtual Machine Manager (VMM). The Windows Server Gateway router is designed for use with multitenant deployments.

Multi-tenancy is the ability of a cloud infrastructure to support the virtual machine workloads of multiple tenants, but isolate them from each other, while all of the workloads run on the same infrastructure. The multiple workloads of an individual tenant can interconnect and be managed remotely, but these systems do not interconnect with the workloads of other tenants, nor can other tenants remotely manage them.

This feature allow service provider the functionality to virtually isolate different subnets, VLANs and network traffic which resides in same physical core or distribution switch. Hyper-v network virtualization is a Network Virtualization Generic Routing Encapsulation NVGRE which allows tenant to bring their own TCP/IP and name space in cloud environment.

Systems requirements:

Option Hyper-v Host Gateway VM
CPU 2 Socket NUMA Node 8 vCPU for two VMs

4 vCPU for four VMs

CPU Core 8 1
Memory 48GB 8GB
Network Adapter Two 10GB NICs connect to Cisco Trunk Port1 4 virtual NICs

  • Operating Systems
  • Clustering heartbeat
  • External network
  • Internal network
Clustering Active-Active Active-Active or Active-Passive

1-NIC Teaming in Hyper-v Host- You can configure NIC teaming in Hyper-v Host for two 10GB NICs. Windows Server 2012 R2 Gateway VM with four vNIC that are connected to the Hyper-V Virtual Switch that is bound to the NIC Team.

Deployment Guides:

Windows Server 2012 R2 RRAS Deployment Guide

Test Lab Guide: Windows Server 2012 R2 Hyper-V Network Virtualization with System Center 2012 R2 VMM

Clustering Windows Server 2012 R2

Pasting text to Hyper-V guests sometimes results in garbled characters- An Work Around

To work around this issue:

  • RDP to virtual machine using the mstsc.exe
  • Increase the keyboard class buffer size in the virtual machine
  • Disable the synthetic keyboard in the virtual machine to force using the emulated keyboard

To Increase the keyboard class buffer size in the virtual machine

1. Logon to a running virtual machine as an Administrator.

2. Hover mouse on the right hand side top corner, Click Search, Type regedit, and Right Click on Registry Editor, Click Run As Administrator.

3. Locate and then click the following registry entry:

HKLMSYSTEMCurrentControlSetServiceskbdclassParameters

4. In the details page, double click: KeyboardDataQueueSize

5. Select Decimal and type a value data of: 1024

6. Click Ok. Close the Registry Editor. you can modify the same registry for a group of Hyper-v virtual machines using GPO. GPO location is Computer Configuration/Windows Settings/Security Settings/Registry. Right Click and add new registry. 

To disable the synthetic keyboard for a virtual machine

1. Logon to a running virtual machine as a member of the Administrators group.

2. Hover mouse on the right hand side top corner, Click Search, Type devmgmt.msc, and then Right Click on device manager, Click Run As Administrator. 

3. Click Keyboards, right click Microsoft Hyper-V Virtual Keyboard and click Disable.

4. Close the Device Manager snap-in. Restart Virtual Machine.

5. On Windows Server 2012 Core, download DevCon.exe from the Windows Driver Kit to disable this driver using the command-line.