You are previewing Hyper-V Network Virtualization Cookbook.
O'Reilly logo
Hyper-V Network Virtualization Cookbook

Book Description

Over 20 recipes to ease the creation of new virtual machines in the networking layer using Hyper-V Network Virtualization

In Detail

Hyper-V Network Virtualization provides the concept of a Virtual Network that is independent of the underlying physical network. Using software-defined networking, you can manage the network address space, isolation, and routing without having to make changes to the physical underlying architecture.

You will start your journey by understanding the fundamentals of Hyper-V Network Virtualization and how to configure System Center 2012 R2 Virtual Machine Manager to support it. You will learn about the Windows Server Gateway role for Hyper-V Virtual Networks and the different implementation options.

Finally, you will see how the Hyper-V Extensible Switch can help protect Virtual Machines by using Hyper-V Extensible Port ACLs.

What You Will Learn

  • Install a highly available Virtual Machine Manager (VMM)
  • Configure VMM for Hyper-V Network Virtualization
  • Create a Service Template for reusable HNV gateways
  • Create an HNV gateway and the different options for gateways, including Network Address Translation and Direct Routing
  • Integrate IP Address Management (IPAM) with VMM for HNV
  • Implement network security in Hyper-V Network Virtualization
  • Downloading the example code for this book. You can download the example code files for all Packt books you have purchased from your account at http://www.PacktPub.com. If you purchased this book elsewhere, you can visit http://www.PacktPub.com/support and register to have the files e-mailed directly to you.

    Table of Contents

    1. Hyper-V Network Virtualization Cookbook
      1. Table of Contents
      2. Hyper-V Network Virtualization Cookbook
      3. Credits
      4. About the Author
      5. About the Reviewers
      6. www.PacktPub.com
        1. Support files, eBooks, discount offers, and more
          1. Why subscribe?
          2. Free access for Packt account holders
          3. Instant updates on new Packt books
      7. Preface
        1. What this book covers
        2. What you need for this book
          1. Hardware requirements
          2. Software requirements
        3. Who this book is for
        4. Sections
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
          5. See also
        5. Conventions
        6. Reader feedback
        7. Customer support
          1. Downloading the example code
          2. Errata
          3. Piracy
          4. Questions
      8. 1. Installing Virtual Machine Manager
        1. Introduction
        2. Deploying the required service accounts
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Creating the distributed key management container in Active Directory
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Installing Virtual Machine Manager on a single server
          1. Getting ready
          2. How to do it…
            1. .NET Framework
            2. Microsoft Windows Assessment and Deployment Kit
            3. SQL Server 2012
            4. VMM installation
          3. How it works…
        5. Installing a highly available Virtual Machine Manager server
          1. Getting ready
          2. How to do it…
            1. SQL Server
            2. VMM Management Server
              1. Installing of the first cluster node
              2. SQL Server tasks
              3. Adding SVC_VMMSrvc SQL Login to the other SQL Server node
              4. Altering the recovery model of the VirtualManagerDB database to Full
              5. Creating a full backup of VirtualManagerDB
              6. Adding VirtualManagerDB to AlwaysOn High Availability Group
              7. Removing TmpVMMDB from AlwaysOn High Availability Group
              8. Installing the second node
            3. VMM Library Server
              1. Adding a VMM Run As account for the SVC_VMMAgntRA account
              2. Adding Cluster to VMM
          3. How it works…
      9. 2. Configuring Networks for Hyper-V Network Virtualization
        1. Introduction
        2. Creating the required Logical Networks in Virtual Machine Manager
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Creating the required Port Profiles in Virtual Machine Manager
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Creating and assigning Logical Switches to Hyper-V hosts
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
        5. Creating the Virtual Machine Networks for Tenants
          1. Getting ready
          2. How to do it…
          3. How it works…
        6. Testing the basic Virtual Machine Networks
          1. Getting ready
          2. How to do it…
          3. How it works…
      10. 3. Creating the Gateway for Virtual Machine Communications
        1. Introduction
        2. Creating a Logical Network, Port Profiles, and Logical Switches for external access
          1. Getting ready
          2. How to do it…
            1. Creating a Logical Network
            2. Creating Uplink Port Profiles
            3. Creating Logical Switches
          3. How it works…
        3. Creating a Hyper-V Network Virtualization gateway manually
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Creating a Hyper-V Network Virtualization gateway with a Service Template
          1. Getting ready
          2. How to do it…
          3. How it works…
          4. There's more…
      11. 4. IP Address Management Integration with VMM for Hyper-V Network Virtualization
        1. Introduction
        2. Installing IPAM in Windows Server 2012 R2
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Integrating IPAM into VMM
          1. Getting ready
          2. How to do it…
          3. How it works…
        4. Using IPAM data for reporting
          1. Getting ready
          2. How to do it…
          3. How it works…
      12. 5. Windows Server Gateway Configuration
        1. Introduction
        2. Network Address Translation with the gateway
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Direct Routing and how it is different from NAT
          1. Getting ready
          2. How to do it…
          3. How it works…
      13. 6. Implementing Network Isolation in Hyper-V
        1. Introduction
        2. Understanding VLANs in Hyper-V and VMM, including the PowerShell cmdlets
          1. Getting ready
          2. How to do it…
          3. How it works…
        3. Understanding Private VLANs in Hyper-V and VMM, including the PowerShell cmdlets
          1. Getting ready
          2. How to do it…
            1. Promiscuous and Isolated
            2. Promiscuous and Community
            3. Promiscuous, Community, and Isolated
          3. How it works…
      14. 7. Network Access Control Lists
        1. Introduction
        2. Locking down a VM for security access
          1. Getting ready
          2. How to do it...
          3. How it works...
        3. Applying rules to a list of VMs
          1. Getting ready
          2. How to do it...
          3. How it works...
            1. The Add-MultipleVMNetworkAdapterExtendedAcl.ps1 script
      15. A. VM Templates
        1. Configuration
        2. Sysprep
      16. B. Planning the Virtual Machine Manager
        1. Preparing
        2. How to plan the Virtual Machine Manager
      17. Index