SlideShare a Scribd company logo
1 of 38
Module   3 Creating and Configuring Virtual Hard Disks and Virtual Machines
Module Overview ,[object Object],[object Object],[object Object],[object Object],[object Object]
Lesson  1 : Creating and Configuring Virtual Hard Disks  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
What Are the Storage Options for Virtual Machines? IDE SCSI ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Dynamically Expanding Disks vs. Fixed Disks  Dynamically expanding virtual hard disk: Fixed-Size virtual hard disk: Test  & Development Production ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Differencing Disks Differencing virtual hard disks: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Pass-through Disks Pass-through disks: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Host Computer Considerations for Virtual Hard Drives Considerations: ,[object Object],[object Object],[object Object],[object Object],[object Object]
Using and Configuring iSCSI Storage iSCSI Initiator iSCSI storage: ,[object Object],[object Object],[object Object],[object Object]
Demonstration: Creating Virtual Hard Disks with the Virtual Disk Wizard ,[object Object],[object Object],[object Object],[object Object],[object Object]
Demonstration: Inspecting and Editing Virtual Disks ,[object Object],[object Object],[object Object],[object Object],[object Object]
Lesson 2: Creating and Configuring Virtual Machines ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Settings for Virtual Machines Virtual Machine Settings
What Are the Components of a Virtual Machine? Virtual Machine components include: ,[object Object],[object Object],[object Object],Default configuration options: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Demonstration: New Virtual Machine Wizard ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Demonstration: Hyper-V Integration Settings ,[object Object]
Exporting and Importing Virtual Machines in Hyper-V  Originating Computer Exported Virtual Machine Destination Computer Imported Virtual Machine
Virtual Machine Installation Methods Install using  CD/DVD Install from  an .ISO Install from a  boot floppy
Considerations for Migrating Legacy Virtual Machines  Virtual Server 2005 Hyper-V Virtual Machine Additions Integration Services 1 2 3 4
Lesson 3: Managing Virtual Machine Snapshots ,[object Object],[object Object],[object Object],[object Object]
What Are Hyper-V Virtual Machine Snapshots?  Snapshots: ,[object Object],[object Object],Snapshot files: ,[object Object],[object Object],[object Object]
Design Considerations for Using Snapshots in Hyper-V Snapshots: ,[object Object],[object Object],[object Object],[object Object]
Implementing Hyper-V Snapshots  Manage snapshot options: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Demonstration: Using Snapshots in Hyper-V R2 ,[object Object],[object Object],[object Object],[object Object],[object Object]
 
Lesson 4: Working with the Virtual Machine Connection Application ,[object Object],[object Object]
Virtual Machine Connection Application Virtual Machine Connection: ,[object Object],[object Object],[object Object],[object Object],[object Object]
Demonstration: Managing the Virtual Machine Connection Application ,[object Object],[object Object],[object Object]
Lesson 5: Planning Virtualization for Applications ,[object Object],[object Object],[object Object],[object Object],[object Object]
Planning Hyper-V Hosts  When planning Hyper-V hosts: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Guidelines for Designing Virtual Machines Guidelines: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Designing Virtual Machines for SQL Server Guidelines: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Designing Virtual Machines for Exchange Server When designing virtual machines for Exchange Server: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Designing Virtual Machines for SharePoint When designing virtual machines for SharePoint: ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
L ab : Creating Virtual Hard Disks and Virtual Machines ,[object Object],[object Object],[object Object],[object Object],Logon information Estimated time: 60 minutes Virtual machine NYC-Host1, NYC-Host2    User name Administrator Password Pa$$w0rd
Lab Scenario ,[object Object]
Lab Review ,[object Object],[object Object]
Module Review and Takeaways ,[object Object],[object Object],[object Object],[object Object],[object Object]

More Related Content

What's hot

VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
glbsolutions
 
E2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane ThirionE2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane Thirion
sthirion
 
VMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A TutorialVMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A Tutorial
Richard McDougall
 

What's hot (20)

virtualization in cloud technology
virtualization in cloud technologyvirtualization in cloud technology
virtualization in cloud technology
 
VMware Advance Troubleshooting Workshop - Day 6
VMware Advance Troubleshooting Workshop - Day 6VMware Advance Troubleshooting Workshop - Day 6
VMware Advance Troubleshooting Workshop - Day 6
 
Linux, Virtualisation, and Clouds
Linux, Virtualisation, and CloudsLinux, Virtualisation, and Clouds
Linux, Virtualisation, and Clouds
 
Configure and Manage Virtualization on different Platforms
Configure and Manage Virtualization on different Platforms Configure and Manage Virtualization on different Platforms
Configure and Manage Virtualization on different Platforms
 
Kvm virtualization in_rhel_7
Kvm virtualization in_rhel_7Kvm virtualization in_rhel_7
Kvm virtualization in_rhel_7
 
VMware Performance Troubleshooting
VMware Performance TroubleshootingVMware Performance Troubleshooting
VMware Performance Troubleshooting
 
Krenel Based Virtual Machine In Centos7
Krenel Based Virtual Machine In Centos7Krenel Based Virtual Machine In Centos7
Krenel Based Virtual Machine In Centos7
 
VMware Advance Troubleshooting Workshop - Day 5
VMware Advance Troubleshooting Workshop - Day 5VMware Advance Troubleshooting Workshop - Day 5
VMware Advance Troubleshooting Workshop - Day 5
 
E2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane ThirionE2E PVS Technical Overview Stephane Thirion
E2E PVS Technical Overview Stephane Thirion
 
VMware vSphere Networking deep dive
VMware vSphere Networking deep diveVMware vSphere Networking deep dive
VMware vSphere Networking deep dive
 
VMware vSphere 5 seminar
VMware vSphere 5 seminarVMware vSphere 5 seminar
VMware vSphere 5 seminar
 
VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4VMware Advance Troubleshooting Workshop - Day 4
VMware Advance Troubleshooting Workshop - Day 4
 
Top Troubleshooting Tips and Techniques for Citrix XenServer Deployments
Top Troubleshooting Tips and Techniques for Citrix XenServer DeploymentsTop Troubleshooting Tips and Techniques for Citrix XenServer Deployments
Top Troubleshooting Tips and Techniques for Citrix XenServer Deployments
 
VMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A TutorialVMware Performance for Gurus - A Tutorial
VMware Performance for Gurus - A Tutorial
 
Optimizing K2000 Workflow
Optimizing K2000 WorkflowOptimizing K2000 Workflow
Optimizing K2000 Workflow
 
Citrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning servicesCitrix PVS Advanced memory and storage considerations for provisioning services
Citrix PVS Advanced memory and storage considerations for provisioning services
 
Hyper-V vNext
Hyper-V vNextHyper-V vNext
Hyper-V vNext
 
Advancedtroubleshooting 101208145718-phpapp01
Advancedtroubleshooting 101208145718-phpapp01Advancedtroubleshooting 101208145718-phpapp01
Advancedtroubleshooting 101208145718-phpapp01
 
Scaling Xen within Rackspace Cloud Servers
Scaling Xen within Rackspace Cloud ServersScaling Xen within Rackspace Cloud Servers
Scaling Xen within Rackspace Cloud Servers
 
Principles of Virtualization - Introduction to Virtualization Software
Principles of Virtualization - Introduction to Virtualization Software Principles of Virtualization - Introduction to Virtualization Software
Principles of Virtualization - Introduction to Virtualization Software
 

Viewers also liked (13)

10215 A 10
10215 A 1010215 A 10
10215 A 10
 
10215 A 04
10215 A 0410215 A 04
10215 A 04
 
10215 A 11
10215 A 1110215 A 11
10215 A 11
 
10215 A 05
10215 A 0510215 A 05
10215 A 05
 
10215 A 07
10215 A 0710215 A 07
10215 A 07
 
10215 A 13
10215 A 1310215 A 13
10215 A 13
 
10215 A 12
10215 A 1210215 A 12
10215 A 12
 
10215 A 02
10215 A 0210215 A 02
10215 A 02
 
10215 A 08
10215 A 0810215 A 08
10215 A 08
 
10215 A 01
10215 A 0110215 A 01
10215 A 01
 
10215 A 06
10215 A 0610215 A 06
10215 A 06
 
10215 A 09
10215 A 0910215 A 09
10215 A 09
 
Stratejik İnsan Kaynakları Yönetimi
Stratejik İnsan Kaynakları Yönetimi Stratejik İnsan Kaynakları Yönetimi
Stratejik İnsan Kaynakları Yönetimi
 

Similar to 10215 A 03

Sdwest2008 V101 F Dpowerpoint Final
Sdwest2008 V101 F Dpowerpoint FinalSdwest2008 V101 F Dpowerpoint Final
Sdwest2008 V101 F Dpowerpoint Final
Stephen Rose
 
Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...
Louis Göhl
 
Virtualization_TechTalk
Virtualization_TechTalkVirtualization_TechTalk
Virtualization_TechTalk
Arif k
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
Saravanan G
 
Microsoft (Virtualization 2008)
Microsoft (Virtualization 2008)Microsoft (Virtualization 2008)
Microsoft (Virtualization 2008)
Vinayak Hegde
 

Similar to 10215 A 03 (20)

Sdwest2008 V101 F Dpowerpoint Final
Sdwest2008 V101 F Dpowerpoint FinalSdwest2008 V101 F Dpowerpoint Final
Sdwest2008 V101 F Dpowerpoint Final
 
Ws80 using VMware
Ws80 using VMwareWs80 using VMware
Ws80 using VMware
 
MCSA 70-412 Chapter 11
MCSA 70-412 Chapter 11MCSA 70-412 Chapter 11
MCSA 70-412 Chapter 11
 
Ws90 using
Ws90 usingWs90 using
Ws90 using
 
Microsoft Windows Server 2012 Early Adopter Guide
Microsoft Windows Server 2012 Early Adopter GuideMicrosoft Windows Server 2012 Early Adopter Guide
Microsoft Windows Server 2012 Early Adopter Guide
 
Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...Storage and hyper v - the choices you can make and the things you need to kno...
Storage and hyper v - the choices you can make and the things you need to kno...
 
Server virtualization 3
Server virtualization   3Server virtualization   3
Server virtualization 3
 
Hyper-V 2008 R2 Best Practices
Hyper-V 2008 R2 Best PracticesHyper-V 2008 R2 Best Practices
Hyper-V 2008 R2 Best Practices
 
Virtualization_TechTalk
Virtualization_TechTalkVirtualization_TechTalk
Virtualization_TechTalk
 
Building your own Desktop Cloud Environment
Building your own Desktop Cloud EnvironmentBuilding your own Desktop Cloud Environment
Building your own Desktop Cloud Environment
 
NTC 324 Enhance teaching - snaptutorial.com
NTC 324  Enhance teaching - snaptutorial.comNTC 324  Enhance teaching - snaptutorial.com
NTC 324 Enhance teaching - snaptutorial.com
 
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage ServiceQuick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
Quick-Start Guide: Deploying Your Cloudian HyperStore Hybrid Storage Service
 
WindowsAzureSDK1.7
WindowsAzureSDK1.7WindowsAzureSDK1.7
WindowsAzureSDK1.7
 
Microsoft (Virtualization 2008)
Microsoft (Virtualization 2008)Microsoft (Virtualization 2008)
Microsoft (Virtualization 2008)
 
Exploring App fabric
Exploring App fabricExploring App fabric
Exploring App fabric
 
The Unofficial VCAP / VCP VMware Study Guide
The Unofficial VCAP / VCP VMware Study GuideThe Unofficial VCAP / VCP VMware Study Guide
The Unofficial VCAP / VCP VMware Study Guide
 
Virtualization Uses - Server Consolidation
Virtualization Uses - Server Consolidation Virtualization Uses - Server Consolidation
Virtualization Uses - Server Consolidation
 
Workstation pro-12 guía
Workstation pro-12 guíaWorkstation pro-12 guía
Workstation pro-12 guía
 
Lecture 1.pptx
Lecture 1.pptxLecture 1.pptx
Lecture 1.pptx
 
NTC 324 Education Specialist / snaptutorial.com
NTC 324 Education Specialist / snaptutorial.comNTC 324 Education Specialist / snaptutorial.com
NTC 324 Education Specialist / snaptutorial.com
 

More from Juanchi_43

More from Juanchi_43 (8)

System Center 2012
System Center 2012System Center 2012
System Center 2012
 
Configurando Private Cloud con System Center 2012
Configurando Private Cloud con System Center 2012Configurando Private Cloud con System Center 2012
Configurando Private Cloud con System Center 2012
 
10215 A 14
10215 A 1410215 A 14
10215 A 14
 
10215 A 00
10215 A 0010215 A 00
10215 A 00
 
VDI Infraestructure
VDI InfraestructureVDI Infraestructure
VDI Infraestructure
 
020811 Introduction To Virtualization 279337
020811 Introduction To Virtualization 279337020811 Introduction To Virtualization 279337
020811 Introduction To Virtualization 279337
 
Mof
MofMof
Mof
 
ITIL FOUNDATION
ITIL FOUNDATIONITIL FOUNDATION
ITIL FOUNDATION
 

10215 A 03

  • 1. Module 3 Creating and Configuring Virtual Hard Disks and Virtual Machines
  • 2.
  • 3.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13. Settings for Virtual Machines Virtual Machine Settings
  • 14.
  • 15.
  • 16.
  • 17. Exporting and Importing Virtual Machines in Hyper-V Originating Computer Exported Virtual Machine Destination Computer Imported Virtual Machine
  • 18. Virtual Machine Installation Methods Install using CD/DVD Install from an .ISO Install from a boot floppy
  • 19. Considerations for Migrating Legacy Virtual Machines Virtual Server 2005 Hyper-V Virtual Machine Additions Integration Services 1 2 3 4
  • 20.
  • 21.
  • 22.
  • 23.
  • 24.
  • 25.  
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38.

Editor's Notes

  1. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines Presentation: 60 minutes Lab: 60 minutes After completing this module, students will be able to: Create and configure virtual hard disks (VHDs). Create and configure virtual machines. Manage virtual machine snapshots. Work with the virtual machine connection application. Required materials To teach this module, you need the Microsoft® Office PowerPoint® file 10215A_03.ppt. Important: It is recommended that you use PowerPoint 2002 or a later version to display the slides for this course. If you use PowerPoint Viewer or an earlier version of PowerPoint, all the features of the slides might not be displayed correctly. Preparation tasks To prepare for this module: Read all of the materials for this module. Practice performing the demonstrations and the lab exercises. Work through the Module Review and Takeaways section, and determine how you will use this section to reinforce student learning and promote knowledge transfer to on-the-job performance. Make sure that students are aware that there are additional information and resources for the module on the Course Companion CD.
  2. Briefly present the different sections. See if any of the students have worked with snapshots before. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  3. Introduce the lesson content. Emphasize that most of the lesson content centers around planning , which is a very important component of the deployment process. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  4. How is IDE and SCSI implemented in Hyper-V? There are two types of disk controllers that Hyper-V supports: small computer system interface (SCSI) and integrated development environment (IDE). There are two IDE controllers and four SCSI controllers available. Each IDE controller can have two devices. You cannot boot from a SCSI controller, so therefore, an IDE disk is required. If you want a CD-ROM drive, it will consume an IDE device slot. Each SCSI controller can support up to 64 devices. Both SCSI and IDE can support pass-through disks, fixed-size disks, and dynamic disks. The difference between IDE and SCSI is how you implement the controllers. The IDE controller is emulated, whereas the SCSI controller is synthetic. Synthetic and Emulated Devices Synthetic devices are new with Microsoft Hyper-V™, and are designed to have the lowest overhead for devices. These devices package requests and forward them to the StorVSP driver in the root over the Virtual Machine BUS (VMBUS), which then forwards them to the device after any needed processing. Emulated devices, on the other hand, emulate a real piece of hardware. Emulation happens in the vmwp.exe process (one per VM). The most important reason for having emulated devices is to support operating systems that do not have integration components installed. The emulated devices can also be thought of as boot-strapping devices since the preference should be to use the virtual devices. Keep in mind that the boot IDE drive uses a filter driver after boot for improved performance if integration components are installed. The synthetic devices are important because they help reduce the central processing unit (CPU) overhead when accessing a device. The IDE controller implements a well-known IDE controller and this means there is extra processing before the input/output (I/O) is sent to the disk. The SCSI controller is synthetic, not emulated. The SCSI controller uses VMBUS (Virtual Machine BUS). The I/O's pass from the Guest Partition to the root over VMBUS and enter the I/O stack. Once and I/O completes its completion is sent over VMBUS. The VMBUS is a point-to-point memory bus that the Virtualization Service Provider (VSP) and Virtualization Service Client (VSC) use to communicate with each other. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  5. Dynamically Expanding Virtual Hard Disks Dynamically expanding VHDs start off very small (just a few megabytes in size) and grow as data is written them. By default, Hyper-V creates dynamically-expanding virtual hard disks. When you create a dynamically expanding virtual hard disk, you specify a maximum file size. The default maximum size is 127 gigabytes (GB), and they can be as large as 2 terabytes. The maximum size specified at creation restricts how large the virtual hard disk file size can grow. For example, if you create a 127 GB dynamically expanding virtual hard disk, the initial size of the .VHD file is about 3 megabytes (MB). As the virtual machine uses the virtual hard disk, the size of the .VHD file grows as data is written the VHD up to 127 GB. If you hit the limit, you can expand the size through the Hyper-V Disk Wizard. Because dynamically expanding virtual hard disks grow as required, a dynamically expanding virtual hard disk is likely to become fragments on the host computer's physical hard disk. Therefore, depending on how fragmented the host computer's physical hard disk is, it could impact performance depending on the amount of fragmentation. Dynamic VHD Benefits Efficient: Dynamically expanding virtual hard disks grow dynamically as the virtual machine needs more storage. Great for portability. Dynamic VHD Drawbacks Deferred storage allocation: Suppose you create 10 virtual machines with a maximum size of 100 GB each, and you place these on a 500-GB disk. These 10 virtual machines may all fit within 500 GB when you create them. However, over time, as those disks grow, it is possible that they outgrow storage because the disk resources are not allocated upfront. Fragmentation and possibly slight performance impact: Because dynamically-expanding virtual hard disks grow only when needed, they tend to fragment easily. In addition, when the virtual hard disks grow, NTFS file system automatically zeros the new allocation (for security), which has a very small performance overhead.   Dynamic VHD Use Scenario Dynamically expanding virtual hard disks are ideal for use in test and development environments, where performance is not always a factor. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  6. About undo and differencing disks Differencing disks store all state changes to a virtual machine or virtual hard disk in a separate file. This allows you to isolate changes to a virtual machine and keep a virtual hard disk in an unchanged state. Virtual Server 2005 and Virtual PC 2007 use another disk type, called an undo disk. The main difference between an undo disk and a differencing disk is that undo disks apply to all virtual hard disks associated with a virtual machine, and a differencing disk applies to one virtual hard disk only. Windows Server® 2008 Hyper-V does not include the undo disk type, but does introduce a new feature called a snapshot. A snapshot allows you to take a point-in-time snapshot of a virtual machine. All virtual machine state information is saved. At any time, you can revert the virtual machine back to that specific point in time. You cannot specify a size for an differencing disk. Differencing disks are a special type of dynamically expanding disks. The size of any dynamically expanding disk only grows; it does not shrink, even when you delete data. Differencing disks can grow as large as the parent disks to which they are associated. However, unlike dynamically expanding disks, differencing disks cannot be compacted directly. When the parent disk has been updated with the changes stored in the differencing disk the parent disk can be compacted as if it is a dynamically expanding disk. If the parent disk is a fixed-size disk, you can compact it by converting it to a dynamically expanding disk and then compacting the converted disk. Question: In what scenarios would a differencing disk be useful? Answer: A differencing disk provides the ability to have a standardized parent disk, which would remain unchanged. You then could create multiple child disks based on the parent disk. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  7. Pass-through disks With both dynamic and fixed-size virtual hard disks, the VHD is a file on disk. Pass-through disks are a different type of storage option where a Logical Unit Number (LUN) is associated with a virtual machine and the virtual machine writes directly to the LUN without encapsulation in a virtual hard disk. With pass-through disks, there is no VHD. Pass-through disk benefits: Performance: Like fixed-size disks, pass-through disks are very fast. Keep in mind that fixed-size virtual hard disks perform so well that they are about equal to pass-through disks. This is testament to the new Hyper-V driver architecture. Support for greater than 2 terabytes per disk: VHDs are limited to 2 terabytes each. With pass-through disks, the limit per disk is whatever the guest operating system supports and the size of your physical storage.   Pass-through disk drawbacks: Cannot use virtual machine snapshots: When you create a virtual machine snapshot, Hyper-V is asynchronously saving the state of a virtual machine and creating a differencing disk. You cannot do that with a physical disk. Portability and encapsulation: VHDs encapsulate everything in files, which makes them portable.   Question: In what scenario would a pass-through disk be ideal? Answer: A pass-through disk is ideal if you seek better performance than VHDs offer. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  8. Use drives that are at least 10,000, preferably 15,000 RPM as this will improve performance. Use a redundant array of independent disks (RAID) 1 (Mirror) array for the host operating system. Use Internet SCSI (iSCSI) with the exiting network to improve performance. Use storage area networks (SANs) to host and store virtual machines. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  9. iSCSI is a standard developed to enable transmission of SCSI block commands over an existing IP network using the TCP/IP protocol. The advantage of iSCSI is that it allows organizations the capability of delivering both messaging traffic and block-based storage over an existing IP network without having to install a separate, expensive Fibre Channel network. The iSCSI target provides block-level storage as disk volumes. You can mount these disk volumes with any client running an iSCSI initiator. The iSCSI target uses space that is allocated as VHDs within the Windows ® Storage Server. Hyper-V can take advantage of the capabilities and use iSCSI as a storage solution for virtual machines and virtual hard drives. You can use SANs and iSCSI to optimize hard disk usage, and improve virtual machine and hard disk performance. The advantage in using a SAN is that it spreads disk usage across many physical drives. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  10. D emonstration steps: Creating a dynamic virtual disk 1. On NYC-Host1, in Hyper-V Manager , in the Actions pane, click New , and then click Hard Disk . 2. On the Before You Begin page, and then click Next . 3. On the Choose Disk Type page, click Dynamically expanding , and then click Next . 4. On the Specify Name and Location page, in the Name field, type Demo3-Dynamic.vhd , and in the Location field, type c:\\Virtual Machines , and then click Next . 5. On the Configure Disk page, leave the default values, and then click Next . 6. On the Completing the New Virtual Disk Wizard page, click Finish . Creating a fixed virtual disk: 1. In Hyper-V Manager , in the Actions pane, click New, and then click Hard Disk . 2. On the Before You Begin page, and then click Next . 3. On the Choose Disk Type page , click Fixed size , and then click Next. 4. On the Specify Name and Location page, in the Name field, type Demo3-Fixed.vhd , and in the Location field type c:\\Virtual Machines, and then click Next . 5. On the Configure Disk page, change the Create a new blank virtual disk size to 5 GB , and then click Next . 6. On the Completing the New Virtual Disk Wizard page, click Finish . Creating a differencing virtual disk: 1. In Hyper-V Manager , in the Actions pane, click New , and then click Hard Disk . 2. On the Before You Begin page, click Next . 3. On the Choose Disk Type page, click Differencing , and then click Next . 4. On the Specify Name and Location page, in the Name field, type Demo3-Diff-drive.vhd , and in the Location field type c:\\Virtual Machines, and then click Next . 5. On the Configure Disk page, click Browse . Browse to E:\\Program Files\\Microsoft Learning\\Base . Click Base10A-WS08R2-HV.vhd , click Open , and then click Next . 5. On the Completing the New Virtual Disk Wizard page, click Finish . Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  11. D emonstration steps: Compacting a virtual disk 1. In Hyper-V Manager , in the Actions pane, click Edit Disk , and then click Next . 2. On the Locate Virtual Hard Disk page, click Browse . 3. On the Open page, browse to C:\\Virtual Machines , select Lab3-Dynamic.vhd , click Open , and then click Next . 4. On the Choose Action page, select Compact . 5. On the Completing the New Virtual Disk Wizard page, click Finish . Converting a virtual disk 1. In Hyper-V Manager , in the Actions pane, click Edit Disk , and then click Next . 2. On the Locate Virtual Hard Disk page, click Browse . 3. On the Open page, browse to c:\\Virtual Machines , select Lab3-Dynamic.vhd , click Open , and then click Next . 4. On the Choose Action page, select Convert . 5. On the Convert Virtual Hard Disk page, type c:\\Virtual Machines\\Demo3-Converted.vhd , and then click Next . Point out that converting a dynamically expanding disk creates a fixed size disk. Because the disk was created with a maximum size of 127 GB, the process would create a fixed hard disk with that size. 6. On the Completing the New Virtual Disk Wizard page, click Cancel . Expanding a virtual disk 1. In Hyper-V Manager , in the Actions pane, click Edit Disk , and then click Next . 2. On the Locate Virtual Hard Disk page, click Browse. 3. On the Open page, browse to c:\\Virtual Machines , select Lab3-Fixed.vhd , click Open , and then click Next . 4. On the Choose Action page, select Expand , and increase the size by 5 GB . 5. On the Completing the New Virtual Disk Wizard page, click Finish . Inspecting a virtual disk 1. In Hyper-V Manager , in the Actions pane, click Inspect Disk , and then click Next . 2. In the Open dialog box, click Demo3-DiffDrive.vhd , and then click Open . 3. In the Virtual Hard Disk Properties dialog box, show the link to the parent drive. Click Inspect . This action displays the information about the parent hard disk. 4. Click Close twice. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  12. Introduce the lesson content. Emphasize that most of the lesson content talks about planning , which is a very important component of the deployment process. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  13. Discuss the use of the New Virtual Machine Wizard. This module will provide more detail on the wizard’s use. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  14. Virtual Machine Wizard The New Virtual Machine Wizard provides you with a simple and flexible way to create a virtual machine. The New Virtual Machine Wizard is available from Hyper-V Manager. You can use default settings to create a virtual machine without proceeding through all configuration pages of the wizard. This type of virtual machine is configured as follows: Name: New Virtual Machine Location: The default location configured for the Hyper-V server Memory: 512 MB Virtual hard disk: Dynamically expanding hard disk with a storage capacity of 127 gigabytes Operating system: No media specified Network connection: Not connected Instead of using the default configuration above, you can use the wizard to specify a custom configuration. The wizard uses the following pages to create a virtual machine that is customized for your needs. Before You Begin You can create a virtual machine without working through the pages of the wizard. If you click Finish on this page, the wizard creates a virtual machine with a default configuration. Otherwise, you can customize a virtual machine on the following pages. Specify Name and Location You can specify a name and location suited to your environment. Note: If you plan to cluster this virtual machine hard disk, choose the option to store the virtual machine in a new folder, and then specify a shared location. Assign Memory Specify at least enough memory to run the guest operating system and all applications that you want to run simultaneously. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  15. D emonstration steps: Inserting integration services setup disk 1. On NYC-Host1, in the Actions pane, click New , and then click Virtual Machine . 2. The New Virtual Machine Wizard appears. Click Next . 3. On the Specify Name and Location page, in the Name field, type Demo3-VM . 4. Select the Store the virtual machine in a different location check box. In the Location field, type C:\\Virtual Machines , and then click Next . 5. On the Assign Memory page, in the Memory field, type 1024 , and then click Next . 6. On the Configure Networking page, in the Connection list, click Internal Network , and then click Next . 7. On the Connect Virtual Hard Disk page, click Use an existing virtual hard disk . Click Browse , click Demo3-Dynamic.vhd , click Open , and then click Next . On the Completing the New Virtual Machine Wizard page, click Finish . Question: How would you create a virtual machine that will use a SCSI controller for data disks? Answer: You would need to complete the creation of the virtual machine, and then access the virtual machine properties and add a SCSI controller and disk. When you run the New Virtual Machine wizard, you are configuring the boot disk for the virtual machine, and this disk must be connected to an IDE controller. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  16. Demonstration steps: Configuring the integration services 1. On NYC-Host1, in Hyper-V Manager , right-click 10215A-NYC-CL1 , and click Settings. 2. Under Management , click Integration Services . Discuss the different integration services that are provided for virtual machines. Click Cancel . Install the integration services 1. Right-click 10215A-NYC-CL1 , and click Start . 2. Right-click 10215A-NYC-CL1 , and click Connect . 3. Log on to NYC-CL1 as Administrator with a password of Pa$$w0rd . 4. On the Action menu, in the 10215A-NYC-CL1 on localhost – Virtual Machine Connection window, click Insert Integration Services Setup Disk . 5. In the AutoPlay window, click Install Hyper-V Integration Services . In the Hyper-V Integration Services dialog box, click OK . Question: How would you know if you needed to install the integration services in a virtual machine? Answer: You should install the integration services if you notice that some of the integration services are not working correctly. For example, you would install it if the virtual machine time is not synchronizing with the host time. For some virtual machine operating systems, you also need to install the integration services before you can enable synthetic devices, such as synthetic network adaptors. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  17. Import and Export The Hyper-V import and export tools are used to move virtual machines from host to host. The Import tool will load the exported virtual machine, read the configuration file, and will then run the virtual machine at the import location. The export tool gathers all related files of a Hyper-V virtual machine and places them into a specified folder. Useful Scenarios Moving a virtual machine from one host to another. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  18. Discuss the options for installing a virtual machine . Ensure to emphasize using: CD and DVD International Organization for Standardization (ISO) Network installation Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  19. Virtual PC and Virtual Server Migration Virtual PC 2007, Microsoft Virtual Server 2005, and Windows Server 2008 Hyper-V utilize the common, open VHD format for storing the file content of virtual machines. Consequently, existing virtual machines created with Virtual Server 2005 and Virtual PC 2007 can be migrated to a Windows Server 2008 Hyper-V host. Administrators can create and manage existing virtualized workloads in Virtual Server 2005, and after deployment, move those virtual machines directly to Windows Server 2008 Hyper-V without any need to recreate the virtual hard drives. This ensures that administrators can continue to leverage their existing investment in a virtualized infrastructure, and move that infrastructure to Hyper-V as they are ready. Migration Steps: Remove the virtual machine additions from the virtual machine in Virtual Server 2005 R2, and then move it over to Hyper-V. Copy .vhd file to the Windows Server 2008 Hyper-V server. Note: Do not copy the .vmc file to Hyper-V server. Create the new virtual machine in Hyper-V with the copied VHD file. Note: If the operating systems are NOT supported then you must remove the network adaptor and add the Legacy Network Adapter to get networking running. Install the integration services on the guest operating system if they are available. This is a one-way migration. Virtual Server 2005 and Virtual PC 2007 virtual machines can be migrated to Hyper-V. However, you cannot migrate Hyper-V virtual machines back to Virtual Server 2005 or Virtual PC 2007. Question: Is there a scenario in which you would not complete step 4 above? Answer: It is best practice to always install the integration components . if they available for the guest operating system. Under regular circumstances, the ICs would not be installed if they are not available for the guest operating system. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  20. Introduce snapshots. Cover snapshots at a high level, as this lesson provides more detail . Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  21. Snapshot Overview Snapshots are a new feature of Windows Server 2008 Hyper-V. Snapshots are a point-in-time version of a virtual machine. This means that when the virtual machine is running, you can create a snapshot. At any time, you can select the snapshot, and revert the virtual machine back to that point in time. When a VM is restored using a snapshot, the virtual machine is in the exact configuration that it was when the snapshot was created (memory, virtual hardware, processes, and machine state). Snapshots do not affect the running state of the virtual machine. When you create a snapshot, it does not change the virtual machine hardware, applications, or the processes that are running. Additionally, when deleting a snapshot, the virtual machine does not change, and the point-in-time save point is no longer restorable. The snapshot files consist of the following: A copy of the virtual machine configuration .xml file Any save state files A differencing disk (.avhd) that is the new working disk for all writes that is the child of the working disk prior to the snapshot. Question: How are multiple branches are created in a snapshot tree? Answer: If you create snapshots, one right after each other, and never apply a previous snapshot, then you will have a tree with one branch. If you apply a previous snapshot, then you will get another branch to the snapshot tree, starting at the applied snapshot. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  22. Emphasize that snapshots are fine for use in a lab or test environment, but not for use in a production environment. You should not use snapshots as a backup or recovery mechanism for Exchange or Active Directory® Domain Services (AD DS) or other transactional applications. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  23. Managing Snapshots with Hyper-V Snapshots are implemented at the virtualization layer, and can be taken at any time with any guest operating system (even during an operating system installation). Snapshots can be taken whether the virtual machine is running or stopped. If the virtual machine is running when the snapshot is taken, there is no downtime involved to create the snapshot. Create Snapshot Snapshots can be created in the Hyper-V Manager: select a virtual machine, and on the Action menu or panel, click Snapshot . Note: If you select to create a snapshot from the Hyper-V Manager, the snapshot will be created with an autogenerated name. Snapshots can also be created using the Virtual Machine Connection window: Click the snapshot button in the toolbar, or open the Action menu, and select Snapshot . Note: Selecting to create a snapshot from the Virtual Machine Connection window will result in a dialog box that allows you to enter a custom name for the snapshot (for example, “Installed Office 2007”)  The dialog can be dismissed, and the snapshot will use an autogenerated name. The autogenerated name will consist of the name of the virtual machine followed by the date and time when the snapshot was taken. View Snapshot When a virtual machine with snapshots has been selected, the Snapshots pane of the Hyper-V Manager appears below the Virtual Machines pane. Snapshots are displayed in the Snapshots pane in a hierarchal manner that describes the order in which the snapshots where taken.  One snapshot will have a green arrow head underneath it, which indicates that this snapshot was the last one to be taken or applied to the virtual machine.  Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  24. Demonstration steps: Creating snapshots 1 On NYC- Host1, access the 10215A-NYC-CL1 on localhost – Virtual Machine Connection window. 2. Right-click the virtual machine desktop, point to New , and click Text document . Type Snapshot1.txt , and press ENTER. 3. In Hyper-V Manager, click 10215A-NYC-CL1 . In the Actions pane, under 10215A-NYC-CL1 , click Snapshot . 4. Click the snapshot, and type Snapshot1 . 5. Open Windows Explorer, and browse to E:\\Program Files\\Microsoft Learning\\10215\\Drives\\10215A-VAN-CL1\\Snapshots . Point out the XML document, and then open the folder with the GUID name. Point out the bin and .vsv files. 6. Browse to E:\\Program Files\\Microsoft Learning\\10215\\Drives\\10215A-VAN-CL1\\Virtual Hard Disks . Point out the .avhd files created in the folder. 7. Right-click the virtual machine desktop, point to New , and click Text document . Type Snapshot2.txt , and press ENTER. 8. In Hyper-V Manager, click 10215A-NYC-CL1 . In the Actions pane, under 10215A-NYC-CL1, click Snapshot . 9. Click the new snapshot, and type Snapshot2 . 10. In Windows Explorer, display the E:\\Program Files\\Microsoft Learning\\10215\\Drives\\10215A-VAN-CL1\\Virtual Hard Disks folder. Point out the additional .avhd files created in the folder. 11. Right-click the virtual machine desktop, point to New , and click Text document . Type NewData.txt , and then press ENTER. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  25. Demonstration steps, continued: Reverting to a previous snapshot In Hyper-V Manager , ensure that the 10215A-NYC-CL1 virtual machine is selected. 2. Under 10215A-NYC-CL1 , click Revert . In the Revert Snapshot dialog box, click Revert . 3. On the virtual machine, verify that the NewData.txt is no longer on the desktop. 4. In the Snapshots pane, under Virtual Machines , right-click Snapshot1 , and then click Apply . 5. In the Apply Snapshot window, click Apply . 6. On the virtual machine, verify that the Snapshot1.txt is no longer on the desktop. 7. In the Snapshots pane, under Virtual Machines , right-click Snapshot2 , and then click Apply . 5. In the Apply Snapshot window, click Apply . On the virtual machine desktop, verify that the Snapshot2.txt is on the desktop. Merging snapshots 1. In Hyper-V Manager , ensure that the 10215A-NYC-CL1 virtual machine is selected. 2. In the Snapshots pane, under Virtual Machines , right-click Snapshot1 , and then click Delete Snapshot Subtree . 3. In the Delete Snapshot Tree dialog box, click Delete . 4. On the virtual machine, verify that Snapshot1.txt and Snapshot2.txt are on the desktop. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  26. Introduce the Virtual Machine Connection Application. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  27. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  28. Demonstration steps: Connecting to a virtual machine 1. On NYC-Host1, if required, open Hyper-V Manager In the Hyper-V Manager, right-click 10215A-NYC-CL1 , and click Connect . Manage the virtual machine. 1. In the Virtual Machine Connection window, point out the top bar, which provides information about the virtual machine and the Hyper-V server where the virtual machine is running. 2. Click the File menu, and then click Settings . You can use the Settings dialog box to configure the same virtual machine settings that you can through the Hyper-V Manager. Click Cancel . 3. Click the Action menu, and then click CTRL+ALT+DELETE. The Action menu allows the user to execute selected actions in the virtual machine. Click Cancel . 4. Click the Media menu, and describe the options for connecting to DVDs or diskettes. The DVD Drive selection allows for ejecting or inserting a DVD, CD, or ISO into the virtual machine DVD drive or capturing the Hyper-V server optical drive. The Diskette Drive selection allows for ejecting or inserting a Virtual Floppy Disk drive (*.vfd). 5. Click the Clipboard menu. The Clipboard menu provides two selections – Type clipboard text and Capture screen . Type clipboard text allows for the transfer of text from the parent partition into the child partition. Capture screen allows for the taking of a screenshot in the child partition and then pasting it into an application running in the parent partition. 6. Click the View menu, and describe the options. 7. Close the Virtual Machine Connection window. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  29. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  30. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  31. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  32. Reference Running SQL Server 2008 in a Hyper-V Environment - Best Practices and Performance Recommendations http://sqlcat.com/whitepapers/archive/2008/10/03/running-sql-server-2008-in-a-hyper-v-environment-best-practices-and-performance-recommendations.aspx Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  33. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  34. Reference Performance and Capacity Requirements for Hyper-V http://technet.microsoft.com/en-us/library/dd277865.aspx Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  35. In this lab, students will create VHDs and virtual machines. Exercise 1 In this exercise, students will create new virtual hard disks. Exercise 2 In this exercise, students will create a virtual machine, and they will use the virtual hard drive they created in the last exercise. Exercise 3 In this exercise, you will need to make modifications to the virtual machine. Exercise 4 After creating the virtual machines, you will need to create a snapshot before making any further changes. Before the students begin the lab, read the scenario associated with each exercise to the class. This will reinforce the broad issue that the students are troubleshooting and will help to facilitate the lab discussion at the end of the module. Remind the students to complete the discussion questions after the last lab exercise. Note: The lab exercise answer keys are provided on the Course Companion CD. To access the answer key, click the link located at the bottom of the relevant lab exercise page. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  36. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  37. Use the questions on the slide to guide the debriefing after students have completed the lab exercises: How will you use snapshots in your organization ? Answer : Answers will vary. In most organizations snapshots will be used only a test environment. 2. Do you have a standard design for virtual machines in your organization? Answer: Answers will vary. As organizations start deploying virtual machines they are less likely to have standards in place. Over time, most organizations will develop some standards in order to reduce the administrative effort in managing virtual machines. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines
  38. Review Questions What is the main difference between a differencing disk and pass-through disk? Answer: You can use a differencing disk to create a standardized virtual machine or parent disk. New machines created using the parent disk are known as child disks. A pass through disk uses a physical drive as the disk for a virtual machine Differencing disks allow you to create many virtual machines from a single parent virtual hard disk while minimizing physical storage utilization in test and development environments. Differencing disks should not be used in a production environment. 2. What are some of the advantages of using a pass-through disk? Answer: Faster performance than a virtual disk and you are not limited to the 2,040 GB limit. Implementing and Managing Microsoft Server Virtualization Module 3: Creating and Configuring Virtual Hard Disks and Virtual Machines