Download presentation
Presentation is loading. Please wait.
Published byCalvin Harrington Modified over 6 years ago
1
9/16/2018 2:12 AM © 2009 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.
2
The Busy Developer’s Guide to Virtualization
9/16/2018 2:12 AM The Busy Developer’s Guide to Virtualization Brian A. Randell Senior Consultant MCW Technologies © 2007 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.
3
Development Trends Growth Innovation Team Cloud
4
Complex World, Full of Technology
5
Virtualization Provides Flexibility
6
Session Roadmap What you need to get started
Hardware and software Working with Virtual Machines Optimizations
7
Some Vocabulary Virtual machine—a “completely isolated guest operating system installation within a normal host operating system” Host—the physical machine providing hardware services Guest—a virtual machine running on a host
8
Different Types of Virtualization
Operating System Application Presentation Device
9
Microsoft Virtualization Technologies
Hyper-V Native-Boot Virtual Hard Disk Also known as “boot-to-VHD” App-V Remote Desktop Services Virtual PC Virtual Server Windows Virtual PC
10
Hyper-V Microsoft’s enterprise class hypervisor that relies upon processor provided hardware virtualization Two versions A role of 64-bit versions of Windows host OS First made available in Windows Server 2008 Updated in Windows Server 2008 R2/SP1 Windows Server 2012 is that magical 3rd release A separate, free server product Windows 8 Professional and Enterprise support running Hyper-V on the client
11
Set up your host Configure Hyper-V Use Add/Remote Programs on Client
Server Manager, Add Role
12
demo Installing Hyper-V 9/16/2018 2:12 AM
© 2007 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.
13
Hardware Processor RAM Hard disk Video Networking
14
Processor Processor Specific Virtualization
Intel VT AMD-V What about that extra stuff in my BIOS? SLAT required for virtualization on Windows 8 Client
15
BIOS Settings
16
demo Checking for Support 9/16/2018 2:12 AM
© 2007 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.
17
RAM Generally more is better Optimize for use case
18
Physical Storage Direct Attached Storage Network-based SSD Hybrid
Mechanical Network-based iSCSI on the cheap Production SANs (fibre channel, etc.) SMB 3.0 when used with Windows Server 2012 allows you to run VMs right over the wire
19
Performance Comparison
20
Video Video Cards in general don’t have a huge impact
You’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 2012 Requires Remote Desktop Services Virtualization Host Additional Licensing Requirement Requires a compatible video card Watch VIR313 from Tech Ed 2012 North America or Tech Ed 2012 Europe via Channel 9
21
Create Your First Guest
9/16/2018 2:12 AM demo Create Your First Guest © 2007 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.
22
Creating a guest Need a supported operating system Questions to answer
Yes Hyper-V supports Linux too Questions to answer How many virtual processors? How much RAM? What kind and how many disks? What about networks? Getting Connected
23
Virtual Processors Hyper-V “virtualizes” the processor
The VM sees the real “type” of processor you have Sockets, Cores, and Hyper-threading … oh my! (S(n) * C(n)) * HT(1,2) = logical processors Hyper-V on Windows 8/2012 supports 320 logical processors; up from 64 on Server 2008 R2 SP1 Use Resource Control to balance usage across VMs
24
demo Virtual Processors 9/16/2018 2:12 AM
© 2007 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.
25
Memory Windows 8/2012 guests support up to 1 TB of RAM
VMs can have static or dynamic memory Dynamic Memory requires guest operating system support With dynamic memory, memory usage can grow and shrink Depending upon configuration, Hyper-V may allocate a bin file to save in memory state Can turn off in Windows 8/2012
26
9/16/2018 2:12 AM demo Memory © 2007 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.
27
Virtual Storage Virtual Hard Disk Two formats
VHD—backwards compatible; limited to 2 TB in size VHDX—Better resiliency and up to 64 TB in size VHDX is new for Windows 8 and Windows Server 2012 Can be fixed or dynamically expanding in size Can be connected to IDE or SCSI interface IDE to boot SCSI gives hot add/remove
28
Differencing Drives Parent Child Grand Child
A virtual hard disk that is a child of another is a differencing drive (“diff drive”) You can chain one diff drive to another You should only ever change the tip of the chain You can merge children with their parent(s) Parent Child Grand Child
29
9/16/2018 2:12 AM demo VHDs © 2007 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.
30
Networking Hyper-V supports virtual switches and virtual NICs
Three Network Types from the host External Internal Private Windows 8 brings official Wi-Fi support VMs can have multiple adapters; two types exists Network Legacy Network Adapter
31
9/16/2018 2:12 AM demo Networks © 2007 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.
32
Getting Connected Hyper-V supports a direct VMBus video interface using RDP via Virtual Machine Connection (VMConnect) Nice access to common commands (start, stop, snapshot, etc.) Can connect without network connectivity Limited clipboard support Limited resolutions RDP generally more flexible for day to day use
33
But wait … … there’s more
34
Boot to VHD Device Virtualization
Presents a “native” hard drive to your host computer Boot to VHD supports VHD and VHDX (only Win8/2012) Can be Dynamic, Fixed, or Diff Drive EXPANDS to full size if a Dynamic or Differencing VHD(x) Requires Windows 7 EE/UE, Windows 8, Server 2008/2012 Can use with or without a native install
35
Boot to VHD Tools BCDEDIT allows you to configure your native boot settings Run as Administrator from command-line BCDBOOT creates configuration with one command DISKPART lets you create / manage VHDs from Windows as well as WinPE System Configuration Tool (MSCONFIG.EXE) does some things if you need a GUI
36
demo Boot to VHD
37
Get Simple UNDO Support
Virtual PC had an undo feature Hyper-V doesn’t … exactly …
38
Snapshots Snapshots Windows 8 brings Hyper-V Live Merge
Provide your VMs until UNDO and REDO Limited to 50 per VM Eat disk space Capture both data and configuration changes Windows 8 brings Hyper-V Live Merge
39
demo Snapshots
40
Deleting Virtual Machines
Deleting the Virtual Machine from the console does not remove it’s files Deleting 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 strategies Delete the snapshots from the bottom up first Apply the root snapshot and then delete the tree (my favorite)
41
Other Tips When using Boot to VHD consider using fixed size VHDs
Unless you’re really going to be careful Watch out for drives > 2 TB pre-Windows 8 Things that don’t work or work well in virtual machines Windows Phone Tools Profilers Programs that need direct access to hardware
42
thumbdrive.vhd Using SCSI adapters and VHDs makes it easy to hot move your data to & from VMs Great when you don’t have network connectivity Great to bring data to each new VM Installs Source files Whatever
43
Optimize your Dynamic VHDs
Compact is built-in to the Console Tools Only does tail end clean up Use SDELETE from Sysinternals to zero out free space
44
Building Guests Better
MSDN and Technet are your friends Product Activation Sysprep is your friend Diff drives are another related feature Keeping things up to date VMs need to be patched just like “real” machines WSUS Offline Update Thanks Richard Knight
45
9/16/2018 2:12 AM demo Tips © 2007 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.
46
Automation Hyper-V exposes a WMI interface on all versions
SCVMM 2008 and later offer PowerShell Cmdlets Hyper-V on Windows 8 also provides in box PowerShell support via CmdLets
47
Hyper-V and PowerShell
9/16/2018 2:12 AM demo Hyper-V and PowerShell © 2007 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.
48
Good bye Thank you for coming! Please fill out your evaluations!
4 is best for overall 5 for other questions Virtualization is for everyone … especially developers! Live long and prosper!
49
Resources Learning TechNet http://europe.msteched.com
Connect. Share. Discuss. Microsoft Certification & Training Resources TechNet Resources for IT Professionals Resources for Developers
50
Submit your evals online
9/16/2018 2:12 AM Evaluations Submit your evals online © 2007 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.
51
9/16/2018 2:12 AM © 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. © 2009 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.
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.