Top Banner
The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies [email protected] AAP301
38

The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies [email protected] AAP301.

Dec 23, 2015

Download

Documents

Clinton Hensley
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

The Busy Developer’s Guide to Virtualization

Brian A. RandellSenior ConsultantMCW [email protected]

AAP301

Page 2: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Development Trends

TeamInnovationGrowth Cloud

Page 3: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Complex World, Full of Technology

Page 4: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Virtualization Provides Flexibility

Page 5: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Session Roadmap

What you need to get startedHardware and software

Working with Virtual MachinesOptimizations

Page 6: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Some Vocabulary

Virtual machine—a “completely isolated guest operating system installation within a normal host operating system”Host—the physical machine providing hardware servicesGuest—a virtual machine running on a host

Page 7: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Different Types of Virtualization

Operating SystemApplicationPresentationDevice

Page 8: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Microsoft Virtualization Technologies

Hyper-VBoot To VHD

App-VRemote Desktop ServicesVirtual PCVirtual ServerWindows Virtual PC

Page 9: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Hyper-V

Microsoft’s enterprise class hypervisor that relies upon processor provided hardware virtualizationRequires 64-bit version of Windows host OS

First made available in Windows Server 2008Updated in Windows Server 2008 R2 and SP1Windows Server 2012 provides the magical 3rd release

Windows 8 Professional and Enterprise support Hyper-V on the client

Page 10: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Hardware

ProcessorRAMHard diskVideoNetworking

Page 11: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Processor

Processor Specific VirtualizationIntel VTAMD-V

What about that extra stuff in my BIOS?

Sockets, Cores, and Hyper-threadingSLAT required for virtualization on Windows 8 Client

Page 12: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

Checking for Support

Page 13: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Set up your host

Configure Hyper-VUse Add/Remote Programs on ClientServer Manager, Add Role

Page 14: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

BCDEDIT

Page 15: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Set up your guests

MSDN and Technet are your friendsProduct ActivationSysprepKeeping things up to date

Page 16: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

RAM

Generally more is betterOptimize for use caseDynamic memory in Hyper-V

Do more with less

Page 17: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

Dynamic Memory

Page 18: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Physical Storage

DASSSDHybridMechanical

Network-basediSCSI on the cheapProduction SANs

Page 19: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Virtual Storage

Virtual Hard DiskTwo formats

VHDLimited to 2 TB in size

VHDX—new for Windows 8 and Windows Server 2012Better resiliencyUp to 64 TB in size

Can be fixed or dynamically expanding in sizeSupport differencing disks and snapshots

Page 20: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

Hard Disk Performance

Page 21: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Boot to VHD

Device VirtualizationPresents a “native” hard drive to your host computerCan use with or without a native installBCDEDIT is your friend

So are BCDBOOT and DISKPARTSystem Configuration Tool (MSCONFIG.EXE) does some things if you need a GUIBoot to VHD supports VHD and VHDX (only Win8/2012)

Can be Dynamic, Fixed, or DiffDrive EXPANDS to full size if a Dynamic or Differencing VHD(x)

Page 22: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

Boot to VHD

Page 23: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Video

Video Cards in general don’t have a huge impactYou’re stuck with the emulated video card

RemoteFX however brings a rich experience to your virtual machines by utilizing your video card’s GPU

Requires Server 2008 R2 SP1 or Server 2012Requires Remote Desktop Services Virtualization Host

Additional Licensing Requirement

Requires a compatible video card

Page 24: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

RemoteFX

Page 25: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Tips

VM CreationSysprep is your friendDiff drives are another great feature

SnapshotsProvide your VMs until UNDO and REDOLimited to 50 per VMEat disk spaceCapture both data and configuration changes

Page 26: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Deleting Virtual Machines

Deleting the Virtual Machine from the console does not remove it’s filesDeleting a Virtual Machine with Snapshots will cause the snapshot tree to merge with the parent VHD

Can take a LONG TIME to complete if what you really want is to just get the thing removed

Two strategiesDelete the snapshots from the bottom up firstApply the root snapshot and then delete the tree (my fav)

Page 27: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Tips

When using Boot to VHD make sure you use fixed size drives unless you’re really going to be carefulWatch out for drives > 2 TB pre-Windows 8Things that don’t work or work well in virtual machines

Windows Phone ToolsProfilersPrograms that need direct access to hardware

Page 28: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

thumbdrive.vhd

Using SCSI adapters and VHDs makes it easy to hot move your data to & from VMsGreat when you don’t have network connectivityGreat to bring data to each new VM

InstallsSource filesWhatever

Page 29: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Optimize your Dynamic VHDs

Compact is built-in to the Console ToolsOnly does tail end clean up

Use SDELETE from Sysinternals to zero out free space

Page 30: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

Tips

Page 31: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Automation

Hyper-V exposes a WMI interface on all versionsSCVMM 2008 and later offer PowerShell CmdletsHyper-V on Windows 8 also provides in box PowerShell support via CmdLets

Page 32: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

demo

Hyper-V and PowerShell

Page 33: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Good bye

Thank you for coming!Virtualization is for everyoneLive long and prosper

Page 34: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Resources

Connect. Share. Discuss.

http://northamerica.msteched.com

Learning

Microsoft Certification & Training Resources

www.microsoft.com/learning

TechNet

Resources for IT Professionals

http://microsoft.com/technet

Resources for Developers

http://microsoft.com/msdn

Page 35: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

Complete an evaluation on CommNet and enter to win!

Page 36: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

MS Tag

Scan the Tagto evaluate thissession now onmyTechEd Mobile

Page 37: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.

© 2012 Microsoft Corporation. All rights reserved. Microsoft, Windows, Windows Vista 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.

Page 38: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301.