Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to...

52
Microsoft Virtual Academy Hyper-V Management Symon Perriman Jeff Woolsey Technical Evangelist Principal Program Manager

Transcript of Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to...

Page 1: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

MicrosoftVirtual Academy

Hyper-V Management

Symon Perriman Jeff WoolseyTechnical Evangelist Principal Program Manager

Page 2: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

MicrosoftVirtual Academy

First Half Second Half

(01) Introduction to Microsoft Virtualization

(05) Hyper-V Management

(02) Hyper-V Infrastructure (06) Hyper-V High Availability

and Live Migration

(03) Hyper-V Networking (07) Integration with System Center

2012 Virtual Machine Manager

(04) Hyper-V Storage(08) Integration with Other

System Center 2012 Components

** MEAL BREAK **

Introduction to Hyper-V Jump Start

Page 3: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

MicrosoftVirtual Academy

• Management options• Hyper-V Manager• Moving to Windows

Server 2012 Hyper-V• Creating virtual

machines• Resource pools• Operating system

support

Agenda• Cloning virtual

machines• Management tools• Hyper-V snapshots• Windows PowerShell• Security• RemoteFX

Page 4: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Hyper-V Manager

Command Line

WMI

Integrated Tool Experience

Numerous Management Options

System Center 2012 - VirtualMachine Manager

System Center 2012 -Operations Manager

System Center 2012 - App Controller

System Center 2012 - Configuration Manager

System Center 2012 - Data Protection Manager

System Center 2012 - Orchestrator

Failover Cluster Manager

Windows PowerShell

RSAT

Page 5: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Hyper-V Manager

Page 6: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Hyper-V Manager

Hyper-V Manager Console

Hyper-V VM settings

Page 7: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Overview of Hyper-V Settings

Hyper-V servers Listing of virtualmachines

Hyper-V server actions

Virtual machine actions

Snapshots

Details of selected VM

Page 8: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Default folder locations

Overview of Server Settings

User settings

Keyboard actions

Page 9: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

VM Connection ApplicationUsed to manage local or remote virtual machinesInstalled with Hyper-V or RSATUses RDP on port 2179Uses the mstsc.exe Active-X controlRequires port 2179 open on Windows Firewall

Page 10: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Moving to Windows Server 2012 Hyper-V

Page 11: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Moving VMs to a Windows Server 2012 HostExport / ImportExport VMs that are not running (Export-VM)

Saves snapshots, VHDs, VMs, config XMLImport VMs (Import-VM)

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

Backup / RestoreVaries based on backup provider

MigrationServer migration tools

Page 12: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Creating Virtual Machines

Page 13: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Creating Virtual MachinesNameLocationMemoryNetworkVirtual hard diskOperating system

New-VM, New-VHD, New-VMSwitch

Page 14: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Virtual Machine Installation Methods

Install from an .ISO

Install from a boot floppy

Install using CD/DVD

Page 15: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Dynamic MemoryHyper-V memory enhancement introduced in Windows Server 2008 R2 SP1Higher VM consolidation ratios on same hardware with minimal performance impactMemory is pooled and dynamically distributed across VMs to allow it to easily grow or shrink with no service interruptionActive Memory addition

Memory is added immediately when VM needs itPassive Memory reclamation

Unutilized memory is collected every 5 minutes

Page 16: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Dynamic MemorySupports both server and desktopVM Guests are enlightenedGuest Integration Components installedMust be updated to 2012

Memory is added and removed via synthetic memory driver (memory VSC) support Can be done while the VM is running

Page 17: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Dynamic Memory SettingsStartup RAM: Memory needed to boot VMGuest OS + AppsDefault: 512 MB

Maximum RAM: Memory limit for the VMDefault: 1TB

Memory Buffer: Free memory to try to maintain in the VMEnables responsiveness for workload burstsAllows use for file cache

Memory Priority: Order in which VMs are allocated memoryRange: Low – HighDefault: mid-range

Page 18: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Root Memory ReserveRoot memory reserve is kept for the parent partitionHost reserve amount is automatically calculated based on SLAT capability, total size of host RAM, NUMA architectureNew registry key override added

Allows you to reserve static memory for the parent partitionMay result in less memory being available for VMs

Dynamic Memory allows VMs to push up against the reserve consistentlyNew behavior better protects parent partition from VMs taking too much memoryHost Reserve

VM Overhea

dMemory utilized by VMs

VM Reserve

Page 19: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Operating System Support

Page 20: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Supported Guest Operating SystemsWindows Server 2012, 2008 R2, 2008, 2003 R2Windows Home Server 2011, Small Business Server 2011, MultiPoint ServerWindows 8, Windows 7 , Vista, XP SP2+Ubuntu 12.04, CentOS 5.7+, Redhat 5.7+ and SUSE Linux Server 11 SP2, Open SUSE 12.1Other operating systems no longer supported by Microsoft may still work, but are not officially supportedCurrent list: http://technet.microsoft.com/library/hh831531.aspx

Page 21: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Linux on Hyper-VLinux workloads can be consolidated into VMs running on to a Microsoft hypervisor at no costSupported Linux guest operating systems: Ubuntu 12.04, CentOS 5.7+, Redhat 5.7+ and SUSE Linux Server 11 SP2, Open SUSE 12.1Hyper-V hosted Linux VMs can leverage high-end enterprise features: High Availability Live Migration, Shared Nothing Live Migration VM Replication with Hyper-V Replica

Linux VMs can be managed centrally from System Center 2012 – Virtual Machine Manager (VMM)VM scale improvements (CPU, memory, disk, etc.)

Page 22: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Hyper-V Integration ServicesIntegration Components (ICs) make a guest OS aware that it is running in a VMMany ICs come pre-installed with Hyper-V on a simulated “Setup Disk” which can be installed from the Action menuIntegration service settings managed from the VM settings

Page 23: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Cloning Virtual Machines

Page 24: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Cloning Domain ControllersWindows Server 2012 Hyper-V supports VM-GenerationIDCan clone a DCMust be running Windows Server 2012PDC Emulator role holder must be online and available and running Windows Server 2012Must be a member of the Cloneable Domain Controllers group in ADUses New-ADDCCloneConfig cmdlet in Windows PowerShell

Page 25: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Management Tools

Page 26: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Failover Cluster ManagerIntegrated with Hyper-VDeploy, configure, manage and connect to VMs from this interfaceLaunch Hyper-V wizardsSupports 8000 VMs per clusterManage clustered VMs using Failover Cluster Manager or System Center 2012 – Virtual Machine Manager

Move-ClusterVirtualMachine Update-ClusterVirtualMachineConfigurationAdd-ClusterVirtualMachineRole

Page 27: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Windows PowerShellServer Core, Hyper-V Server 2012 & RSAT Remoting supportHyper-V integration

Also supports failover clustering and Virtual Machine Manager

Page 28: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Windows Management InstrumentationWMI APINative WMI scriptingCommunity Windows PowerShell LibraryVMM 2012 Windows PowerShell Library

Useful when VMM server not availableUse WMIC (WMI Command Line) to access Hyper-VAlso supports failover clustering and Virtual Machine Manager

Page 29: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Remote Server Administration ToolsRSAT allows server management on clientConnect to hostsFree downloadhttp://www.microsoft.com/en-au/download/details.aspx?id=28972

Must enable feature on clientSelect Role Administration ToolsSelect Hyper-V Tools

Page 31: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Remote ConnectionsRemote Desktop ProtocolLaunch MSTSC(.exe)Connect to Hosts or VMs

Hyper-V ManagerRight-click Hyper-V ManagerClick Connect to ServerConnect to hostsSimilar experience with RSAT

Page 32: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Virtual Machine ManagerCentralized virtual machine deployment and management for Hyper-V, Virtual Server, failover clusters, and VMware ESX serversRapid provisioning of new and virtual machines with templatesCentralized library of infrastructure componentsAllow for delegated management and access of VMs

Page 33: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Hyper-V Snapshots

Page 34: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Hyper-V VM SnapshotsSnapshotsA point-in-time copy of a virtual machineDo not affect the running state of a virtual machineSnapshot any guest OSVM can be running, off, stopped or saved, but not pausedIn VMM, snapshots are called checkpoints

Snapshot filesVM configuration .XML file (*.xml)Save state files (*.vsv)VM memory contents (*.bin)Snapshot differencing disk (*.avhd)

In Windows Server 2012, when a snapshot is deleted, the .avhd files are deleted without needing to shut down the VM

Checkpoint-VM, Export-VMSnapshot, Get-VMSnapshot, Rename-VMSnapshot, Remove-VMSnapshot

Page 35: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Snapshot WorkflowPause the VMCreate differencing disk for VHDMake a copy of the VM configuration fileResume the VMSave contents of the VM to disk

Page 36: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Snapshot Design ConsiderationsCan now be used in production environments 2012 has support for snapshot restoration of domain controllers – but everything has to be 2012

Should be used in testing and training environments May consume a significant amount of hard disk space Can have unexpected results when deleted Cannot be used with pass-through disksConfigure storage location before taking first snapshot

Page 37: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Managing Hyper-V Snapshots Create snapshotApply – Erases current state but prompts to take a new snapshotRevert – Returns VM to last snapshotDelete – Will not impact other snapshotsDeleting subtree removes all down-level snapshots

Merging – Deleting current snapshot will merge with parentSettings – Can only update name & notesRenameExport

Page 38: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Windows PowerShell

Page 39: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Common Windows PowerShell CmdletsNew-VM Get-VM

Remove-VM Import-VM

Export-VM Checkpoint-VM

Export-VMSnapshot Get-VMSnapshot

Convert-VHD New-VHD

Merge-VHD Mount-VHD

Start-VM Stop-VM

Save-VM Suspend-VM

Get-VMHost Set-VMHost

Set-VMResourcePool Set-VMReplication

Page 40: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Security

Page 41: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Keep the Parent SimpleUse server coreReallyLess code

Fewer patchesLess third party code

Less temptation to install other applications / workloads

Keep the parent for Hyper-V onlyDon’t install other rolesDon’t install third-party programsDon’t browse the web

Page 42: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Keep the Parent Up-to-dateSimple. Obvious. Important.Microsoft provides numerous options:Windows Update

Built-in to Windows & Windows ServerWindows Server Update Services (WSUS)

Built-in to Windows ServerSystem Center Configuration Manager

Centralized management for wide ranging systems, devices and endpoints

Page 43: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Delegate AdministrationParent Administrator = Power over everythingParent Administrator not needed for virtualization administrationCan be done with in-box tools or with SCVMM

Page 44: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Keep Guests Up-to-dateSimple. Obvious. Important.Microsoft provides numerous options:Windows Update

Built-in to Windows & Windows ServerWindows Server Update Services (WSUS)

Built-in to Windows ServerSystem Center Configuration Manager

Centralized management for wide ranging systems, devices and endpoints

Page 45: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Windows Server Compliance Manager

Hyper-V support built-inProvides centralized security baseline management featuresHelp you plan, deploy, operate and manage security baselines

Free Downloadhttp://technet.microsoft.com/en-us/library/gg236605.aspx

Page 46: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Backup and Restore with Windows Server BackupUses Volume Shadow ServiceWSB is volume-based backupMust backup all volumes hosting VM files

Online backup, unlessIntegration Services not installedOS does not support VSSDynamic Disks

WSB now has support for VMs on Cluster Shared Volumes (CSV)

Page 47: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

Resource MeteringAllows organizations to chargeback usage to business units or external customers with historical dataUses Windows PowerShell cmdlets or WMI callsMeasurements available:

Average CPU usageAverage physical memory usageMinimum/Maximum memory usage Maximum amount of disk space allocated to a virtual machineTotal incoming/outgoing network traffic for a virtual network adapter

Page 48: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

RemoteFX

Page 49: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

RemoteFXHardware/Software GPUAdaptive graphicsSupport for WAN connectionsSupport for Multi-TouchUSB redirectionMedia remoting

Page 50: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

• There are numerous management for Hyper-V including server tools, client tools, scripting and remote management

• Use Failover Cluster Manager when working with clustered VMs

• Use System Center 2012 - Virtual Machine Manager when working with a large number of VMs

Takeaways

Page 51: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.
Page 52: Microsoft Virtual Academy. Microsoft Virtual Academy First HalfSecond Half (01) Introduction to Microsoft Virtualization(05) Hyper-V Management (02) Hyper-V.

©2013 Microsoft Corporation. All rights reserved. Microsoft, Windows, Office, Azure, System Center, Dynamics and other product names are or may be registered trademarks and/or trademarks in the U.S. and/or other countries. The information herein is for informational purposes only and represents the current view of Microsoft Corporation as of the date of this presentation. Because Microsoft must respond to changing market conditions, it should not be interpreted to be a commitment on the part of Microsoft, and Microsoft cannot guarantee the accuracy of any information provided after the date of this presentation. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.