Skip to main content

Mastering Hyper-V 2012 R2 with System Center and Windows Azure



Mastering Hyper-V 2012 R2 with System Center and Windows Azure

John Savill

ISBN: 978-1-118-82833-5 April 2014 576 Pages


This book will help you understand the capabilities of Microsoft Hyper-V, architect a Hyper-V solution for your datacenter, plan a deployment/migration, and then manage it all using native tools and System Center. Coverage also includes hybrid cloud scenarios specifically with Windows Azure to complete the full virtualization piece of providing data both on premise and off premise.

In addition, you will explore the Windows Azure capabilities for virtual machines and managing a hybrid cloud, including Windows Azure’s Internet as a Service (IaaS) and storage capabilities, how seamless management is possible with PowerShell and System Center, plus how Azure Storage can play a part in a company’s complete solution.

Key topics covered include: virtualization fundamentals, network virtualization, storage configuration, Hyper-V management and maintenance, failover clustering and migration, Hyper-V replica and cloud orchestration, private cloud implementation, Azure IaaS, Azure storage, managing with PowerShell, Hyper-V decoding, and Windows Server 2012 R2 integration. 

Introduction xix

Chapter 1 • Introduction to Virtualization and Microsoft Solutions 1

The Evolution of the Datacenter 1

One Box, One Operating System 1

How Virtualization Has Changed the Way Companies Work and Its Key Values 5

History of Hyper-V 10

Windows Server 2008 Hyper-V Features 12

Windows Server 2008 R2 Changes 13

Windows Server 2008 R2 Service Pack 1 15

Windows Server 2012 Hyper-V Changes 16

Windows Server 2012 R2 21

Licensing of Hyper-V 23

One Operating System (Well, Two, but Really One) 24

Choosing the Version of Hyper-V 26

The Role of System Center with Hyper-V 27

System Center Confi guration Manager 28

System Center Virtual Machine Manager and App Controller 28

System Center Operations Manager 28

System Center Data Protection Manager 29

System Center Service Manager 29

System Center Orchestrator 30

Clouds and Services 30

The Bottom Line 32

Chapter 2 • Virtual Machine Resource Fundamentals 35

Understanding VMBus 35

The Anatomy of a Virtual Machine 38

Generation 1 Virtual Machine 39

Generation 2 Virtual Machine 44

Processor Resources 47

Virtual Processor to Logical Processor Scheduling 49

Processor Assignment 52

NUMA Support 57

Memory Resources 60

Virtual Storage 67

VHD 67


Creating a Virtual Hard Disk 70

Pass-Through Storage 72

The Bottom Line 72

Chapter 3 • Virtual Networking 75

Virtual Switch Fundamentals 75

Three Types of Virtual Switch 75

Creating a Virtual Switch 78

Extensible Switch 80


Understanding VLANs 83

VLANs and Hyper-V 86


How SCVMM Simplifies Networking with Hyper-V 91

SCVMM Networking Architecture 92

Deploying Networking with SCVMM 2012 R2 97

Network Virtualization 112

Network Virtualization Overview 112

Implementing Network Virtualization 117

Useful Network Virtualization Commands 119

Network Virtualization Gateway 124

Summary 131

VMQ, RSS, and SR-IOV 132

SR-IOV 132

DVMQ 136

RSS and vRSS 138

NIC Teaming 141

Host Virtual Adapters and Types of Networks Needed in a Hyper-V Host 143

Types of Guest Network Adapters 147

Monitoring Virtual Traffic 150

The Bottom Line 152

Chapter 4 • Storage Configurations 153

Storage Fundamentals and VHDX 153

Types of Controllers 156

Common VHDX Maintenance Actions 157

Performing Dynamic VHDX Resize 159

Storage Spaces and Windows as a Storage Solution 160

Server Message Block (SMB) Usage 166

SMB Technologies 166

Using SMB for Hyper-V Storage 172

iSCSI with Hyper-V 173

Using the Windows iSCSI Target 175

Using the Windows iSCSI Initiator 177

Considerations for Using iSCSI 178

Understanding Virtual Fibre Channel 178

Leveraging Shared VHDX 186

Data Deduplication and Hyper-V 188

Storage Quality of Service 189

SAN Storage and SCVMM 191

The Bottom Line 193

Chapter 5 • Managing Hyper-V 195

Installing Hyper-V 195

Using Configuration Levels 197

Enabling the Hyper-V Role 198

Actions after Installation of Hyper-V .200

Deploying Hyper-V Servers with SCVMM 202

Hyper-V Management Tools 203

Using Hyper-V Manager 205

Core Actions Using PowerShell 210

Securing the Hyper-V Server 214

Creating and Managing a Virtual Machine 214

Creating and Using Hyper-V Templates 219

Hyper-V Integration Services and Supported Operating Systems 229

Migrating Physical Servers and Virtual Machines to Hyper-V Virtual Machines 233

Upgrading and Migrating from Previous Versions 236

Stand-Alone Hosts 237

Clusters 237

The Bottom Line 241

Chapter 6 • Maintaining a Hyper-V Environment 243

Patch Planning and Implementation 243

Leveraging WSUS 244

Patching Hyper-V Clusters 245

Malware Configurations 248

Backup Planning 249

Defragmentation with Hyper-V 252

Using Checkpoints 254

Using Service Templates 258

Performance Tuning and Monitoring with Hyper-V 261

Resource Metering 265

Monitoring 270

The Bottom Line 271

Chapter 7 • Failover Clustering and Migration Technologies 273

Failover Clustering Basics 273

Understanding Quorum and Why It’s Important 275

Quorum Basics 276

Modifying Cluster Vote Configuration 282

Advanced Quorum Options and Forcing Quorums 284

Geographically Distributed Clusters 286

Why Use Clustering with Hyper-V? 287

Service Monitoring 288

Protected Network 291

Cluster-Aware Updating 291

Where to Implement High Availability 292

Configuring a Hyper-V Cluster 295

Cluster Network Requirements and Configurations 296

Performing Cluster Validation 303

Creating a Cluster 306

Creating Clusters with SCVMM 307

Using Cluster Shared Volumes 310

Making a Virtual Machine a Clustered Virtual Machine 314

Live Migration 316

Windows Server 2012 Live Migration Enhancements 320

Live Storage Move 321

Shared Nothing Live Migration 326

Configuring Constrained Delegation 328

Initiating Simultaneous Migrations Using PowerShell 330

Windows Server 2012 R2 Live Migration Enhancements 330

Dynamic Optimization and Resource Balancing 332

The Bottom Line 336

Chapter 8 • Hyper-V Replica and Cloud Orchestration 339

The Need for Disaster Recovery and DR Basics 339

Asynchronous vs. Synchronous Replication 341

Introduction to Hyper-V Replica 342

Enabling Hyper-V Replica 344

Configuring Hyper-V Replica 346

Using Hyper-V Replica Broker 352

Performing Hyper-V Replica Failover 353

Sizing a Hyper-V Replica Solution 359

Using Hyper-V Replica Cloud Orchestration for Automated Failover 361

Overview of Hyper-V Recovery Manager 362

Getting Started with HRM 363

Architecting the Right Disaster Recovery Solution 367

The Bottom Line 368

Chapter 9 • Implementing the Private Cloud and SCVMM 369

The Benefits of the Private Cloud 369

Private Cloud Components 374

SCVMM Fundamentals 376

Installation 377

SCVMM Management Console 379

Libraries 382

Creating a Private Cloud Using System Center Virtual Machine Manager 386

Granting Users Access to the Private Cloud with App Controller 393

Installation and Initial Configuration 394

User Interaction with App Controller 396

Enabling Workflows and Advanced Private Cloud Concepts Using Service Manager and Orchestrator 399

How the Rest of System Center Fits into Your Private Cloud Architecture 402

The Bottom Line 405

Chapter 10 • Remote Desktop Services 407

Remote Desktop Services and Bring Your Own Device 407

Microsoft Desktop and Session Virtualization Technologies 411

RD Web Access 413

RD Connection Broker 414

RD Virtualization Host 415

RD Gateway 415

Requirements for a Complete Desktop Virtualization Solution 416

Creating the VDI Template 420

Deploying a New VDI Collection Using Scenario-Based Deployment 423

Using RemoteFX 429

Remote Desktop Protocol Capabilities 433

Choosing the Right Desktop Virtualization Technology 436

The Bottom Line 439

Chapter 11 • Windows Azure IaaS and Storage 441

Understanding Public Cloud “as a Service” 441

When Public Cloud Services Are the Best Solution 443

Windows Azure 101 447

Windows Azure Compute 447

Windows Azure Data Services 449

Windows Azure App Services 450

Windows Azure Network 451

Capabilities of Azure IaaS and How It Is Purchased 451

Creating Virtual Machines in Azure IaaS 460

Managing with PowerShell 471

Windows Azure Virtual Networks 474

Linking On-Premises Networks with Azure IaaS 483

Migrating Virtual Machines between Hyper-V and Azure IaaS 486

Leveraging Azure Storage 487

The Bottom Line 490

Chapter 12 • Bringing It All Together with a Best-of-Breed Cloud Solution 491

Which Is the Right Technology To Choose? 491

Consider the Public Cloud 492

Decide If a Server Workload Should Be Virtualized 496

Do I Want a Private Cloud? 498

Enabling Single Pane of Glass Management 499

The Bottom Line 501

Chapter 13 • Th e Hyper-V Decoder Ring for the VMware Administrator 503

Overview of the VMware Solution and Key Differences from Hyper-V 503

Translating Key VMware Technologies and Actions to Hyper-V 506

Translations 506

Most Common Misconceptions 511

Converting VMware Skills to Hyper-V and System Center 514

Migrating from VMware to Hyper-V 515

The Bottom Line 517

Appendix • The Bottom Line 519

Chapter 1: Introduction to Virtualization and Microsoft Solutions 519

Chapter 2: Virtual Machine Resource Fundamentals 520

Chapter 3: Virtual Networking 521

Chapter 4: Storage Configurations 522

Chapter 5: Managing Hyper-V 522

Chapter 6: Maintaining a Hyper-V Environment 523

Chapter 7: Failover Clustering and Migration Technologies 524

Chapter 8: Hyper-V Replica and Cloud Orchestration 525

Chapter 9: Implementing the Private Cloud and SCVMM 526

Chapter 10: Remote Desktop Services 526

Chapter 11: Windows Azure IaaS and Storage 527

Chapter 12: Bringing It All Together with a Best-of-Breed Cloud Solution 528

Chapter 13: The Hyper-V Decoder Ring for the VMware Administrator 529

Index 531

ChapterPageDetailsDatePrint Run
236Figure correction: Labels reversed in Figure 2.1
The labels on the diagrams of the two types of hypervisors are reversed. The diagram on the left, labeled "Monolithic hypervisor" depicts a microkernelized hypervisor. The diagram on the right, labeled "Microkernelized hypervisor" depicts a monolithic hypervisor.

47PowerShell update for worker process
Paragraph 2
Currently Reads:
"(Get-WmiObject -q \"SELECT * FROM Msvm_ComputerSystem WHERE ElementName = 'vmname'\" -n root\\virtualization).ProcessID",
Should Read:
"In Windows Server 2012 R2 you have to use the v2 namespace (and optionally can in 2012)\n(Get-WmiObject -q \"SELECT * FROM Msvm_ComputerSystem WHERE ElementName = 'vmname'\" -n root\\virtualization\\v2).ProcessID"

43Correction on Silex link
Paragraph 7
Currently Reads:
Should Read: