umar affandhi - server virtualization with hyper-v

36
IT-Pro, ADVANCED Umar Affandhi MCT, MCITP Trainer, Inixindo INDONESIA Server Virtualizat ion with Hyper-V

Upload: microsoft-techdays-apac

Post on 02-Dec-2014

605 views

Category:

Documents


4 download

TRANSCRIPT

Page 1: Umar Affandhi - Server Virtualization With Hyper-V

IT-Pro, ADVANCED

Umar AffandhiMCT, MCITP Trainer, Inixindo

INDONESIA

Server Virtualization with Hyper-V

Page 2: Umar Affandhi - Server Virtualization With Hyper-V

Evaluating and Planning for Virtualization

Page 3: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Evaluating and Planning for Virtualization

• Overview of Microsoft Virtualization• Evaluating the Current Environment for

Virtualization• Planning the Hyper-V Server Role

Page 4: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Challenges of Traditional Network Environments

Chalenges are:• Data centers are at capacity • Servers are under utilized• Servers are difficult to manage and secure• Legacy hardware and systems • Application compatibility issues

Page 5: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Virtualization Modes

Management

Profile VirtualizationDocument redirectionOffline files

Presentation Virtualization

Desktop Virtualization Application Virtualization

Cloud Computing

Page 6: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Is Server Virtualization?

Server virtualization enables multiple virtual machines to run on one physical host

Benefits:• Server consolidation• Service or application isolation• Simplified server deployment• Increased service and application

availability• Multiple operating systems can run on one

consistent platform

Page 7: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Is Desktop Virtualization?  

Desktop virtualization provides options for virtualizing client operating systems Desktop virtualization provides options for virtualizing client operating systems

Desktop virtualization option

Description

Client-Hosted Virtual machines run on the user desktop to provide an alternate computing environment

Virtual Desktop Infrastructure

Client virtual machines are hosted in the data center and accessed through remote desktop

Microsoft Enterprise Desktop Virtualization

Provides the tools to build and deploy client virtual machines to user desktops

Page 8: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Is Presentation Virtualization?

• Presentation virtualization runs applications on centralized servers • Windows Server 2008 R2 Remote Desktop Services replaces Terminal Services • Presentation virtualization runs applications on centralized servers • Windows Server 2008 R2 Remote Desktop Services replaces Terminal Services

Benefits include:

• Centralized data • Simplified application management • Integration with application virtualization Potentially improved performance

Page 9: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Is Application Virtualization?  

Application virtualization provides virtual environments for applications running on user desktopsApplication virtualization provides virtual environments for applications running on user desktops

Benefits include:

• Enables potentially incompatible applications to run on one computer

• Application deployment is easier • Virtual application use is transparent to users Virtual applications are easy to deploy

Page 10: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Is Cloud Computing?Cloud computing enables access to IT services through the InternetCloud computing enables access to IT services through the Internet

A cloud computing infrastructure includes:

• Data center with virtualization hosts • Virtual servers, storage and network resources• Highly available and high bandwidth network• Automated tools for managing virtual machines• Tools for managing online and local integration

Benefits include:

• Flexible deployment options • Scalability • Decreased cost• Improved service availability

Page 11: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

When identifying server workloads to virtualize, consider:

• Hardware requirements• Compatibility• Supportability• Licensing• Availability requirements

Evaluation Factors

Page 12: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Overview of Virtualization Solution Accelerators

Microsoft Virtualization Solution Accelerators provide guidance and tools that help you design and implement virtualizationMicrosoft Virtualization Solution Accelerators provide guidance and tools that help you design and implement virtualization

• Microsoft Assessment and Planning Toolkit • Infrastructure Planning and Design Guides • Offline Virtual Machine Servicing tool• Security Compliance Management Toolkit Series• Microsoft Deployment Toolkit

Page 13: Umar Affandhi - Server Virtualization With Hyper-V

Assessment Features of the MAP Toolkit

The MAP toolkit provides:

• Hardware inventory • Agentless collection of data• Collects information about the hardware, drivers, and applications

installed on target computers• Data Analysis

• Identifies candidates for upgrading to new operating systems or for virtualization

• Readiness Reporting • Detailed reports on findings

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Page 14: Umar Affandhi - Server Virtualization With Hyper-V

Demonstration: Assessing the Computing Environment by Using the MAP Toolkit

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Page 15: Umar Affandhi - Server Virtualization With Hyper-V

Designing a Solution for Server Virtualization

1. Determine the virtualization scope 2. Create a list of potential workloads that you want to virtualize 3. Determine backup and fault-tolerance requirements for each workload 4. Design and place hardware for a virtualization host 5. Map workloads to hosts 6. Design host backup and fault tolerance 7. Determine storage requirements 8. Determine network requirements

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Page 16: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Is Hyper-V?

Applications Applications Applications

Windows Server 2003, 2008

Windows Kernel VSC

VMBusVMBus

“Designed for Windows” Server Hardware

Windows hypervisor

Supported Linux Distributions

Linux VSC

Linux VSC

Child Partitions

OS ISV/IHV/OEM Microsoft Hyper-V

User Mode

Kernel Mode

Ring -1

Windows Server 2008

Windows Kernel

VMBusVMBus VMBusVMBus

Parent Partition

VM ServicesVM Services

WMI ProviderWMI Provider

VM Worker

Processes

Applications

Microsoft / CitrixProvided by

VSPVSP

IHV Drivers

Non-Hypervisor Aware OS

EmulationEmulation

Page 17: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Virtual Machine OverviewVirtual machine components include:

• Virtual processors• Memory• Network Adapters• Virtual Disks

Virtual machines can run:

• Windows Server 2008 and Windows Server 2008 R2• Windows Server 2003 SP2 and Windows Server 2003

R2 SP2• Windows 2000 Server, SP4• Redhat and Suse Linux• Windows 7, Windows Vista and Windows XP SP2 or later

Page 18: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Understanding Hypervisors

Hypervisors come in several different flavors . They can be categorized, for example,

• by type—that is, by whether they run directly on the physical hardware or within (hosted by) an operating system environment .

• by design—that is, whether they are monolithic or microkernel .

Page 19: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Type 1 Hypervisorrun directly on bare metal

• Microsoft Hyper-V• Citrix XenServer• VMware ESX Server

Page 20: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Type 2 hypervisors run within an operating system environment

• Microsoft Virtual Server• VMware Server

Page 21: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Monolithic vs. Microkernel

Page 22: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Features of Hyper-V in Windows Server 2008 R2

Hyper-V in

Windows Server 2008 R2

Live MigrationLive Migration Dynamic virtual

machine storage

Dynamic virtual

machine storageImproved VHD

performance

Improved VHD

performance

Enhanced processor

support

Enhanced processor

supportEnhanced processor

support

Enhanced processor

supportEnhanced networking

support

Enhanced networking

support

Cluster shared volumes

Page 23: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Requirements and Limits for Virtual Machines and Hyper-V

Component Description

Logical processors 64

Virtual processors per logical processor

8

Virtual machines per server

384 running virtual machines

Memory 1 TB

Storage No limits imposed by Hyper-V

Physical network adapters

No limits imposed by Hyper-V

Host computer components

Component Description

Virtual processors 4

Memory 64 GB

Virtual IDE disks 4

Virtual SCSI disks 256

Virtual hard disk capacity

2040 GB

Snapshots 50

Virtual network adapters

12

Virtual machine components

Page 24: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Planning for Disks and Storage

Hyper-V host computers can use:

• Directly attached storage• Storage Area Networks

Virtual machines require storage for:

• Virtual hard disk files• Snapshots• Failover clustering• Application data files

Page 25: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Determining Availability Requirements for Virtual Machines

To provide high availability, you can use:

• Virtual machine network load balancing for Web-based applications • Application clustering for applications that are failover clustering aware • Host-based failover clustering to make virtual machines highly available

Page 26: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Securing the Hyper-V Server Role

• Apply standard security policies to both host computers and virtual machines• Use a Server Core installation of Windows Server 2008 R2 for host computers• Use the security level of your virtual machines to determine the security level

of your management operating system • Do not give virtual machine administrators permissions on the management

operating system • Configure the network settings to enhance security • Use BitLocker Drive Encryption to protect resources

Consider the following:

Page 27: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Installing Hyper-V on a Windows Server 2008 R2 Host

Verify the status of the Hyper-V Virtual Machine Management Service by using the Services snap-in

Hypervisor must be installed and running to start virtual machines

üü

üü

Hyper-V is installed as a server roleüü

Page 28: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Management tools:

Tools for Managing the Hyper-V Role

Remote Desktop Protocol

Windows Vista SP1: RSAT download available

Windows 7: RSAT download available

Windows Server 2008 R2: Add feature using Server Manager

üü

üü

üü

üü

Page 29: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Demonstration: Installing the Hyper-V Server RoleDemonstration: Remote

Administration

Page 30: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Design Considerations for External, Internal, and Private Virtual Networks

• Use private networks to enable virtual machines to communicate with on virtual machines on the same host

• Use internal networks to enable virtual machines to communicate with other virtual machines on the same host and with the host computer

• Use external networks to enable virtual machines to communicate with other computers on the corporate network

Page 31: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

What Are the Storage Options for Virtual Machines?

IDE SCSI

• Two IDE controllers• Two devices each

• Emulated/synthetic

• Four SCSI controllers• 256 devices each

• Methods supported:• Pass-through• Fixed-disk• Dynamic

• Synthetic

• Methods supported:• Pass-through• Fixed-disk• Dynamic

• Must be used for the boot partition

Page 32: Umar Affandhi - Server Virtualization With Hyper-V

Dynamically expanding virtual hard disk: Fixed-Size virtual hard disk:

Dynamically Expanding Disks vs. Fixed Disks

Benefit:• Efficient use of storage

Drawbacks:• Deferred storage allocation• Fragmentation

Benefits:• Upfront storage resource allocation

Drawback:• Portability

Test & Development Production

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Page 33: Umar Affandhi - Server Virtualization With Hyper-V

Differencing virtual hard disks:

Benefits:• Isolate changes • Can be used for standardized base

images

Drawbacks:• Dynamic size• Cannot be compacted• Increased overhead

Differencing Disks

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Page 34: Umar Affandhi - Server Virtualization With Hyper-V

Pass-through disks:

Pass-Through Disks

Benefits:•Performance• Support for more than 2 terabytes

Drawbacks:•Cannot use virtual machine snapshots•Portability and encapsulation

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Page 35: Umar Affandhi - Server Virtualization With Hyper-V

Server Virtualization with Hyper-VIT-Pro, ADVANCED // Umar Affandhi // MCT, MCITP Trainer, Inixindo

Demonstration: Creating VHDs with the Virtual Disk Wizard

Demonstration: Creating Virtual Machines