the busy developer’s guide to virtualization brian a. randell senior consultant mcw technologies...
TRANSCRIPT
![Page 1: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/1.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/2.jpg)
Development Trends
TeamInnovationGrowth Cloud
![Page 3: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/3.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/4.jpg)
Virtualization Provides Flexibility
![Page 5: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/5.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/6.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/7.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/8.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/9.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/10.jpg)
Hardware
ProcessorRAMHard diskVideoNetworking
![Page 11: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/11.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/12.jpg)
demo
Checking for Support
![Page 13: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/13.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/14.jpg)
demo
BCDEDIT
![Page 15: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/15.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/16.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/17.jpg)
demo
Dynamic Memory
![Page 18: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/18.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/19.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/20.jpg)
demo
Hard Disk Performance
![Page 21: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/21.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/22.jpg)
demo
Boot to VHD
![Page 23: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/23.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/24.jpg)
demo
RemoteFX
![Page 25: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/25.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/26.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/27.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/28.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/29.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/30.jpg)
demo
Tips
![Page 31: The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies brianr@mcwtech.com AAP301](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/31.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/32.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/33.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/34.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/35.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/36.jpg)
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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/37.jpg)
© 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](https://reader035.vdocuments.net/reader035/viewer/2022070323/56649da65503460f94a90f0c/html5/thumbnails/38.jpg)