Hyper-V Architecture, Scenarios & Networking João Br João Braz azão ão Hosting Technolog Technologyy Specialist Specialist Microsoft Microsoft®
Hosting Deployment Accelerator
Microsoft Assessment and Planning Toolkit 3.2 http://www.microsoft.com/MAP
Microsoft Assessment and Planning Toolkit 3.2 http://www.microsoft.com/MAP
MAP: User Interf Interface ace & Reports Server Migration & Virtualiz Virtualization ation Candidates Windows Server 2008 New User Interface
Virtualization
Windows Vista
•Speed up Planning with Actionable Proposals and Assessments •Collect Inventory of Servers, Desktops and Applications Agentlessly •Offers Recommendations for Server/Application Virtualization •Works with the Virtualization ROI Tool to generate ROI calculations
Objectives And Takeaways Objective(s): Windows Server 2008 Hyper-V System Requirements Architecture Hyper-V in Production
Virtualization Demo Virtualization Hyper-V Networking Hyper-V Systems and VM Creation Microsoft System Center Virtualization Virtualiza tion Comparison
Hyper-V in the Press “Microsoft's virtualization has three unique advantages: It costs nothing, its administration is integrated into Microsoft's other server management tools, and Windows Server 2008 is the only host OS it needs to support. In that last case, Windows shops derive a serious performance and scalability kick...” - Infoworld
“ Even
though Hyper-V is still pre-1.0 code, I think Microsoft has done a bang-up job with its hypervisor, and it may just turn this Linux freak into a Windows 2008 junkie for running his own personal virtualization needs .” - ZDNet
“Yes, jaws actually dropped
when it [Hyper-V] was installed in the Test Center.” - CRN
“My experience has left me extremely impressed. Windows Server 2008 on largescale, virtualized enterprise servers will make alternatives a very hard sell.” - Infoworld
“Hyper-V is free as a built-in feature in Server 2008 Standard and ESX Server costs several thousand dollars per copy, depending on the features purchased, so on a pure bang per buck and ease of use basis, it beats ESX and dare I say it – the Xen solutions built into Linux distros – hands down.
- ZDNet
Virtualization in the Industry
Virtualization 2010 Information Week Oct. 2007 “The [virtualization field] is nowhere near saturated. IDC 17,00% estimates that only 17% of the worldwide server market will be virtualized by 2010, up from 5% in 2005.”
World Wide Virtualization Adoption NonVirtualized servers
83,00%
Virtualized servers
Microsoft IT Going Green Production Use Virtual Server in heavy use for 18+ months 2,500+ virtual machines ~100 new VMs per month Consolidation Ratios
Test/Development Use Virtual Server in heavy use for 18+ months 500+ virtual machines Consolidation Ratios 16 servers to 1 server
8 servers to 1 server
Test/Development Savings: Item
Physical System Cost
Virtual Server Build Cost
Savings
Number of servers required
477 systems @ a cost of $5k each Total $2.3 million
16 physical host systems @ $20k each Total: $320 thousand
Just under 2 million dollars
Hard drive space
19 terabytes
8 terabytes
11 terabytes
Rack space
30 racks
2 racks
28 racks
Windows Server 2008 Hyper-V
Windows Hyper-V Requirements Description Hypervisor based virtualization platform Windows Server 2008 x64 Edition technology Standard, Enterprise and Datacenter Editions
Hardware Requirements x64 server with hardware assisted virtualization AMD AMD-V or Intel VT
Hardware enabled Data Execution Prevention (DEP) required AMD (NX no execute bit) Intel (XD execute disable)
Note: Enabling these BIOS features requires powering down (not rebooting) the server to take effect
Architecture
Provided by:
Hyper-V Architecture Parent Partition
OS ISV / IHV / OEM Microsoft Hyper-V Microsoft / XenSource
Child Partitions
VM Worker Processes
Applications
Applications
Applications
Applications
Windows Server 2003, 2008
NonHypervisor Aware OS
Xen-Enabled Linux Kernel
WMI Provider VM Service
Windows Server 2008 Windows Kernel
VSP
Windows Kernel
Linux VSC
VSC
IHV Drivers
VMBus
VMBus
VMBus
Emulation
User Mode
Hypercall Adapter
Windows hypervisor “Designed for Windows” Server Hardware
Kernel Mode Ring -1
Hyper-V Capabilities 32-bit (x86) & 64-bit (x64) VMs Large memory support (64 GB) per VM SMP VMs (up to 4 cores) Integrated cluster support for HA & Quick Migration BitLocker: Seamless, secure data encryption Live Backup: Volume Shadow Service integration Pass-through disk access for VMs Virtual Machine snapshots New hardware sharing architecture (VSP/VSC/VMBus) Disk, networking, input, video
Robust networking: VLANs and NLB DMTF standard for WMI management interface Support for Full or Server Core installations
Windows Server Core Server Core: new minimal installation option Provides essential server functionality Command Line Interface only, no GUI Shell
Benefits Less code results in fewer patches and reduced servicing burden Low surface area server for targeted roles More secure and reliable with less management
Security Isolation No sharing of virtualized devices Separate VMBus instance per vm to the parent No sharing of memory Each has its own address space
VMs cannot communicate with each other, except through traditional networking Guests can’t perform DMA attacks because they’re never mapped to physical devices Guests cannot write to the hypervisor Parent partition cannot write to the hypervisor
Hyper-V in Production TAP, RDP & MSIT Hyper-V Deployments Thousands of Hyper-V VMs in PRODUCTION Windows Server 2003/2008 Roles: File, Print, AD, RODC, IIS/Web, TS, Application Services, DHCP, DNS, WSS and more…
Microsoft Server Products: SQL, Exchange, HPC, ISA, Sharepoint, Project Server, VSTS, BizTalk, Configuration Manager, Operations Manager, Virtual Machine Manager & more…
Hyper-V Stats: Performance Blockers: ZERO Deployment Blockers: ZERO Application Compatibility Bugs: ZERO Scalability Blockers: ZERO
Hyper-V in Production Hyper-V Powering Microsoft Internet Properties TechNet: 100% Hyper-V http://technet.microsoft.com ~1 million hits a DAY
MSDN: http://msdn.microsoft.com ~3 million hits a DAY
Microsoft.com (50% and growing) http://www.microsoft.com 1 billion hits a MONTH
Hyper-V Networking Two physical network adapters at minimum One for management One (or more) for VM networking Dedicated NIC(s) for iSCSI Connect parent to backend management network Only expose guests to internet traffic
Hyper-V Network Configurations Example 1: Physical Server has 4 network adapters NIC 1: Assigned to parent partition for management NICs 2/3/4: Assigned to virtual switches for virtual machine networking Storage is non-iSCSI such as: Direct attach SAS or Fibre Channel
Hyper-V Setup & Networking 1
Hyper-V Setup & Networking 2
Hyper-V Setup & Networking 3
Each VM on its own Switch… Parent Partition
Child Partitions
VM Worker Processes
Applications
Applications
Applications
VM 1
VM 2
VM 3
WMI Provider
VM Service
Windows Server 2008
Windows Kernel
VSP VS
VSC
Windows Kernel
VSC
Linux Kernel
VSC
VS P P
VMBus
VMBus
VMBus
Windows hypervisor Mgmt NIC 1
VSwitch 1 NIC 2
VSwitch 2 NIC 3
VSwitch 3 NIC 4
“Designed for Windows” Server Hardware
User Mode
VMBus
Kernel Mode Ring -1
Hyper-V Network Configurations Example 2: Server has 4 physical network adapters NIC 1: Assigned to parent partition for management NIC 2: Assigned to parent partition for iSCSI NICs 3/4: Assigned to virtual switches for virtual machine networking
Hyper-V Setup, Networking & iSCSI
Now with iSCSI… Parent Partition
Child Partitions
VM Worker Processes
Applications
Applications
Applications
VM 1
VM 2
VM 3
WMI Provider
VM Service
Windows Server 2008
Windows Kernel
VSC
Windows Kernel
VSC
Linux Kernel
User Mode
VSC
VSP VS
P
VMBus
VMBus
VMBus
Windows hypervisor Mgmt NIC 1
iSCSI NIC 2
VSwitch 1 NIC 3
VSwitch 2 NIC 4
“Designed for Windows” Server Hardware
VMBus
Kernel Mode Ring -1
Networking: Parent Partition
Networking: Virtual Switches
Hyper-V Systems & VM Creation
Hyper-V & Laptops No support for wireless networking Can’t sleep/hibernate system Use multiple spindles Disk for system Disk for virtual machines
Intel Note: Santa Rosa Chipset and later Supports 4 GB and greater
Hyper-V Laptop Configuration Disk 1: Two Partitions Vista SP1 & Windows 2008
Disk 2: Two Partitions VMs & Storage
Disk 1, Partition 2: ~24 GB
Disk 2, Partition 2: ~84 GB
Windows Server 2008 x64 Edition
Storage ISOs
Disk 1, Partition 1: ~70 GB
Disk 2, Partition 1: ~65 GB
Vista SP1 RTM
Virtual Machines
Laptop
Inexpensive Dev/Demo System Single Proc Quad Core 2.4 GHz 300 GB Drive DVD-RW Burner 1 Gb/E NIC $700
Create virtual machine Install guest operating system & latest SP Install integration components Install anti-virus Install management agents SYSPREP Add it to the SCVMM Library
Windows Server 2003 Create vms using 2-way to ensure an MP HAL
Microsoft System Center
What about… Heterogeneous Virtualization Management Physical to Virtual Conversion (P2V) Virtual to Virtual Conversion (V2V) Virtual Server to Hyper-V VMware to Hyper-V Virtual Machine Library PowerShell Scripting Delegated Administration Virtual Machine Authoring VM Templates/Cloning Failover Cluster Integration
System Center
Backup
• Live host level virtual machine backup • In guest consistency • Rapid recovery Disaster Recovery
• End to end service management • Server and application health monitoring & management Monitoring • Performance reporting and analysis
Hardware • Virtual machine Provisioning
management • Server consolidation and resource utilization optimization • Conversions: P2V and V2V Workload Provisioning
• Patch management and deployment • OS and application configuration management • Patching Software upgrades
Virtualization Comparison
Virtual Server 2005 vs. Hyper-V Virtual Server 2005 R2
Hyper-V
32-bit Virtual Machines
Yes
Yes
64-bit Virtual Machines
No
Yes
Multi Processor Virtual Machines
No
Yes, 4 core VMs
Virtual Machine Memory Support
3.6 GB per VM
64 GB per VM
Managed by System Center Virtual Machine Manager
Yes
Yes
Support for Microsoft Clustering Services
Yes
Yes
Host side backup support (VSS)
Yes
Yes
Yes, COM
Yes, WMI
Web Interface
MMC 3.0 Interface
Virtualization Feature
Scriptable / Extensible User Interface
Microsoft Virtualization… Hyper-V
VMWare ESX 3.5 Server
x86 & x64
x86 & x64
Large Memory Support
64 GB per VM
64 GB per VM
Guest Multi-processing
2/4-core support (free)
2/4-core ($$)
Migration
Quick Migration WAN Disaster Recovery
Live Migration ($$) Local Disaster Recovery ($$)
Unified Physical and Virtual
Virtual Machines Virtual Only
Architecture Support
Management Management
Microsoft Provides a Multilevel Approach Infrastructure Management Applications Interoperability
Microsoft Hyper-V Server 2008 Simplified and optimized Provides basic virtualization capabilities Great stand-alone hypervisor-based virtualization product. Reliable and responsive Micro-kernelized hypervisor with no third party device drivers Rapidly provision new virtual machines Easily integrates into existing infrastructure Leverage existing management tools (e.g,: System Center, VMM) Leverage existing support tools & processes Leverage existing IT Pro skill-set and knowledge
Hyper-V Server: Pricing and Licensing
Microsoft Hyper-V Server 2008 is available as a free download from http://www.microsoft.com/hyper-VServer No CALs are required for Microsoft Hyper-V Server 2008. CALs are still required for the guest OS. Every guest OS instance must be licensed. Customers who want flexible virtualization rights should use Windows Server 2008. Windows Server 2008 Std Edition 1 VM instance included
Windows Server 2008 Enterprise Edition 4 VM instances included
Windows Server 2008 Datacenter Edition Unlimited VM instances per processor license
Microsoft Virtualization APIs Virtual Server COM Interface http://msdn2.microsoft.com/enus/library/bb309134(VS.85).aspx
Virtual Hard Disk Format http://www.microsoft.com/windowsserversystem/virtualserver /techinfo/vhdspec.mspx