Sei sulla pagina 1di 20

Hyper-V Configuration

Microsoft IT Camps - Virtualization

Standardize the Virtual Machine configuration Plan virtual machines for specific server roles by

Guidelines for Designing Virtual Machines

Monitoring the servers before virtualization Configuring each VM with a hardware configuration similar to the hardware required on a physical server

Deploy Windows Server 2008 R2 or Windows 7 virtual machines whenever possible Install Integration Services whenever possible to improve integration between the physical computer and the virtual machine

Deployment Methods
Standard Installation Unattended Installation
UNATTEND.XML answer file for customization Windows System Image Manager (WSIM) to create and manage answer file Task sequence created for customization Integration with System Center ConfigMgr Hyper-V role enabled when host is added VMM 2012 also supports bare-metal deployment

Microsoft Deployment Toolkit 2010

System Center VMM 2008 R2 / 2012

Enabling Hyper-V
Hyper-V is enabled as a server role (restart required) Hypervisor must be enabled and running to start virtual machines Verify the status of the Hyper-V Virtual Machine Management Service

Enabling by Server Manager


Server Role

Enabling by CLI (Server Core)


CMD
> DISM /online /enable-feature /featurename:Microsoft-Hyper-V > start /w ocsetup Microsoft-Hyper-V

PowerShell
> Add-WindowsFeature Hyper-V

Server Manager GUI available with remote management

Enabling on Hyper-V Server


Hyper-V enabled automatically!

Enabling by SCVMM
Will be automatically enabled when adding hosts

Creating Virtual Machines


1. 2. 3. 4. 5. 6. Name Location Memory Network Virtual Hard Disk Operating System

Virtual Machine Installation Methods


Install using CD/DVD Install from an .ISO

Install from a boot floppy

Hyper-V Integration Settings


Integration Components (ICs) makes guest OS aware that it is running in a VM Many ICs come pre-installed with Hyper-V on a simulated Setup Disk which can be installed from the Action menu Integration Service settings managed from the VM settings

Moving VMs to a 2008 R2 Host


Backup / Restore
Varies based on backup provider

Export / Import
Export VMs that are not running
Saves snapshots, VHDs, VMs, config XML

Import VMs
Move VM (keeps same unique ID) Copy VM (creates new unique ID) Duplicate VM (allows for multiple new VMs)

Migration
Server Migration Tools Migration from Virtual Server 2005 R2 is a unique one-way process

Configuring Virtual Networks


Configured from Virtual Network Manager External Networks
VMs can communicate with other computers on the network Only 1 per physical NIC

Internal Networks
VMs can communicate with only other VMs on the same host, and with the host computer

Private Networks
VMs can communicate only with other VMs on the same host

Configuring (MAC) Address Pools


Hyper-V
Microsoft reserved first 3 octets
00-15-5d-**-**-**

SCVMM
Uses broader range than Hyper-V First three octets standard, but changeable
00-1D-D8-**-**-**

Each host has a random pool


00-15-5D-**-**-00 Sysprepping after installing Hyper-V will cause both hosts to have the same pool

Default range of 256 addresses


00-15-5D-**-**-00 00-15-5D-**-**-FF

Default range of 3,998,719 addresses


00-1D-D8-B7-1C-00 00-1D-D8-F4-1F-FF

Will avoid conflicts on the same host


Use SCVMM to avoid conflicts across hosts

If changing the first three octets do not used reserved ranges from Microsoft, VMware or Citrix

Configuring VLAN Tags


Configure VLAN identifiers
On internal and external virtual networks On the network adapters attached to virtual machines

Virtual Network

VM Properties

Configuring Firewall Rules


Automatically configured during Hyper-V role installation
Check Windows Firewall with Advanced Security On Server Core use SConfig tool

Automatically configured when adding a host via VMM Failover Clustering with a File Server or VMM Library requires Remote Volume Management to be unblocked

Creating VHDs
Use the Virtual Disk Wizard
Disk Type: Fixed, Dynamically Expanding, Differencing Name & Location Configure Disk: Size, Contents can be copied from another location

Configuration can be changed using the VM settings


IDE Controller(s) & Location SCSI Controller(s) & Location Media: VHD, Physical hard drive Diskette Drive

Choosing VM Locations
VM Storage
VHDs: C:\Users\Public\Documents\Hyper-V\virtual hard disks VMs (configuration): C:\ProgramData\Microsoft\Windows\Hyper-V
Virtual Machines Snapshots

Considerations
Performance Hard Drive Space Security Shared Storage for Failover Clustering

Configuring iSCSI
Target: Create virtual disks Initiator(s): Request access to disks Target: Accept access request from initiator(s) Initiator(s): Refresh configuration to check connection Initiator(s): Login to the target
Enable automatic reconnections

Servers: Initialize, format and bring disks online Now you can use these disks for your VMs or cluster

Takeaways
There are numerous ways to enable the Hyper-V role Install the Integration Components for a better management experience Moving the VMs to a new host running Windows Server 2008 R2 can be done using several methods

Potrebbero piacerti anche