Documente Academic
Documente Profesional
Documente Cultură
M I C R O S O F T
L E A R N I N G
P R O D U C T
10215A
Implementing and Managing Microsoft Server Virtualization Companion Content
Information in this document, including URL and other Internet Web site references, is subject to change without notice. Unless otherwise noted, the example companies, organizations, products, domain names, e-mail addresses, logos, people, places, and events depicted herein are fictitious, and no association with any real company, organization, product, domain name, e-mail address, logo, person, place or event is intended or should be inferred. Complying with all applicable copyright laws is the responsibility of the user. Without limiting the rights under copyright, no part of this document may be reproduced, stored in or introduced into a retrieval system, or transmitted in any form or by any means (electronic, mechanical, photocopying, recording, or otherwise), or for any purpose, without the express written permission of Microsoft Corporation. Microsoft may have patents, patent applications, trademarks, copyrights, or other intellectual property rights covering subject matter in this document. Except as expressly provided in any written license agreement from Microsoft, the furnishing of this document does not give you any license to these patents, trademarks, copyrights, or other intellectual property. The names of manufacturers, products, or URLs are provided for informational purposes only and Microsoft makes no representations and warranties, either expressed, implied, or statutory, regarding these manufacturers or the use of the products with any Microsoft technologies. The inclusion of a manufacturer or product does not imply endorsement of Microsoft of the manufacturer or product. Links may be provided to third party sites. Such sites are not under the control of Microsoft and Microsoft is not responsible for the contents of any linked site or any link contained in a linked site, or any changes or updates to such sites. Microsoft is not responsible for webcasting or any other form of transmission received from any linked site. Microsoft is providing these links to you only as a convenience, and the inclusion of any link does not imply endorsement of Microsoft of the site or the products contained therein. 2010 Microsoft Corporation. All rights reserved. Microsoft and the trademarks listed at http://www.microsoft.com/about/legal/en/us/IntellectualProperty/Trademarks/EN-US.aspx are trademarks of the Microsoft group of companies. All other marks are property of their respective owners.
1-1
Module 1
Evaluating and Planning for Virtualization
Contents:
Lesson 1: Overview of Microsoft Virtualization Lesson 2: Overview of Virtualization Management Lesson 3: Evaluating the Current Environment for Virtualization Lesson 4: Planning the Hyper-V Server Role Module Reviews and Takeaways Lab Review Questions and Answers 2 6 8 13 15 17
1-2
Lesson 1
1-3
1-4
virtualization, including MED-V, to distribute the client virtual machine. The organization also may be able to use App-V to deliver the applications virtually. The organization also should consider using either client-based desktop virtualization or application virtualization to run the custom applications. By using desktop virtualization, the organization could deploy virtual machines with the applications preconfigured. With application virtualization, users could run potentially incompatible applications on their desktop computers.
1-5
Additional Reading
Challenges of Traditional Network Environments
Microsoft Virtualization Resources
Virtualization Modes
Selecting the Right Virtualization Technology
1-6
Lesson 2
1-7
Additional Reading
Overview of Microsoft System Center
System Center Products
1-8
Lesson 3
1-9
1-10
6. 7. 8. 9.
10. In the Computer name field, type NYC-HOST1. 11. Click Save. 12. Click Next on the WMI Credentials page. 13. Click Finish on the Summary page. 14. On the Status page, wait until the scan is complete, and then click Close. 15. In the left pane, expand Server Consolidation, and then click Performance Metrics Results. 16. Click Performance Metrics Wizard. 17. On the Import Computer Names page, click Browse, and locate the ServerNames.txt file in E:\Labfiles. 18. Click Next. 19. Click OK to acknowledge the confirmation message that follows. 20. On the WMI Credentials page, click New Account. 21. In the Inventory Account window, in the Domain Name field, enter Contoso. 22. In the Account name field, enter Administrator. 23. In the Password and Confirm password fields, enter Pa$$w0rd. 24. Click Save.
1-11
25. Click Next on the WMI Credentials page. 26. On the Performance Collection Duration page, set the end date and time for the collection to end, such as to 7 days from today. 27. Click Next. 28. Click Cancel to stop the performance metrics collection, and then click Yes. Run the Server Consolidation Wizard, and review the proposal and reports that the Wizard generates: 1. 2. 3. 4. 5. 6. 7. 8. 9. Click File, and then click Select a Database. Click Use an existing database, select MapHolDB-03 from the drop-down list box, and then click OK. In the top-left tree view, click Server Consolidation. In the center pane, under Configure Host and Run Analysis Engine, click Server Consolidation Wizard. Verify that Windows Server 2008 R2 Hyper-V is selected, and then click Next. Ensure that Use the current hardware configuration is selected, and then click Next. From the Manufacturer drop-down list box, select Intel, and then click Next. On the Storage page, click Next. On the Network and Memory page, click Next.
10. On the Host and Guest Thresholds page, select the check box Select this option, type the number 5 in Number of virtual machines per host, and then click Next. 11. Click Browse to select a file, and then open the E:\Labfiles\network-computers1.txt file. 12. Click Next, and then click OK, and a summary of the host machine configuration is shown. 13. Click Finish to start the placement assessment. 14. When the assessment is complete, click Close. 15. Expand Server Consolidation in the top-left tree view, and then click Server Consolidation Results node. You can review the server consolidation assessment results within the interface.
1-12
Additional Reading
Evaluation Factors
Microsoft server software and supported virtualization environments
1-13
Lesson 4
1-14
Additional Reading
Virtual Machine Overview
About Virtual Machines and Guest Operating Systems
1-15
1-16
Select candidates with older hardware. Use VMM reporting to locate virtualization candidates.
Tools
Tool System Center Operations Manager 2007 R2 System Center Configuration Manager 2007 R2 System Center Virtual Machine Manager 2008 R2 System Center Data Protection Manager 2007 Microsoft Assessment and Planning Toolkit Use for Where to find it
Enables monitoring and managing the hardware and software in a distributed environment
Enables automated installation and configuration of software and operating system updates
Enables the centralized management of virtual machines and the host computers
Enables backup and restore of virtual and physical servers Evaluate your IT environment for upgrades and virtualization potential
1-17
2-1
Module 2
Installing and Configuring the Hyper-V Server Role
Contents:
Lesson 1: Installing the Hyper-V Server Role Lesson 2: Configuring Hyper-V Settings and Virtual Networks Module Reviews and Takeaways Lab Review Questions and Answers 2 7 13 15
2-2
Lesson 1
2-3
2-4
Use netsh to review the Windows Firewall configuration after the installation 1. 2. 3. 4. After the server restarts, log on to NYC-SVR2 as Contoso\Administrator with the password Pa$$W0rd. At the command prompt, type netsh advfirewall firewall show rule name=all dir=in > rules.txt, and then press ENTER. At the command prompt, type notepad rules.txt. Scroll to the top of the Notepad file, and show the Hyper-V firewall rules that have been enabled. Close Notepad.
Demonstration steps:
Use Hyper-V Manager to connect to a Hyper-V host 1. 2. 3. On NYC-Host1, click Start, point to Administrative Tools, and then click Hyper-V Manager. In Hyper-V Manager, right-click Hyper-V Manager, and then click Connect to Server. Click Another computer, type NYC-SVR2, and then click OK. Verify that you can connect to the Hyper-V server.
Install and use RSAT Note: The installation of the RSAT takes about 5 minutes. Consider starting the installation earlier in the module presentation.
2-5
1. 2. 3. 4. 5. 6. 7. 8. 9.
Connect to NYC-CL1. Log on to NYC-CL1 as Contoso\Administrator with the password Pa$$W0rd. On NYC-CL1, open Windows Explorer, and browse to E:\Labfiles. Double-click x86fre_GRMRSAT_MSU.msu. In the Windows Update Standalone Installer dialog box, click Yes, and then click I accept. 4. Wait for the installation to complete, and then click Close. Close the Windows 7 Remote Administration window. Click Start, click Control Panel, and then click Programs. In Programs, click Turn Windows features on and off. In the Windows Features window, expand Remote Server Administration Tools, and then expand Role Administration Tools. Check the check box next to Hyper-V Tools, and then click OK. Click Control Panel, and then click System and Security. In System and Security, click Administrative Tools.
10. In the Administrative Tools window, double-click the Hyper-V Manager shortcut. 11. In the Hyper-V Manager, right-click Hyper-V Manager, and then click Connect to Server. 12. In the Select Computer window, click Another Computer, and then in the box, type NYCHost1, and then click OK. Verify that you can connect to the Hyper-V server. Use RDP to manage the Hyper-V Server 2008 R2 1. 2. 3. 4. On NYC-CLI, click Start. In the Search box, type mstsc.exe. In the Remote Desktop Connection box, type NYC-Host2, and then click Connect. In the Windows Security window, type Contoso\administrator for the user and Pa$$w0rd for the password. Click OK. Verify that you can connect to the Hyper V server. In the NYC-Host2 Remote Desktop window, click Start, and then click Log off.
2-6
Additional Reading
Tools for Managing the Hyper-V Role
Microsoft Download Center: Remote Server Administration Tools for Windows 7
2-7
Lesson 2
2-8
2-9
Answer: You can create either a private network or an internal network to isolate the virtual machines from the physical network.
2-10
Configure Mouse Release Keys Under User, click Mouse Release Key. Describe the configuration options.
Manage User Credentials Under User, click User Credentials. Describe the configuration option.
Reset check boxes Under User, click Reset Check Boxes. Describe the configuration option.
Demonstration steps
Create a new internal virtual network 1. 2. 3. 4. 5. 6. 7. On NYC-Host1, in Hyper-V Manager, in the Actions pane, click Virtual Network Manager. In the Virtual Network Manger window, click Internal. Internal networks are used to communicate between the host computer and virtual machines on the host computer. In the Name field, type Internal Network, and then click OK. Click Start, right-click Network, and then click Properties. On the Network and Sharing Center window, click Change adapter settings. Right-click the Local Area Connection that is connected to the Internal Network, and then click Properties. Click Internet Protocol Version 4 (TCP/IPv4), and then click Properties. Verify that no IP address is configured, and then click Cancel. In order for the host computer to communicate with the virtual machines using this network, you need to configure the network adapter with an IP address configuration that is able to communicate with the virtual machines. Close the Local Area Connection dialog box, and then close the Network Connections window.
8.
2-11
1. 2. 3.
In Hyper-V Manager, in the Actions pane, click Virtual Network Manager. In the Virtual Network Manger window, click MAC Address Range. Beside Maximum, change the value of the fifth pane by one, and then click OK.
Modify an existing external virtual network 1. 2. 3. In Hyper-V Manager, in the Actions pane, click Virtual Network Manager. In the Virtual Network Manger window, click External Network. In the Virtual Network Properties pane, change the Notes information to External network connection used by all virtual machines., and then click OK.
Configure an additional internal virtual network 1. 2. 3. In Hyper-V Manager, in the Actions pane, click Virtual Network Manager. In the Virtual Network Manger window, click Internal, and then click Add. In the New Virtual Network pane, under Name, type Internal-One, and then click OK.
Configure different VLAN IDs for each internal virtual network 1. 2. 3. 4. 5. 6. 7. 8. In Hyper-V Manager, in the Actions pane, click Virtual Network Manager. In the Virtual Networks window, click Internal-One. In the New Virtual Network pane, check the Enable virtual LAN identification for management operating system box. Change the VLAN ID to 3, and then click OK. In Hyper-V Manager, in the Actions pane, click Virtual Network Manager. In the Virtual Networks window, click Internal Network. In the New Virtual Network pane, check the Enable virtual LAN identification for management operating system box. Change the VLAN ID to 4, and then click OK.
Show that two virtual machines cannot communicate with each other 1. 2. 3. 4. Connect to NYC-CL1. Open a command prompt, type Ping NYC-DC1, and then press ENTER. Verify that NYC-CL1 is able to communicate with NYC-DC1. In Hyper-V Manager, right-click NYC-CL1, and then click Settings. In Settings for NYC-CL1, click the Network Adapter. In the Network list, click InternalOne, and then click OK. In Hyper-V Manager, right-click NYC-DC1, and then click Settings.
2-12
5. 6. 7.
In Settings for NYC-DC1, click the Network Adapter. In the Network list, click Internal Network, and then click OK. On NYC-CL1, at the command prompt, type Ping NYC-DC1, and then press ENTER. Verify that NYC-CL1 is not able to communicate with NYC-DC1. Change the network settings for both NYC-DC1 and NYC-CL1 to use the External Network again.
2-13
2-14
import the virtual machine into Hyper-V and attempt to start the virtual machine, you receive an error that Hyper-V launch failed; Either VMX not present or not enabled in BIOS. Answer: Verify that virtualization is enabled on the host machine.
2-15
3-1
Module 3
Creating and Configuring Virtual Hard Disks and Virtual Machines
Contents:
Lesson 1: Creating and Configuring VHDs Lesson 2: Creating and Configuring Virtual Machines Lesson 3: Managing Virtual Machine Snapshots Lesson 4: Working with the Virtual Machine Connection Application Lesson 5: Planning Virtualization for Applications Module Reviews and Takeaways Lab Review Questions and Answers 2 7 12 16 18 20 22
3-2
Lesson 1
3-3
Pass-Through Disks
Question: In what scenario would a pass-through disk be ideal? Answer: A pass-through disk would be helpful if you want to improve performance.
3-4
Create a fixed virtual disk: 1. 2. 3. 4. 5. 6. In Hyper-V Manager, in the Actions pane, click New, and then click Hard Disk. On the Before You Begin page, and then click Next. On the Choose Disk Type page, click Fixed size, and then click Next. 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. On the Configure Disk page, change the Create a new blank virtual disk size to 5 GB, and then click Next. On the Completing the New Virtual Disk Wizard page, click Finish.
Create a differencing virtual disk: 1. 2. 3. 4. 5. 6. In Hyper-V Manager, in the Actions pane, click New, and then click Hard Disk. On the Before You Begin page, click Next. On the Choose Disk Type page, click Differencing, and then click Next. 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. 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. On the Completing the New Virtual Disk Wizard page, click Finish.
3-5
3. 4. 5.
On the Open page, browse to C:\Virtual Machines, select Lab3-Dynamic.vhd, click Open, and then click Next. On the Choose Action page, select Compact. On the Completing the New Virtual Disk Wizard page, click Finish.
Convert a virtual disk 1. 2. 3. 4. 5. In Hyper-V Manager, in the Actions pane, click Edit Disk, and then click Next. On the Locate Virtual Hard Disk page, click Browse. On the Open page, browse to c:\Virtual Machines, select Demo3-Dynamic.vhd, click Open, and then Next. On the Choose Action page, select Convert. 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 you created the disk with a maximum size of 127 GB, the process would create a fixed hard disk with that size. On the Completing the New Virtual Disk Wizard page, click Cancel.
6.
Expand a virtual disk 1. 2. 3. 4. 5. In Hyper-V Manager, in the Actions pane, click Edit Disk, and then click Next. On the Locate Virtual Hard Disk page, click Browse. On the Open page, browse to c:\Virtual Machines, select Demo3-Fixed.vhd, click Open, and then click Next. On the Choose Action page, select Expand and increase the size by 5 GB. On the Completing the New Virtual Disk Wizard page, click Finish.
Inspect a virtual disk 1. 2. 3. 4. In Hyper-V Manager, in the Actions pane, click Inspect Disk, and then click Next. In the Open dialog box, click Demo3-Diff-Drive.vhd, and then click Open. 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. Click Close twice.
3-6
Additional Reading
Host Computer Considerations for VHDs
Virtual Hard Disk Image Format Specification
3-7
Lesson 2
3-8
3-9
Install the integration services 1. 2. 3. 4. 5. 6. Right-click 10215A-NYC-CL1, and then click Start. Right-click 10215A-NYC-CL1, and then click Connect. Log on to NYC-CL1 as Administrator with a password of Pa$$w0rd. On the Action menu in the 10215A-NYC-CL1 on localhost Virtual Machine Connection window, click Insert Integration Services Setup Disk. In the AutoPlay window, click Install Hyper-V Integration Services. In the Hyper-V Integration Services dialog box, click OK.
3-10
1. 2. 3. 4. 5. 6.
On NYC-Host1, in Hyper-V Manager, right-click 10215A-NYC-SVR2, and then click Export. In the Export Virtual Machine dialog box, in the Location field, type E:\VMExport and then click Export. Wait until the export finishes, and then open Windows Explorer, and browse to E:\VMExport. In the VMExport folder, open the 10215A-NYC-SVR2 folder. Right-click config.xml, and then click Edit. Review the contents of the config.xml file, and then close Notepad. Show the contents of the Snapshots, Virtual Hard Disks and Virtual Machines folder. Close Windows Explorer.
3-11
Additional Reading
Considerations for Migrating Legacy Virtual Machines
Overview of Virtual Machine Manager
3-12
Lesson 3
3-13
3-14
6. 7. 8. 9.
10. In Windows Explorer, display the E:\Program Files\Microsoft Learning\10215\Drives\10215ANYC-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 then click Text document. Type NewData.txt, and then press ENTER. Reverting to a previous snapshot 1. 2. 3. 4. 5. 6. 7. 8. 9. In Hyper-V Manager, ensure that the 10215A-NYC-CL1virtual machine is selected. Under 10215A-NYC-CL1, click Revert. In the Revert Snapshot dialog box, click Revert. On the virtual machine desktop, verify that the NewData.txt no longer is on the desktop. In the Snapshots pane, under Virtual Machines, right-click Snapshot1, and then click Apply. In the Apply Snapshot window, click Apply. On the virtual machine, verify that the Snapshot2.txt no longer is on the desktop. In the Snapshots pane, under Virtual Machines, right-click Snapshot2, and then click Apply. In the Apply Snapshot window, click Apply. On the virtual machine desktop, verify that the Snapshot2.txt is on the desktop.
Merging snapshots
3-15
1. 2. 3. 4.
In Hyper-V Manager, ensure that the 10215A-NYC-CL1virtual machine is selected. In the Snapshots pane, under Virtual Machines, right-click Snapshot1, and then click Delete Snapshot Subtree. In the Delete Snapshot Tree dialog box, click Delete. On the virtual machine, verify that Snapshot1.txt and Snapshot2.txt are on the desktop.
3-16
Lesson 4
3-17
Manage the virtual machine. 1. 2. 3. 4. 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. 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. 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. 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\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). 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 enables you to take a screenshot in the child partition and then paste it into an application that is running in the parent partition. Click the View menu, and describe the options. Close the Virtual Machine Connection window.
5.
6. 7.
3-18
Lesson 5
3-19
Additional Reading
Designing Virtual Machines for SQL Server
Running SQL Server 2008 in a Hyper-V Environment - Best Practices and Performance Recommendations
3-20
3-21
workload. In some cases, it may make more sense to deploy a physical server and use the application consolidation options rather than deploying the workload on a virtual machine. Test and monitor all server workloads. If you decide to deploy a new server workload on a virtual machine, ensure that you test the workload before deploying the virtual machines in a production environment. As you deploy the server, monitor the server performance to identify bottlenecks as soon as possible. Carefully consider both application features and Hyper-V functionality when designing virtual machine deployments. For example, both SQL Server and Exchange Server 2007 and Exchange Server 2010 provide built-in functionality to enable high availability. Hyper-V also provides high availability options. When choosing between the two options, ensure that you understand the benefits and disadvantages of each option.
3-22
4-1
Module 4
Integrating System Center Virtual Machine Manager 2008 R2 with Hyper-V R2
Contents:
Lesson 1: Planning for System Center Virtual Machine Manager Integration Lesson 2: Installing the VMM Server and Administrator Console Lesson 3: Managing Hosts and Host Groups Module Reviews and Takeaways Lab Review Questions and Answers 2 5 9 14 16
4-2
Lesson 1
4-3
4-4
Additional Reading
What Is VMM 2008 R2?
System Center Virtual Machine Manager 2008 R2 Official site
4-5
Lesson 2
4-6
4-7
Demonstration steps:
Start the setup procedure 1. 2. 3. 4. 5. 6. On NYC-VMM, click Start, click Run, and then type \\NYC-Host1\E$. Click OK. Browse to Program Files\Microsoft Learning\10215\Labfiles\SCVMM 2008 R2. Run Setup.exe with elevated privileges. In the Setup application window, click VMM Server. On the License Terms page, click I accept the terms of this agreement, and then click Next. On the Microsoft Update page, click I dont want to use Microsoft Update, and then click Next. Note: You are selecting not to use Microsoft Update because computers in the classroom do not have an Internet connection. In a production environment, you should use Microsoft Update. 7. 8. On the Customer Experience Improvement Program, click No, Im not willing to participate, and then click Next. On the Product Registration page, enter your name, and then click Next.
Check prerequisites 1. 2. On the Prerequesites Check page, make sure that you have a green check mark for both hardware and software requirements, and then click Next. On the Installation Location page, accept the default path for installation, and then click Next.
Determine the SQL Server options for the VMM database On the SQL Server Settings page, select Install SQL Server 2005 Express Edition SP3, and then click Next.
Determine the Library options 1. 2. On the Library Share Settings page, select Create a new library share, and then accept the default values. On the Installation Settings page, accept the default values, and then click Next.
4-8
1. 2.
On the Summary of Settings page, review the configuration, and then click Install. When the installation finishes, clear the Check for the latest Virtual Machine Manager updates check box, and then click Close.
Demonstration steps
Start the setup procedure 1. 2. 3. 4. On NYC-VMM, in the SC VMM Setup window, click VMM Administrator Console. On the License Terms page, click I accept the terms of this agreement, and then click Next. On the Microsoft Update page, click I dont want to use Microsoft Update, and then click Next. On the Customer Experience Improvement Program page, click Next.
Check prerequisites 1. 2. On the Prerequisites Check page, make sure that there is a green check mark for both hardware and software requirements, and then click Next. On the Installation Location page, accept the default path for installation, and then click Next.
Determine port assignment settings 1. 2. On the Port Assignment page, accept the default value for Port (8100), and then click Next. On the Summary of Settings page, review the configuration, and then click Install.
Finish the installation On the Installation page, clear the check mark next to Check for the latest Virtual Machine Manager updates, and then click Close.
4-9
Lesson 3
4-10
4-11
Add a host to VMM 1. 2. 3. 4. 5. 6. On the Select Host Location page, ensure that Windows Server-based host on an Active Directory domain is selected. In the Credentials dialog box, type Administrator for User Name, Pa$$w0rd for Password, and CONTOSO for the Domain. Verify that the Host is in a trusted domain check box is selected, and then click Next. On a Select Host Servers page, enter NYC-Host1 in Computer name textbox, and then click Add. After NYC-Host1 appears, in Selected servers field, click on it, and then click Next. In Virtual Machine Manager dialog box, click Yes.
Configure the default path 1. 2. 3. 4. 5. On Configuration Settings page, open the drop-down list, expand All Host, select Contoso, and then click Next. On Host Properties page, type E:\VM in text box, click Add, and then click Next. On Summary page, click View Script. When the Notepad window opens, note the syntax of the cmdlet that executes to add the host to the SCVMM. After that, close Notepad. Click Add Hosts. Wait until the job finishes, and then close the Jobs window. Note: To complete the following demonstrations, you also need to install the Hyper-V Server role on NYC-Host2 and add the host to the Contoso host group. To do this, complete the following steps. 6. 7. 8. 9. On NYC-Host2, click Start, point to Administrative Tools, and then click Server Manager. In Server Manager, click Roles, and then click Add Roles. In the Add Roles Wizard, click Next. On the Select Server Roles page, select the check box next to Hyper-V. Click Next.
4-12
10. On the Hyper-V page, click Next. 11. On the Create Virtual Networks page, click Next. 12. On the Confirm Installation Selections page, click Install. 13. Click Close, and then click Yes to restart the computer. 14. After the computer restarts, logon as Contoso\Administrator using the password Pa$$w0rd. Wait for the installation to finish, and then click Close. 15. On NYC-VMM, if required, start the SCVMM Admin Console 16. In the lower-left corner, click the Hosts tab. 17. In the Actions pane, click Add host. 18. On the Select Host Location page, ensure that Windows Server-based host on an Active Directory domain is selected. 19. In the Credentials dialog box, type Administrator for User Name, Pa$$w0rd for Password, and CONTOSO for the Domain. 20. Verify that the Host is in a trusted domain check box is selected, and then click Next. 21. On a Select Host Servers page, enter NYC-Host2 in Computer name textbox, and then click Add. 22. After NYC-Host2 appears, in Selected servers field, click on it, and then click Next. 23. In Virtual Machine Manager dialog box, click Yes. 24. On Configuration Settings page, open the drop-down list, expand All Host, select Contoso, and then click Next. 25. On Host Properties page, type E:\VM in text box, click Add, and then click Next. 26. On Summary page, click Add Hosts. 27. Wait until the job finishes, and then close the Jobs window.
4-13
Additional Reading
Considerations for Adding Hosts
Machine Hosts Managed by VMM
4-14
4-15
Answer: Hyper-V should be enables on two new physical servers. One of servers also can host SCVMM 2008 R2. You should create seven new virtual machines either by converting existing physical machines, or by creating them from scratch and moving data, to replace old physical servers. Existing virtual environment should be integrated in SCVMM environment, as SCVMM is capable for managing VMWare and Virtual Server. Alternatively, virtual machines from these platforms can be converted to Hyper-V machines. At the end, you should enable Quick of Live Migration to achieve high availability.
4-16
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-1
Module 5
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
Contents:
Lesson 1: Overview of VMM Management Tasks Lesson 2: Creating and Managing Checkpoints Module Reviews and Takeaways Lab Review Questions and Answers 2 8 14 16
5-2
Lesson 1
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-3
5-4
Before starting this demonstration, you should perform the following steps: Create a Test Virtual Machine 1. 2. 3. 4. 5. 6. 7. 8. 9. Using Windows Explorer copy file 10215A-CoreTest.vhd from \\NYC-host1\E$\Program Files\Microsoft Learning\10215\Lab files to \\NYC-VMM\MSSCVMMLibrary\VHDs. On NYC-VMM, open SCVMM Admin Console, switch to Library view, right-click NYCVMM.Contoso.com, and then choose Refresh. In SCVMM Admin Console, in Library view, right-click 10215A-CoreTest.vhd. Select New virtual machine. The New Virtual Machine wizard appears. On the Virtual Machine Identity page, in the Virtual machine name field, type Demo5-VM. Click Next. The Configure Hardware page appears. Click Memory, enter 1024 as the Virtual machine memory, and then click Next. The Select Destination page appears. Make sure Place the virtual machine on a host is selected, and then click Next. The Select Host page appears. Ensure that nyc-host1.contoso.com is selected, and then click Next.
10. The Select Path page appears. Click Next. 11. The Select Networks page appears. In the Virtual Network list, click External network, and then click Next. 12. The Additional Properties page appears. Select 64-bit edition of Windows Server 2008 R2 Enterprise, and then click Next. 13. The Summary page appears. Verify that the option to Start the virtual machine after deploying it on the host is not selected, and then click Create. 14. When job is complete, close the Jobs window.
Demonstration steps:
1. 2. In the SCVMM Admin Console, on NYC-VMM, click the Virtual Machines tab. In the center pane, right-click the Demo5-VM virtual machine, and then click Start.
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-5
3. 4. 5.
In the center pane, right-click the Demo5-VM virtual machine again, and then click Connect to virtual machine. The Virtual Machine Viewer window appears. Wait for Demo5-VM to start fully, and in the Virtual Machine Viewer window, click the CtrlAlt-Del button, and then enter Pa$$w0rd for the password. Press ENTER. After you log on to the virtual machine, in the command prompt, type Notepad, and then press ENTER. Enter some text into the Notepad window, and then leave the application window open. In SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Pause. Click Yes, and then switch to the Virtual Machine Viewer window, ensure that screen is grayed out, and that you cannot operate the virtual machine. In the SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Start. Switch to the Virtual Machine Viewer window, and ensure that you can operate the virtual machine, and that it is in same state as before. In the SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Save state. Click Yes. Revert to the Virtual Machine Viewer window, and ensure that the connection to the virtual machine is lost. Close the Virtual Machine Viewer window, and then wait until Demo5-VM shows a status of Saved State in the VMM Admin Console. In the SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Start. After a few seconds, right-click it again, and then select Connect to virtual machine. Open Virtual Machine Viewer window, and ensure that virtual machine has same windows opened as before.
6.
7.
8.
9.
10. In the SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Save state. Click Yes, and then switch to the Virtual Machine Viewer window, and ensure that the connection to the virtual machine is lost. Close the Virtual Machine Viewer window, and then wait until Demo5-VM has the status Saved State in the VMM Admin Console. 11. In the SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Discard saved state. Click Yes. Wait until virtual machine shows the state of Stopped in the SCVMM Admin Console. 12. Start the Demo5-VM virtual machine again, and then connect to it through the Virtual Machine viewer window, and show students that the virtual machine boots from the beginning without saving a state. Select Start Windows Normally, and then press ENTER. 13. Wait until virtual machine boots fully, and then right-click it, choose Shut Down, and then click Yes. Switch to the Virtual Machine Viewer, and wait to see that the virtual machine operating system (OS) is shutting down properly. 14. Close the Virtual Machine Viewer, but leave the SCVMM Admin Console open.
5-6
Demonstration steps:
1. 2. In SCVMM Admin Console, right-click the Demo5-VM virtual machine, and then click Properties. Review the options and values on the General tab. Define an Owner for the virtual machine by clicking Select, and then typing Domain Admins in the Select User or Group window. In the Tag field, type a value of XY. Click the Hardware Configuration tab. In the Advanced section, review the available options for Integration services, Priority, and Availability. Change the Priority value to High by clicking the radio button next to the value of High. Review the available options in the Network Adapter section. Click SCSI adapter in the toolbar to add a new SCSI adapter to the virtual machine. Click Disk in the toolbar to add a new hard disk. In the Channel drop-down list for the new disk, select SCSI 0 ID 1. Click the BIOS section. Modify the boot order so that the IDE Hard Drive is the first device to boot by clicking IDE Hard Drive, and then clicking Up. Click the Custom Properties tab. In the Custom1 field, enter test.
3. 4.
5. 6. 7. 8. 9.
10. Click the Settings tab, and then review the available options. 11. Click the Actions tab. In drop-down box Action when the physical server starts, choose Never automatically turn on the virtual machine, and in the Action when physical server stops drop-down box, choose Turn off virtual machine. 12. Click OK. 13. In the VMM tool bar, click the Columns button. In the Select Columns window, scroll through the list, and place a check mark next to Custom 1. Click OK. 14. Ensure that the Custom 1 column has appeared in the VMM Virtual Machines view and that it shows value for this attribute on the Demo5-VM virtual machine. 15. In preparation for the next demonstration, start the 10215A-NYC-CL1 virtual machine.
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-7
Additional Reading
Actions for Operating and Managing Virtual Machines
Managing Virtual Machines
5-8
Lesson 2
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-9
5-10
Demonstration steps:
1. 2. 3. 4. On NYC-VMM, if required, open the SCVMM Admin Console. Switch to Virtual Machines view. Verify that the 10215A-NYC-CL1 virtual machine has started. Right-click 10215A-NYC-CL1, and then click Connect to virtual machine. The Virtual Machine Viewer window will appear. In the Virtual Machine Viewer window, click the Ctrl-Alt-Del button. Accept Contoso\Administrator for the user name and Pa$$w0rd for the password, and then press ENTER. Right-click the virtual machine desktop, choose New on the drop-down list, and then click Folder. Give the folder the following name: BeforeCheckpoint1. Open the folder, and then create a text document inside the folder. Switch to the SCVMM Admin Console window, right-click the 10215A-NYC-CL1 virtual machine, and then click New checkpoint. Enter Checkpoint1 for the name of the checkpoint, and then click Create. After you create the checkpoint, right-click the virtual machine, and then click Manage checkpoints. In the Virtual Machine Properties for 10215A-NYC-CL1, click Checkpoint1, and then click Properties.
5.
6. 7. 8. 9.
10. Review the General and Hardware Configuration tab. In the General tab, enter the following text in the Description field: folder on desktop created, and then click OK twice. 11. Switch to the Virtual Machine Viewer window, and then delete the BeforeCheckpoint1 folder. 12. Shut down the virtual machine by clicking Start, and then clicking Shut Down. 13. After the virtual machine shuts down, close the Virtual Machine viewer window. 14. Switch to the SCVMM Admin Console, right-click the 10215A-NYC-CL1virtual machine, and then click Manage checkpoints. 15. Click CheckPoint1, click Restore, and then click Yes. 16. After checkpoint is restored, click OK. Note that 10215A-NYC-CL1has the status of Running. 17. Right-click the 10215A-NYC-CL1 virtual machine, and choose Connect to virtual machine. The Virtual Machine Viewer window will appear.
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-11
18. Make sure that the BeforeCheckPoint1 folder is on the desktop. 19. Leave Virtual Machine Viewer open.
Demonstration steps:
1. 2. 3. 4. 5. 6. 7. 8. If necessary, right-click the 10215A-NYC-CL1virtual machine, and then click Connect to virtual machine. The Virtual Machine Viewer window will open. Right-click the desktop of a virtual machine, and choose New on the drop-down list, and then click Folder. Name the folder as BeforeCheckpoint2. Switch to the SCVMM Admin Console window, right-click the 10215A-NYC-CL1 virtual machine, and then click New checkpoint. Enter Checkpoint2 for the checkpoint name, and then click Create. Switch to the Virtual Machine Viewer, right-click the desktop of a virtual machine, choose New on the drop-down list, and then click Folder. Name the folder BeforeCheckpoint3. Switch to the SCVMM Admin Console window, right-click the 10215A-NYC-CL1virtual machine, and then click New checkpoint. Enter Checkpoint3 for the checkpoint name, and then click Create. On a host machine NYC-Host1, browse to the folder where the virtual machines are stored (E:\Program Files\Microsoft Learning\10215\Drives\10215A-NYC-CL1\Virtual Hard Disks), and verify that three files with an .AVHD extension are created. On a host machine, open Hyper-V Manager from Administrative Tools, and then click the 10215A-NYC-CL1virtual machine. Ensure that all three checkpoints (referred to as snapshots) are available. Close Hyper-V Manager.
9.
10. Switch back to the SCVMM AdminConsole, and in the Virtual Machines view, right-click the 10215A-NYC-CL1virtual machine, and then click Manage checkpoints. 11. Click CheckPoint1, click Restore, and then click Yes. 12. After the checkpoint is restored, click OK. 13. Right-click the 10215A-NYC-CL1virtual machine, and then choose Connect to virtual machine. The Virtual Machine Viewer window will appear. 14. Make sure that only the BeforeCheckPoint1 folder is on the desktop. 15. Switch back to SCVMM AdminConsole, and in the Virtual Machines view, right-click the 10215A-NYC-CL1virtual machine, and then click Manage checkpoints. 16. Click CheckPoint2, click Restore, and then click Yes. 17. After the checkpoint is restored, click OK.
5-12
18. Right-click the 10215A-NYC-CL1virtual machine, and then choose Connect to virtual machine. The Virtual Machine Viewer window will appear. 19. Make sure that folders BeforeCheckPoint1 and BeforeCheckPoint2 are on a desktop. 20. Switch back to SCVMM AdminConsole, and in the Virtual Machines view, right-click the 10215A-NYC-CL1virtual machine, and then click Manage checkpoints. 21. Click CheckPoint1, click Remove, and then click Yes. 22. Click CheckPoint3, click Restore, and then click Yes. 23. After the checkpoint is restored, click OK. 24. Right-click the 10215A-NYC-CL1virtual machine, and then choose Connect to virtual machine. The Virtual Machine Viewer window will appear. 25. Make sure that folders BeforeCheckPoint1, BeforeCheckPoint2, and BeforeCheckPoint3 are on the desktop. 26. Shut down the 10215A-NYC-CL1virtual machine.
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-13
Additional Reading
What Is Virtual Machine Checkpoint?
Checkpoints
5-14
Install Integration services Check if the appropriate hard disk is associated to the virtual machine Check if integration services supports the operating system inside the virtual machine
Managing Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
5-15
Tools
Tool SCVMM Admin Console Virtual Machine Viewer Use for Managing and operating virtual machines, virtual hard disks, and checkpoints Connecting to a virtual machine desktop via RDP Where to find it MM folder inside Start Menu VMM Administration Console
5-16
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-1
Module 6
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
Contents:
Lesson 1: Creating a New Virtual Machine Using VMM 2008 R2 Lesson 2: Converting a Physical Server to a Virtual Machine Lesson 3: Converting and Migrating Virtual Machines Lesson 4: Cloning Virtual Machines Module Reviews and Takeaways Lab Review Questions and Answers 2 7 10 16 20 22
6-2
Lesson 1
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-3
6-4
Demonstration steps:
1. 2. 3. Start the New Virtual Machine wizard On NYC-VMM open SCVMM Admin Console. Click the Virtual Machines tab.
Customize the virtual machine settings 1. 2. 3. 4. 5. 6. In the Actions pane, click New virtual machine. In the New Virtual Machine wizard window, on Select Source page, click Create the new virtual machine with a blank virtual hard disk, and then click Next. On the Virtual Machine Identity page, in Virtual machine name box, type DemoVM. In the description box type: Virtual machine for testing purposes, and then click Next. On the Configure Hardware page, review the available options, but do not make any changes, and then click Next. On the Select Destination page, click Place the virtual machine on a host, and then click Next.
Choose a host for placement 1. 2. 3. 4. On the Select Host page, click NYC-HOST1.contoso.com. Browse to the Details, Rating Explanation, and SAN Explanation tabs. Show the notes in these tabs, and then click Next. On the Select Path page, type E:\VM, and then click Next. On the Select Networks page, click Next. On the Additional Properties page, review the available options, and then in the Operating system drop-down box, select 64-bit edition of Windows Server 2008 R2 Enterprise, and then click Next. Review the content on the Summary page, click View Script, and then in the Notepad window, review the cmdlets that will execute to complete these tasks. Click Create. Review the warning in Jobs window, and then close the window.
5. 6. 7.
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-5
8. 9.
Click Virtual Machines tab. Expand All Hosts, expand Contoso, and then click NYC-HOST1.
Store a virtual machine in the VMM library 1. 2. 3. 4. 5. 6. 7. 8. In the central pane, right-click DemoVM, and then select Store in library. On Select Library Server page, click NYC-VMM.contoso.com, and then click Next. On Select path page, click Browse. Click MSSCVMMLibrary, and click OK, and then click Next. On the Summary page, click Store. After the job completes, close the Jobs window. Click Library tab. Ensure that DemoVM appears in Library.
Demonstration steps:
Navigate to the library in VMM Admin Console In the Virtual Machine Manager window, click the Library tab.
Deploy the virtual machine from the library to NYC-Host2 1. 2. 3. 4. 5. 6. 7. 8. 9. Right-click the DemoVM virtual machine in the central pane, and then select Deploy. On a Select Host page, select NYC-Host2.contoso.com, and then click Next. On the Select Path page, type E:\VM, and then click Next. On the Select Network page, click Next without making changes. On the Summary page, click View Script, and review the cmdlets that will execute. Close the Notepad window. Click Deploy. Review warning in the Jobs window, and then close the window. Click the Virtual Machines tab, and then select the NYC-Host2 server. Ensure that DemoVM appears in the center pane.
6-6
Additional Reading
Which Guest Operating Systems Are Supported by Virtual Machines?
Supported Operating Systems for Virtual Machines Supported Hardware Capabilities About Virtual Machines and Guest Operating Systems
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-7
Lesson 2
6-8
How the P2V Process Uses MAP and Operations Manager 2007
Question: What is the difference between using Operations Manager 2007 and MAP for P2V scenarios? Answer: The MAP toolkit is for using when you are planning the P2V conversion process. You typically use it before P2V conversion actually happens, while you can use SCOM to monitor physical servers proactively and make some decisions on which hosts to virtualize. Additionally, SCOM stores over a year of performance and health data which means you can get a true idea of the performance trends of any machine over an extensive period during P2V planning, simply by running a report.
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-9
Additional Reading
What Is P2V Conversion? P2V: Converting Physical Computers to Virtual Machines in VMM How the P2V Process Uses MAP and Operations Manager 2007 Microsoft Assessment and Planning Toolkit
6-10
Lesson 3
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-11
6-12
Demonstration steps:
Before starting this demonstration, you must complete the following steps. 1. 2. 3. 4. 5. 6. 7. 8. On NYC-VMM, click Start, and in the Search box, type \\NYC-Host1\E$\Program Files\Microsoft Learning\10215\Labfiles\VMWare\, and then press ENTER. Copy Windows Server 2008 Standard Edition.vmx and SEA-APP-01.vmdk. Click Start, in Search box, type C:\Programdata\Virtual Machine Manager Library Files, and then press ENTER. Right-click on the empty space, and then click Paste. Close both Windows Explorer windows. Restore Virtual Machine Manager. In Library view, click NYC-VMM.contoso.com, and then in the Actions pane, under Library Server, click Refresh. Verify SEA-APP-01 is listed in the details pane.
Select the VMware virtual machine from the library In Library view, click VMs and Templates, in the details pane, and then click SEA-APP-01.
Complete the Library Actions Convert Virtual Machine wizard 1. 2. 3. 4. 5. 6. 7. 8. In the Actions pane, click Convert virtual machine. The Convert Virtual Machine Wizard appears. On the Select Source page, click Browse. The Select Virtual machine source dialog box appears. Click SEA-APP-01, click OK, and then click Next. On the Virtual Machine Identity page, accept the defaults, and then click Next. On the Virtual Machine Configuration page, select one CPU and 512MB of Memory, and then click Next. On the Select Host page, select to deploy machine to NYC-Host1, and then click Next. On the Select Path page, accept the defaults, and then click Next. On the Select Network page, in the Virtual Network list, select External Network, and then click Next.
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-13
9.
On the Additional Properties page, accept the defaults, and then click Next.
10. On the Summary page, review the configuration, and then click Create. Test the functionality of virtual machine 1. 2. 3. 4. 5. 6. 7. 8. 9. The Jobs window appears. Verify the completion of V2V conversion. In Virtual Machine view, in the details pane, click SEA-APP-01. In the Actions pane, under Virtual Machine, click Start. Verify that SEA-APP-01 starts in Details view. In the Actions pane, under Virtual Machine, click Save state. In the Virtual Machine Manager dialog, click Yes. Verify that SEA-APP-01 saves the state, and provides an option for you to Discard state in the Actions pane. In the Actions pane, under Virtual Machines, click Start. Verify that SEA-APP-01 starts in Details view.
10. In the Actions pane, under Virtual Machine, click Stop. 11. In the Virtual Machine Manager dialog box, click Yes
10. In Actions pane, click on Migrate storage option. 11. In Migrate Virtual Machine Wizard on the Select Path page, click the Browse button next to the Virtual machine Path box. 12. Browse to the E drive, select the VM-Migrated folder, and then click OK 13. Select the option Add this path to the list of default virtual machine paths on the host. 14. Click Next.
6-14
15. On the Summary page, click View Script button to review the cmdlets that will be execute to perform the migration. 16. Click Move. 17. Close the Jobs window when the job is complete. 18. Using Explorer, navigate to E:\VM-Migrated, and then verify that the virtual machine is migrated.
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-15
Additional Reading
What Is V2V Conversion?
V2V: Converting a Virtual Machine to a VMM Virtual Machine
6-16
Lesson 4
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-17
6-18
Demonstration steps:
Run the New Virtual Machine wizard 1. 2. 3. 4. Click the Virtual Machines tab, and then select the DemoVM virtual machine. In the Actions pane, in the Virtual Machine Manager Administrator Console, click Clone. Perform cloning On the Virtual Machine Identity page, configure the following: 5. 6. 7. 8. 9. Virtual machine name (required). Type ClonedDemoVM. Description (optional). Type a description for the new virtual machine, such as Cloned virtual machine for testing purposes. Owner (required). The owner must have a domain account in Active Directory Domain Services (AD DS). Type Contoso\Administrator.
Click Next. On the Configure Hardware page, review the available options, but do not make any changes, and then click Next. On the Select Destination page, click Store the virtual machine in the library, and then click Next. On the Select Library Server page, click Next. On the Select Path page, click Browse, select the MSSCVMMLibrary, and then click OK.
10. Click Next. 11. On a Summary page, review the configuration settings. To change the settings, click Previous. To begin creating the virtual machine, click Create.
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-19
Additional reading
What Is Virtual Machine Cloning?
Cloning a Virtual Machine in VMM
6-20
Change the host-rating metrics to accommodate the needs of your specific environment The operating systems on the source machine do not support online conversion, so use Offline conversion Do not have the necessary files Version of VMWare virtual machine is not supported Machine is not turned off
Creating and Deploying Virtual Machines Using Microsoft System Center Virtual Machine Manager 2008 R2
6-21
Tools
Tool VMM Admin Console Hyper-V Manager Use for Creating, migrating, converting, and deploying virtual machines Creating and managing virtual machines Providing reports about virtualization candidates Where to find it
Administrative Tools
MAP
6-22
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-1
Module 7
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
Contents:
Lesson 1: Overview of the VMM Library Lesson 2: Managing Profiles and Templates Lesson 3: Making the VMM Library Highly Available Module Reviews and Takeaways Lab Review Questions and Answers 2 8 13 15 17
7-2
Lesson 1
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-3
7-4
2. 3. 4. 5. 6. 7. 8.
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-5
Demonstration steps
1. On NYC-SVR5, use Windows Explorer to create a shared folder named Library on volume C. Share the folder with Read permissions for Authenticated Users. 2. On NYC-VMM, in the VMM Administrator Console, in the Actions pane, click Add library server. 3. On the Enter Credentials Wizard page, type Administrator for user name, Pa$$w0rd for password, and Contoso for the domain, and then click Next. 4. On the Select Library Servers page, type NYC-SVR5 in the Computer name field, and then click Add to add the server to the list of selected servers. Click Next. 5. On the Add Library Shares page, place a check mark in the box next to Library, and then click Next. 6. On the Summary page, click the View Script button to display the Windows PowerShell Virtual Machine Manager cmdlets that will perform this operation. 7. Click Add Library Servers. 8. Close the Jobs window after the action completes. 9. In the VMM Administrator Console, click the Library tab. Make sure that NYC-SVR5 appears as the Library Server. 10. Right-click NYC-SVR5.contoso.com in the Library view, and then click Properties. 11. In the Library group text box, type Contoso, and then click OK. Repeat steps 10 and 11 for NYCVMM.contoso.com. 12. In the Library view, click Columns on the toolbar. 13. In the Select Columns dialog box, select Library Group. 14. Use the Move Up and Move Down buttons to move the column to the position where you want it in the results list, and then click OK. This adds a Library Group column to the results list, and adds Library Group to the Group by list. 15. Sort by the new column or use the Group by field to group your Library servers by Library group.
Demonstration steps
1. On NYC-SVR5, create a shared folder named C:\Library2 using Windows Explorer. Share the folder with Read permissions for Authenticated Users. 2. 3. 4. 5. On NYC-VMM, in the VMM Administrator Console, click the Library tab, expand Library Servers in the navigation pane, and then navigate to the NYC-SVR5.contoso.com library server. With the server selected, in the Actions pane, under Library Server, click Add library shares. On the Add Library Shares page, select the Library2 check box, and then click Next. On the Summary page, click Add Library Shares.
7-6
Demonstration steps
1. 2. 3. 4. 5. On the NYC-SVR5 library server, copy the E:\Labfiles\test.iso file to the C:\Library folder. On NYC-VMM, in the VMM Administrator Console, display the Library view. In the navigation pane, expand Library Server, and then navigate to the library share named Library. With the library share selected, in the Actions pane, under Library Share, click Refresh. Make sure that all files on the share index immediately in Virtual Machine Manager and are added to the Library view.
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-7
Additional Reading
Demonstration: Adding Resources to the Library
Adding File-Based Resources to the Library
7-8
Lesson 2
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-9
7-10
Demonstration steps
1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-VMM, in the SCVMM Admin Console, switch to the Library view. Click New hardware profile from the Library Actions pane. On the General tab, in the Name text box, type Test Desktop profile. In the Description text box, type Hardware settings for desktop machines. Click the Hardware Settings tab. Click the BIOS section. In the right pane, click PXE Boot, and then click Up twice. Place a check mark next to Enable Num Lock. Click the Processor section, and then select 1.80 GHz Pentium 4. Click Memory section, and then type 1024 in the Virtual Machine memory text box. Click the IDE Devices Virtual DVD drive section. Click Existing image file, and then click Browse. Click test.iso, and then click OK. In the title bar, click Network Adapter, and then click the Emulated Network adapter.
10. Click Network Adapter 2, and then change the Network Location to Internal Network. 11. Click OK. 12. Click New guest OS profile from the Library Actions pane. 13. On the General tab, in the Name text box, type Windows7. 14. Click the Guest OS tab. 15. Click the Identity Information section. In the Full name box, type your name, and in the Organization name box, type Contoso. 16. Click the Admin Password section. Type Pa$$w0rd in both the Password and Confirm fields. 17. Click Time Zone section. In the right pane, choose GMT-08:00 time zone. 18. Click Operating System section. In the right pane, in the Operating system drop-down box, select Windows 7. 19. Click OK. In the Virtual Machine Manager warning dialog box, click Close. 20. Change the User name to Admin, type Pa$$w0rd in both the Password and Confirm fields, and then click OK.
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-11
Demonstration steps
1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-VMM, in the SCVMM Admin Console, switch to the Library view. Click New template from the Library Actions pane. On the Select Source page, click Use an existing template or a virtual hard disk stored in library, and then click Browse. Click 10215A-CoreTest.vhd, and then click OK. Click Next. On a Template Identity page, in the Template name text box, type TestTemplate, and then click Next. On a Configure Hardware page, open the drop-down box next to Hardware profile, choose Test Desktop Profile, and then click Next. On the Guest Operating System page, open the drop-down box next to Guest operating system profile, select Windows 7, and then click Next. On the Summary page, click Create.
10. Close the Jobs window after the job completes. 11. In a Library view, click Library Servers, click the Filters tab, click Type tab. Place a check mark only on Template. 12. In the central pane, right-click TestTemplate, and then click Properties. 13. In the template properties window, review the tabs and configuration settings, and then click the Settings tab. 14. Change Quota points to 5, and then click OK.
7-12
Additional Reading
What Is the Virtual Machine Template?
Creating Virtual Machines from a Template
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-13
Lesson 3
7-14
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-15
Resources do not appear in Library after you add them to the Library share You cannot add a File Server Cluster as a library server
7-16
Question: What is most efficient way to achieve the desired result? Answer: They should create one hardware profile to describe the required hardware configuration. Then, they should create two guest operating system profiles, one for Windows 7 and one for Windows Vista. Within these guest operating system profiles, they should configure answer files, previously added to Library, to enable zero-touch installation. They also should add hard disks on which you run Sysprep for Windows 7 and Windows Vista to the Library. Finally, they should create virtual machine templates: one for Windows 7 and one for Windows Vista. Additionally, they should include common hardware profiles, separate guest operating system profiles, and prepared hard disks.
Tools
Tool Use for VMM Console Failover Clustering Management Console Adding library servers Adding library shares Creating and managing templates Start Menu Where to find it
Administrative Tools
Configuring and Managing the Microsoft System Center Virtual Machine Manager 2008 R2 Library
7-17
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-1
Module 8
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 SelfService Portal
Contents:
Lesson 1: Configuring User Roles Lesson 2: Installing and Configuring the VMM Self-Service Portal Module Reviews and Takeaways Lab Review Questions and Answers 2 5 13 15
8-2
Lesson 1
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-3
Question: Why would delegated administration be the best role to which to add the remote administrators? Answer: Delegated administrative privileges allow them to administer their remote offices without compromising security at other remote offices.
8-4
Create a new user role named ContosoAdmins with delegated permissions to the Test host group and to all library servers 1. 2. 3. 4. 5. 6. 7. 8. 9. Right-click in the User Roles pane, and then click New user role. In the User Role Name box, enter ContosoAdmins. From the User role profile drop-down list box, select Delegated Administrator. Click Next. On the Add Members page, click Add. In the Select Users, Computers, or Groups box, type VMMAdmins, and then click Check Names. Click OK, and then click Next. On the Select Scope page, select the Contoso and All Libraries check boxes, and then click Next. Click Create.
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-5
Lesson 2
8-6
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-7
Demonstration steps:
Install the Self-Service Portal prerequisites 1. 2. 3. 4. 5. 6. On NYC-VMM, open Server Manager, and then click Roles. Click Add Roles. Select the Web Server (IIS) check box. Click Next twice. On the Select Role Services page, select the ASP.NET check box, and then click Add Required Role Services. Select the following check boxes: 7. 8. 9. Windows Authentication IIS 6 Metabase Compatibility IIS 6 WMI Compatibility
Click Next, and then click Install. When the installer completes, click Close. Close Server Manager.
Install the Self-Service Portal 1. 2. 3. 4. Click Start, click Run, type \\NYC-Host1\E$\Program Files\Microsoft Learning\10215\Labfiles\SCVMM 2008 R2, and then press ENTER. Start the SCVMM Installer by double-clicking setup.exe. Under SETUP, click VMM Self-Service Portal. Click I accept the terms of the agreement.
8-8
5. 6. 7. 8. 9.
On the Microsoft Update page, click I dont want to use Microsoft Update, and then click Next. On the Prerequisites Check page, click Next. On the Installation Location page, click Next. On the Web Server Settings page, change the TCP Port for the Self-Service Portal to 88, and then click Next. Click Install. When the installation finishes, clear the Check for the latest Virtual Machine Manager updates check box, and then click Close.
Review the Web server configuration 1. 2. 3. Open Internet Information Services (IIS) Manager. Expand NYC-VMM (CONTOSO\administrator). Expand Sites, and then click Microsoft System Center Virtual Machine Manager 2008 R2 SelfService Portal (x64). This is the Web site that is created when you install the Self-Service Portal Web site. In the Actions pane, click Bindings. Click http, and then click Edit. You can use the Edit Site Binding dialog box to configure the port number that the site uses and to configure the host header. Click Cancel. In the Site Bindings dialog box, click Add. Click https in the Type drop-down list box. In the SSL Certificate list, click SCVMM_CERTIFICATE_KEY_CONTAINERNYC-VMM.Contoso.com, and then click OK. This certificate is the self-signed certificate that was configured when you installed VMM on the server. Click Yes, click Close, and then close IIS Manager.
4. 5. 6. 7. 8.
9.
Modify the WinSRV2008 template to specify a quota value of 2. Connect to the Self-Service Portal site, and logon as a member of the IT group. Verify the user permissions.
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-9
Demonstration steps:
Preparation Steps In order to complete this demonstration, you need to create the Win2008R2Core template in VMM. Complete the following steps to create this template. 1. On NYC-VMM, copy file Base10B-WS08R2Core-HV.vhd from \\NYC-Host1\E$\Program Files\Microsoft Learning\Base to C:\ProgramData\Virtual Machine Manager Library Files\VHDs. On NYC-VMM, in Library view, refresh the Library by right-clicking NYC-VMM.Contoso.com, and then choosing Refresh. In the SCVMM Admin Console, click Library, and if required, expand Library Servers, expand NYC-VMM.Contoso.com, and then click VMs and Templates. In the left pane, under Filters, and then click Clear. In the Actions pane, under Library Actions, click New template. The New Template Wizard appears. On the Select Source page, next to Use an existing template or a virtual hard disk stored in the library, click Browse. The Select Template Source dialog box appears. Under Type: Virtual Hard Disk, click Base10B-WS08R2Core-HV.vhd, and then click OK. Click Next. On the Template Identity page, in the Template name field, type Win2008R2Core, and then click Next.
2. 3. 4. 5. 6. 7. 8. 9.
10. The Configure Hardware page appears. In the Hardware Profile pane, click Memory. 11. In the Memory pane, change the Virtual machine memory field to 1024. 12. Click Next. 13. The Guest Operating System page appears. In the left pane, under General Settings, click Admin Password. 14. In the Password and Confirm fields, type Pa$$w0rd. 15. In the left pane, under General Settings, click Operating System. 16. In the Operating system list, click 64-bit edition of Windows Server 2008 R2 Enterprise. 17. In the left pane, under Networking, click Domain / Workgroup. 18. Click Domain. 19. In the Domain field, type Contoso.com. 20. In the Domain user field, type Contoso\Administrator. 21. In the Password and Confirm fields, type Pa$$w0rd. 22. Click Next. 23. The Summary page appears. Click Create. 24. After the job finishes, close the Jobs window. Create a Self-Service user role for IT users
8-10
1. 2. 3. 4. 5. 6. 7. 8. 9.
On NYC-VMM, in the VMM Administrator Console, click the Administration tab on the bottom left. From the Administration menu, click User Roles. Right-click in the User Roles pane, and then click New user role. In the User Role Name box, enter IT Admins. From the User role profile drop down menu, select Self-Service User. Click Next. On the Add Members page, click Add. In the Select Users, Computers, or Groups box, type IT, and then click Check Names. Click OK, and then click Next.
10. On the Select Scope page, click Test, and then click Next. 11. On the Virtual Machine Permissions page, verify that All actions is selected, and then click Next. 12. On the Virtual Machine Creation Settings page, select the Allow users to create new virtual machines check box. 13. Click Add, and then click the Win2008R2Core template. Click OK. 14. Check the Set quota for deployed virtual machines check box. 15. In the Maximum quota points allowed for the user role field, type 20. 16. Select the Share quota across user role members check box, and then click Next. 17. On the Library Share page, select the Allow users to store virtual machines in a library check box, and then click Next. 18. On the Summary page, click Create. Configure a virtual machine template 1. 2. 3. In the VMM Administrator Console, in the left pane, click Library. In the center pane, right-click the Win2008R2Core template, and then click Properties. On the Settings tab, change the Quota Points value to 2. Click OK.
Test access to the Self-Service Portal 1. 2. 3. 4. 5. On NYC-VMM, open Microsoft Internet Explorer, and then connect to http://NYC-VMM:88. In the Domain\username field, type Contoso\Charlotte. In the Password field, type Pa$$w0rd, and then click Log On. On the Computers tab, in the right pane, under Create, click New Computer. Under Creation Source, verify that only Win2008R2Core is available. Under System Configuration, fill in the following information:
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-11
6.
Click Create. Creating the virtual machine will take several minutes. You can track the progress in the Jobs view in the VMM Administrator Console.
8-12
Additional Reading
Securing the VMM Self-Service Portal
Configuring SSL on a Web Server or Web Site (IIS 6.0) Securing Communications with Secure Socket Layer (SSL) Hardening VMM Self-Service Web Servers Single Sign-On for Terminal Services How to Configure Integrated Windows Authentication for the VMM Self-Service Portal
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-13
Users can access the Self-Service Portal site, but they cannot log on. Users cannot create virtual machines by using the Self-Service Portal, even though their user role has the required permission Creating virtual machines through the Self-Service Portal is very slow The virtual machines created by users through the Self-Service Portal are not located on the correct Hyper-V hosts
8-14
branch office is minimized when users in the branch office create new virtual machines. What should you do? Answer: You will need to configure the VMM library server in the branch office, and then ensure that the virtual machine templates required for the branch office are stored in the local library. Then ensure that the Self-Service users in the branch office can use only the local library server.
Configuring User Roles and the System Center Microsoft System Center Virtual Machine Manager 2008 R2 Self-Service Portal
8-15
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-1
Module 9
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
Contents:
Lesson 1: Overview of the Offline Virtual Machine Servicing Tool Lesson 2: Configuring WSUS and the Offline Virtual Machine Servicing Tool Module Reviews and Takeaways Lab Review Questions and Answers 2 5 13 15
9-2
Lesson 1
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-3
9-4
Additional Reading
Methods for Maintaining Software Updates
Windows Server Update Services (WSUS) Technical Library System Center Configuration Manager 2007 Library
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-5
Lesson 2
9-6
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-7
Demonstration preparation
To run this demo you must import NYC-SVR6 virtual machine on NYC-Host2, install the Web Server (IIS) server role, install WSUS and restore the update database. Detailed steps for preparation: 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-HOST1, open Hyper-V Manager. Click NYC-Host2. In the Actions pane, click Import Virtual Machine. In the Import Virtual Machine dialog box, click Browse. Browse to E:\Program Files\Microsoft Learning\10215\Drives, click 10215A-NYC-SVR6, and then click Select Folder. Click Import. Right-click 10215A-NYC-SVR6, and then click Start. In Hyper-V Manager, right-click NYC-SVR6, select Connect to virtual machine, and then click Switch User. Log on to NYC-SVR6 as .\Administrator using the password Pa$$w0rd. Wait for Server Manager to open and wait until the Resume Configuration Wizard finishes running. Click Finish, and then log off NYC-SVR6. Note: This step is required only because the Resume Configuration Wizard was not completely run during the virtual machine setup. Installing IIS 1. 2. 3. 4. 5. 6. Log on to NYC-SVR6 as Contoso\Administrator using the password Pa$$w0rd. Open Server Manager, and in the console tree, click Roles. In the details pane, click Add Roles. In the Add Roles Wizard, click Next. On the Select Server Roles page, select Web Server (IIS). The Add Roles Wizard dialog box appears. In the Add Roles Wizard dialog box, click Add required features, and then click Next. On the Web Server (IIS) page, click Next.
9-8
7.
On the Select Role Services page, select the following check boxes. When prompted, click Add Required Role Services. a. b. c. d. ASP.NET Windows Authentication IIS 6 Metabase Compatibility Dynamic Content Compression
8. 9.
Click Next, and then click Install. When the installation is complete, click Close.
Installing WSUS and restoring updates 1. 2. 3. 4. 5. 6. 7. On NYC-SVR6 as Contoso\Administrator, browse to E:\ Labfiles\WSUSInstall. Double-click WSUS30-KB972455-x64. In the Windows Server Update Services 3.0 SP2 Setup Wizard, click Next. On the Installation Mode Selection page, ensure that Full Server installation including Administration Console is selected, and then click Next. On the License Agreement page, click I accept the terms of the License agreement, and then click Next. On the Select Update Source page, click Next. On the Database Options page, ensure that Install Windows Internal Database on this computer is selected, and that C:\WSUS is entered for the database location, and then click Next. On the Web Site Selection page, click Next to use the existing IIS Default Web site. On the Ready to Install Windows Server Update Services 3.0 SP2 page, click Next.
8. 9.
10. When the installation completes, click Finish. After approximately 15 seconds, the WSUS Configuration Wizard will appear. 11. Click Cancel. 12. On NYC-SVR6, click Start, point to All Programs, Accessories and then click Command Prompt. 13. Type Net Stop MSSQL$Microsoft##SSEE, and then press ENTER. 14. Click Start, and then click Computer. 15. Open E:\LabFiles\WSUSBackup. 16. Click Edit, and then click Select All. 17. Click Edit, and then click Copy. 18. In the Address bar, click Computer. 19. Browse to C:\WSUS\ 20. Click Edit, and then click Paste.
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-9
21. In the Copy File dialog box, click Copy and Replace. (This dialog box can appear more than once.) 22. When the file copy is complete, at the command prompt, type Net Start MSSQL$Microsoft##SSEE, and then press ENTER. 23. Click Start, point to Administrative Tools, and then click Internet Information Services (IIS) Manager. 24. In the tree view, expand the tree under the NYC-SVR6 server name, and then click Application Pools. 25. Right-click WsusPool, and then click Recycle. 26. Close IIS Manager. 27. At the command prompt, type: cd C:\Program Files\Update Services\Tools, and then press ENTER. 28. Type wsusutil reset, and then press ENTER. 29. Close the command prompt. 30. Open Server Manager. 31. Expand Roles. 32. Expand Windows Server Update Service. 33. Expand Update Services. 34. Expand Updates. 35. Click All Updates. 36. In the Status drop-down box in the details pane, select Any. Click Refresh. You should see unapproved updates for Windows Server 2008 R2 listed.
Demonstration steps
Configure Group Policy settings 1. 2. 3. 4. On NYC-DC1, click Start, click Administrative Tools, and then click Group Policy Management. Expand Forest: Contoso.com, expand Domains, expand Contoso.com, and then click Group Policy Objects. In the right pane, right-click Default Domain Policy, and then click Edit. In Group Policy Management Editor, expand Computer Configuration, expand Policies, expand Administrative Templates, expand Windows Components, and then click on Windows Update, which is the last item in the list. In the right pane, double-click Configure Automatic Updates. Click Enabled. In the Configure automatic updating box, click 4 Auto download and schedule the install, and then click OK. In the right pane, double-click the following option: Specify intranet Microsoft update service location.
5. 6. 7.
9-10
8. 9.
Click Enabled. In the Options box, type HTTP://nyc-svr6 in both fields, and then click OK. Under Computer Configuration, under Policies, expand Windows Settings, expand Security Settings, expand Windows Firewall with Advanced Security, and then expand Windows Firewall with Advanced Security LDAP.
10. Right-click Inbound Rules, and then click New Rule. 11. On the Rule Type page, click Predefined, click File and Printer Sharing, click Next twice, and then click Finish. 12. Right-click Inbound Rules, and then click New Rule. 13. On the Rule Type page, click Predefined, click Windows Management Instrumentation (WMI), click Next twice, and then click Finish. 14. Right-click Inbound Rules, and then click New Rule. 15. On the Rule Type page, click Predefined, click Remote Administration, click Next twice, and then click Finish. 16. Close Group Policy Management Editor, and then close the Group Policy Management console. 17. Create a computer group in WSUS 18. On NYC-SVR6, click Start, click Administrative Tools, and then click Windows Server Update Services. 19. In the Update Services console, expand Computers, and then click All Computers. 20. Right-click All Computers, and then click Add Computer Group. 21. In the Add Computer Group dialog box, type ContosoGroup. 22. Click Add. 23. In the WSUS Administration Console, expand All Computers. 24. Click Unassigned Computers. 25. In the Status drop-down list box, click Any, and then click Refresh. 26. Click any available virtual machine. 27. Right-click the virtual machine, and then click Change Membership. 28. In the Set Computer Group Membership dialog box, select the ContosoGroup check box. 29. Click OK. Approve updates KB972270 and KB978251 in the WSUS console 1. 2. 3. 4. 5. On the WSUS console tree, expand Updates, and then click All Updates. In the Status drop-down list box, click Any, and then click Refresh. In the details pane, while pressing the CTRL key, select updates KB972270 and KB978251, and then right-click and select Approve. The Approved Updates dialog box appears. In the Approved Updates dialog box, click the icon next to ContosoGroup, and then click Approved for Install. Click OK.
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-11
6. 7.
Demonstration: Installing and Configuring the Offline Virtual Machine Servicing Tool
Demonstration steps
Set the execution policy in Windows Power Shell. Install the Offline Virtual Machine Servicing Tool. Configure the Offline Virtual Machine Servicing Tool settings and options. Create a servicing job (optional)
Demonstration steps
Set the execution policy in Windows Power Shell 1. On NYC-VMM, click Start, click All Programs, click Microsoft System Center, click Virtual Machine Manager 2008 R2, and right-click Windows PowerShell Virtual Machine Manager. Select Run as administrator from the drop-down list menu. In Windows PowerShell command prompt window, type: set-executionpolicy remotesigned, and then press ENTER. Type y, and then press ENTER. 3. Close Windows PowerShell window.
2.
Install the Offline Virtual Machine Servicing Tool 1. On NYC-VMM, browse to \\NYC-Host1\E$\Program Files\Microsoft Learning\10215\Labfiles\OVMST, and then double-click the OfflineVMServicing_x64.msi file. On the Welcome screen, click Next to continue the installation. On the End User License Agreement screen, click I accept the terms in the License Agreement, and then click Next. On the Features to Install screen, click Next. On the next screen, click Install to install the Offline Virtual Machine Servicing Tool. On the final screen, click Finish to complete the installation. In the \\NYC-Host1\E$\Program Files\Microsoft Learning\10215\Labfiles\PsTools folder, select all files, and then click Ctrl+C. Browse to c:\Program Files\Microsoft Offline Virtual Machine Servicing Tool\bin, and then paste the files. Close Windows Explorer.
2. 3. 4. 5. 6. 7. 8. 9.
Configure the Offline Virtual Machine Servicing Tool settings and options 1. Click Start, click All Programs, open the Microsoft Offline Virtual Machine Servicing Tool folder, and then click Microsoft Offline Virtual Machine Servicing Tool to run the tool.
9-12
2. 3.
After Offline Virtual Machine Servicing Tool opens, click Configure Tool in the Actions pane. On Configure Servers page, enter NYC-VMM in VMM server field, and enter NYC-SVR6 in WSUS server field. Leave the Configuration Manager primary site server field blank, and then click Next. On Configure Maintenance Hosts page, choose Contoso in the Maintenance host group drop-down list box. In Available hosts section, select NYC-HOST1, and then click the right arrow (>). Click Next. On Configure Global Settings page, type the value 5 in both timeout fields, and then click Finish.
4. 5. 6.
Create a servicing job (optional) Note: Performing this step requires that the test virtual machine is deployed and then stored to the VMM Library. This preparation requires 20-30 minutes to perform. If there is not enough time, you can skip this as you will perform the whole procedure in the lab. If time permits, before this part of the demonstration do the following tasks: Module 6, Lab Answer Key, Exercise 2, Task 1 Module 9, Lab Answer Key, Exercise 1, Task 1 Module 9, Lab Answer Key, Exercise 1, Task 6 After these tasks are successfully performed, you can proceed to the following: 1. 2. 3. 4. 5. 6. 7. 8. 9. Click the Servicing Jobs tab. In the Actions pane, under Servicing Jobs, click New Servicing Job. On Configure Job Type page, type OfflineVMUpdate in Servicing job name field, click WSUS in Software update management system box, and then click Next. On Select Virtual Machines page, click Select virtual machines from a VMM Library. In Available offline virtual machines box, select an available virtual machine, and then click the right arrow. Click Next. On the Select a Network page, click Use the configured virtual machine network, and then click Next. On Select Maintenance Hosts, click NYC-HOST1 in Available maintenance hosts box, and click the right arrow (>), and then click Next. On Configure Account Information, enter Contoso in the Domain field, Administrator in the User name field, and Pa$$w0rd in the Password field, and then click Next.
10. On the Schedule the Servicing Job page, click Schedule the servicing job, and select todays day and a time five minutes forward from the current time. 11. Click Cancel, and then click Yes, as you will perform updates during the lab.
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-13
The Offline Virtual Machine Servicing tool does not run. You cannot select the desired virtual machine from the Offline Virtual Machine Servicing Tool servicing job wizard. The virtual machine is not updated. Servicing job fails to run.
9-14
management solution. On the System Center Configuration Manager, they should perform following steps: Ensure that the software update point has downloaded the updates. Ensure that the updates have been packaged for deployment. Create deployments for the updates that include the deployment deadline. To specify that the updates should be installed as soon as possible, which is the next time the virtual machines contact the Configuration Manager 2007 database, set the deadline to the shortest possible interval so that the deadline has passed by the time that the servicing jobs begin to run.
The Configuration Manager 2007 deployment also must identify the virtual machine collections to which the updates apply. At the end, they should create servicing jobs, and optionally virtual machine groups, inside the Offline Virtual Machine Servicing Tool.
Tools
Tool Offline Virtual Machine Servicing Tool 2.1 WSUS 3.0 SP2 Use for Offline update of virtual machines stored in the VMM library Update management Where to find it
Maintaining Software Updates Using the Offline Microsoft System Center Virtual Machine Manager 2008 R2 Servicing Tool
9-15
10-1
Module 10
Backup and Restore Strategies for Virtual Machines
Contents:
Lesson 1: Overview of Backup and Restore Options for Virtual Machines and the Virtual Machine Database Lesson 2: Backing Up the Hyper-V Infrastructure by Implementing Data Protection Manager 2007 SP1 Module Reviews and Takeaways Lab Review Questions and Answers 2 9 16 18
10-2
Lesson 1
Overview of Backup and Restore Options for Virtual Machines and the Virtual Machine Database
Contents:
Question and Answers Detailed Demo Steps Additional Reading 3 4 8
10-3
Demonstration: Backing Up and Restoring Virtual Machines by Using Windows Server Backup
Question: List some limitations of performing virtual machine backups with Windows Server Backup software? Answer: For example, you cannot back up a specific virtual machine. You can back up a volume that contains virtual machine(s). Also, you cannot restore individual files inside the virtual machine.
10-4
Demonstration steps
To speed up this demonstration, complete the following steps to create a virtual machine with a blank hard disk on the V: drive on NYC-Host2. Create a virtual machine for backup 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-VMM, in SCVMM Admin Console, in the Actions pane, click New virtual machine. On the Select Source page, click Browse, click Blank Disk Small, and then click OK. Click Next. On the Virtual Machine Identity page, type Demo10-VM as the Virtual machine name, and then click Next. The Configure Hardware page appears. Click Next. The Select Destination page appears. Make sure Place the virtual machine on a host is selected, and then click Next. The Select Host page appears. Ensure that nyc-host2.contoso.com is selected, and then click Next. The Select Path page appears. Click Browse, click VMStorage (V:), click OK, and then click Next. The Select Networks page appears. In the Virtual Network list, click External Network, and then click Next.
10. The Additional Properties page appears. Click Next. 11. The Summary page appears. Verify that the option to Start the virtual machine after deploying it on the host is not selected, and then click Create. 12. When job is complete, close the Jobs window. Note: To register the Hyper-V VSS writer with Windows Server Backup, perform the following steps. Alternatively, if your computer has an Internet connection, you can go to the Web site, How to back up Hyper-V virtual machines from the parent partition on a Windows Server 2008based computer by using Windows Server Backup, and choose the Microsoft FixIt option. This generates the same result as using Regedit, but does not require that you edit the registry manually. Register VSS Hyper-V writer in Windows Server Backup on NYC-Host2
10-5
1. 2. 3. 4. 5. 6. 7. 8. 9.
On NYC-Host2, Click Start, click Run, type regedit, and then click OK. Locate the following registry key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion. Right-click CurrentVersion, point to New, and then click Key. Type WindowsServerBackup, and then press ENTER. Right-click WindowsServerBackup, point to New, and then click Key. Type Application Support, and then press ENTER. Right-click Application Support, point to New, and then click Key. Type {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}, and then press ENTER.
10. Right-click {66841CD4-6DED-4F4B-8F17-FD23F8DDC3DE}, point to New, and then click String Value. 11. Type Application Identifier, and then press ENTER. 12. Right-click Application Identifier, and then click Modify. 13. In the Value data box, type Hyper-V, and then click OK. 14. On the File menu, click Exit. Perform a virtual machine backup, on NYC-Host2 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-Host2, click Start, navigate to Administrative Tools, and then click Windows Server Backup. In the Windows Server Backup window, click Backup Once in the Actions pane. In the Backup Once Wizard, on the Backup Options page, click Different options, and then click Next. On the Select Backup Configuration page, select Custom, and then click Next. On the Select Items for Backup page, click Add Items. Place the check mark next to VMStorage (V:) volume, and then click OK. On the Select Items for Backup page, click Advanced Settings, click VSS Settings tab, select VSS full Backup, and then click OK. On the Select Items for Backup page, click Next. On the Specify Destination Type page, click Local drives, and then click Next.
10. On the Select Backup Destination in Backup Destination drop-down box, select Local Disk (E:), and click then Next. 11. On the Confirmation page, review the settings, and then click Backup. 12. On the Backup Progress page, click Close after the backup completes. Delete virtual machine files 1. 2. 3. On NYC-Host1, open Hyper-V Manager console from Administrative Tools. Click NYC-Host2. Right-click on Demo10-VM virtual machine, and then select Delete. In the Delete Selected Virtual Machines window, click Delete.
10-6
4. 5.
On NYC-Host2 ,open Windows Explorer, navigate to folder V:\, and then open the folder. Delete the subfolder named Demo10-VM. Note: If you are not able to delete the subfolder, wait for 30 seconds, and then try again.
To perform a recover procedure for the virtual machine by using Windows Server Backup software, follow these steps: 1. 2. 3. 4. 5. 6. 7. 8. On NYC-Host2, click Start, navigate to Administrative Tools, and then click Windows Server Backup. In the Windows Server Backup window, click Recover in the Actions pane. On the Getting Started page, click This server, and then click Next. On the Select Backup Date, accept the default value, and then click Next. On the Select Recovery Type page, select Applications, and then click Next. On the Select Application page, make sure that Hyper-V is selected, and then click Next. On the Specify Recovery Options page, select Recover to original location, and then click Next. On the Confirmation page, click Recover.
After recovery is complete, restore the Hyper-V Manager console, and make sure that Demo10-VM is present.
Demonstration steps
Perform a database backup with the System Center Virtual Machine Admin Console 1. 2. 3. 4. On NYC-VMM, create folder C:\backupVMM using Windows Explorer. Open the System Center Virtual Machine Admin Console on NYC-VMM. In Administration view, click General, and then, in the Actions pane, click Back up Virtual Machine Manager. In the Virtual Machine Manager Backup dialog box, type the path for the backup files destination folder. The folder must not be a root directory, and it must be accessible to the SQL Server. Type C:\backupVMM, and then click OK. Navigate to C:\backupVMM with Windows Explorer, and ensure that backup was created, because VMM does not provide a confirmation screen. Note the name of the backup file, because you will need it for the restore procedure.
5.
Perform a database restore with scvmmrecover.exe tool To restore the VMM database, on the computer to which you are restoring the VMM database, run the SCVMMrecover.exe tool from the command line. The scvmmrecover.exe tool is located in the installation folder of the VMM inside the bin subfolder.
10-7
1. 2. 3. 4.
Open Windows Explorer, and navigate to C:\Program Files\Microsoft System Center Virtual Machine Manager 2008 R2. Hold down SHIFT, and then right-click the bin folder. Select Open command window here. In a Command Prompt window, type scvmmrecover.exe path C:\backupVMM\backupfilename, and then press ENTER. Note that backupfilename is the name of backup file, as noted in step 5 during backup. Type y to confirm, and then press ENTER. Confirm that restore was performed successfully. You will receive a confirmation message in the command prompt window.
5. 6.
10-8
Additional Reading
Virtual Machine Backup and Restore
How Volume Shadow Copy Service Works
Demonstration: Backing Up and Restoring Virtual Machines by Using Windows Server Backup
How to back up Hyper-V virtual machines from the parent partition on a Window Server 2008based computer by using Window Server Backup
10-9
Lesson 2
Backing Up the Hyper-V Infrastructure by Implementing Data Protection Manager 2007 SP1
Contents:
Question and Answers Detailed Demo Steps Additional Reading 10 11 15
10-10
10-11
Demonstration steps
Preparation steps In order to be able to see Reporting Templates in DPM 2007 console, perform following steps : 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-SVR1, use Windows Explorer to browse to folder C:\Windows Right click folder Temp and select Properties Click Security tab and click Edit Click Add Type NYC-SVR1\IIS_IUSRS;NETWORK SERVICE, and click Check Names. Click Ok Click NETWORK SERVICE in the list, and then place check mark in Allow column for Modify permission Click IIS_IUSRS (NYC-SVR1\IIS_IUSRS) in the list, and then place check mark in Allow column for Modify permission Click OK and click Yes in Windows Security dialog box. Click OK Repeat steps 1-8 for folder C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files
DPM 2007 SP1 Administration console overview 1. 2. 3. On NYC-SVR1, open Microsoft System Center Data Protection Manager 2007 from the Desktop. Click the Management tab, and then browse the Agents, Disk, and Libraries tabs. Click the Reporting tab., and then review the available report templates. Note: Reporting may take some time to initialize. 4. 5. Click the Protection tab. Click the Monitoring tab.
Deploying the DPM 2007 SP1 agent to a host 1. 2. On NYC-Host2, click Start, and then click Control Panel. Click System and Security, click Windows Firewall, and click Turn Windows Firewall on or off.
10-12
3.
Under all three groups of settings, click Turn off Windows Firewall (not recommended), click OK and close Windows Firewall window. Repeat steps 1-3 on NYC-SVR1. Note: You are disabling Windows Firewall only until you installed the DPM agent. You should reenable and configure Windows Firewall after you have installed the agent.
4. 5.
On NYC-SVR1, in the DPM 2007 Administrator Console, on the navigation bar, click Management, and then click the Agents tab. In the Actions pane, click Install. The Protection Agent Installation Wizard starts, and displays a list of available computers in the DPM server domain.
6. 7. 8. 9.
On the Select Computers page, in the Computer name list, click NYC-Host2, click Add, and then click Next. On the Enter Credentials page, in the User name box, type Administrator, and then in the Password box, type Pa$$w0rd. Click Next. If a Microsoft System Center Data Protection Manager 2007 warning dialog box displays, click OK. On the Choose Restart Method page, click Yes. Restart the selected computers after installing the protection agents, and then click Next.
10. On the Summary page, click Install to begin the installation. On the Installation page, the results appear on the Tasks tab to indicate whether the installation succeeds. 11. When the protection agent installs successfully, Success is displayed under the Results column. Click Close. 12. The computer on which you install the DPM protection agent now restarts. Note: At this point, you can take a short break, as the restart will take a few minutes. 13. Creating the storage pool. 14. On NYC-SVR1, click Start, point to Administrative Tools, and then click Server Manager. 15. In Server Manager window, expand Storage, and then click Disk Management. 16. Make sure that Disk 1 is present. Right-click the volume beside Disk1, and then click Delete Volume. Click Yes, and then close Server Manager. 17. In the DPM 2007 Administrator Console, on the navigation bar, click Management, and then click the Disks tab. 18. In the Actions pane, click Add. The Add Disks to Storage Pool dialog box appears. 19. In the Available disks section, click Disk 1, click Add, and then click OK. In Microsoft System Center Data Protection Manager 2007 dialog box click Yes
10-13
Demonstration steps
Note: In some cases, agent status on NYC-Host2 is not retrieved successfully. If that happens, you will not be able to perform backup, so it is recommended that you perform following steps prior to this demo: 1. 2. In the DPM 2007 Administrator Console, on the navigation bar, click the Management tab, and then click Agents tab In Actions pane, click Refresh information and make sure that agent status is OK.
Create protection group 1. 2. 3. 4. 5. 6. 7. 8. 9. In the DPM 2007 Administrator Console, on the navigation bar, click the Protection tab. In the Actions pane, click Create protection group. The Welcome to the New Protection Group Wizard page appears. Click Next. On the Select Group Members page, expand the NYC-Host2, and then expand the Microsoft Hyper-V node to see each of the virtual machines that the server hosts. Set backup options Place a checkmark next to Backup using Saved State\Demo10-VM, and then click Next. On the Select Data Protection Method page, accept the default name for the protection group (which is Protection Group 1) or provide a new name. In the Protection method section, click the I want short-term protection using check box, and in the list, make sure Disk is selected, and then click Next. On a Specify Short-Term Goals page, in the Retention range box, enter the retention duration for data recovery. Leave the value for Retention range on 5.
10. In the Application recovery points section, next to Express Full Backup, click Modify to modify the times and days. Deselect all days except Monday, click OK, and then click Next. 11. Perform a backup 12. Data Protection Manager 2007 then displays the disk allocations that it recommends on the Review Disk Allocation page. The Data Protection Manager 2007 server typically has a significant amount of disk storage for disk-to-disk protection and recovery. This step enables you to allocate how much of that large disk storage pool to use to protect the selected virtual machines. For demonstration purposes, do not make changes here. Click Next. 13. On the Choose Replica Creation Method page, select Now to replicate the data immediately after creating the data group. 14. On the Summary page, review settings, and then click Create Group. 15. On a Status page, click Close after the tasks complete. 16. Wait until DPM creates the replica. You can monitor progress on the Protection tab of the DPM Administrator console. Note: Creating a replica may take approximately six minutes. Use that time to discuss the procedure.
10-14
Demonstration steps
Preparation step : In Hyper-V Manager on NYC-Host2, delete virtual machine Demo10-VM. 1. In the DPM 2007 Administrator Console, on the navigation bar, click the Recovery tab. In the Protected Data box, expand Contoso.com, expand NYC-Host2, expand All DPM Protected Data, and then expand Backup Using Saved State\Demo10-VM. Under Recoverable Item, click the virtual machine item that you want to recover. In the Actions pane, click Recover to launch the Recovery Wizard. On a Review Recovery Selection page, click Next. Click Recover to original instance, and then click Next. On the Specify Recovery Options page, review the available options, make no changes, and then click Next. Review your selected settings on the Summary page, and then click Recover. When the recovery is complete, click Close. In Hyper-V Manager on NYC-Host2 verify that Demo10-VM is present
2. 3. 4. 5. 6. 7. 8. 9.
10-15
Additional Reading
What Is Database Protection Manager 2007 SP1?
Whats New in Microsoft System Center Data Protection Manager 2007 Service Pack 1?
10-16
Hyper-V VSS writer is not registered. Edit the registry or use Microsoft fixit to register the Hyper-V VSS writer. The firewall is blocking deployment. Check the firewall rules. Deploy the DPM Agent manually.
Check to see if you deleted some virtual machines after the last VMM database backup.
10-17
automated backup strategy for backing up documents. Now Northwest Traders is considering an automated backup solution for virtual machines to back them up without downtime. Question 1: Which solution would be most appropriate for this kind of environment? Why? Answer: Data Protection Manager 2007 SP1 is the most appropriate solution for this scenario, as it supports both Virtual Server 2005 and Hyper-V, and also performs both online and offline backups. Moreover, you can configure DPM 2007 SP1 to automate the backup procedure fully. Question 2: How are backups performed on machines running Windows Server 2000 and non-Microsoft operating systems? Answer: Depending on the applications hosted inside these virtual machines, offline backup is performed. Question 3: Is there any alternative solutions for backup and restore of virtual machines? If yes, are there any limitations? Answer: You also can use Windows Server Backup from Windows Server 2008 R2. Limitations are the inability to choose which virtual machine will be backed up, since Windows Server Backup is volume based. Also, Windows Server Backup does not support the Virtual Server platform fully.
Tools
Tool Use for Recovering SCVMM Database Backup and restore of volumes that contain virtual machines Protecting resources and making connection with DPM Server Where to find it C:\Program Files\Microsoft System Center Virtual Machine Manager 2008 R2\bin, on the SCVMM computer
Scvmmrecover.exe
10-18
11-1
Module 11
Implementing High Availability for Server Virtualization
Contents:
Lesson 1: Overview of Failover Clustering Lesson 2: Implementing Failover Clustering with Hyper-V Lesson 3: Implementing High Availability with VMM 2008 R2 Module Reviews and Takeaways Lab Review Questions and Answers 2 5 14 19 21
11-2
Lesson 1
11-3
11-4
Additional Reading
Failover Cluster Functionality in Windows Server 2008 R2
Using Windows PowerShell Cmdlets on Failover Clusters in Windows Server 2008 R2
11-5
Lesson 2
11-6
11-7
Step 1. Create an iSCSI target on NYC-SVR4 for the witness disk 1. 2. 3. 4. 5. 6. 7. On NYC-SVR4, click Start, point to Administrative Tools, and then click Microsoft iSCSI Software Target. In the tree pane of the iSCSITarget [Microsoft iSCSI Software Target\Devices] console, right-click iSCSI Targets, and then click Create iSCSI Target. On the Welcome to the Create iSCSI Target Wizard page, click Next. In the iSCSI target name box of the iSCSI Target Identification page, type LUN-01, and then click Next. On the iSCSI Initiators Identifiers page, click Advanced. In the Advanced Identifiers dialog box, click Add. In the Identifier Type box of the Add/Edit Identifier dialog box, click IP Address, in the Value box, type 10.10.0.101, and then click OK.
11-8
8. 9.
In the Advanced Identifiers dialog box, click Add. In the Identifier Type box of the Add/Edit Identifier dialog box, click IP Address, in the Value box, type 10.10.0.102, and then click OK.
10. In the Advanced Identifiers dialog box, click OK. 11. On the iSCSI Initiators Identifiers page, ensure that the IQN Identifier box displays the text, Click Advanced button to view alternate identifiers., and then click Next. 12. On the Completing the Create iSCSI Target Wizard page, click Finish. 13. In the tree pane of the iSCSITarget [Microsoft iSCSI Software Target\Devices] console, under iSCSI Targets, right-click Devices, and click Create Virtual Disk. 14. On the Welcome to the Create Virtual Disk Wizard page click Next. 15. In the File box of the File page, type C:\Disks\Disk-01.vhd, and then click Next. 16. In Size of virtual disk (MB) box of the Size page, type 8000, and then click Next. 17. On the Description page, click Next. 18. On the Access page, click Add. 19. In the Add Target dialog box, in the Target Name list, click LUN-01, and then click OK. 20. On the Access page, click Next. 21. On the Completing the Create Virtual Disk Wizard page, click Finish. Step 2. Create an iSCSI target on NYC-SVR4 for the virtual machine disk 1. 2. 3. 4. 5. 6. 7. 8. 9. In the tree pane of the iSCSITarget [Microsoft iSCSI Software Target\Devices] console, under iSCSI Targets, right-click Devices, and click Create Virtual Disk. On the Welcome to the Create Virtual Disk Wizard page, click Next. In the File box of the File page, type C:\Disks\Disk-02.vhd, and then click Next. In Size of virtual disk (MB) box of the Size page, type 20000, and then click Next. On the Description page, click Next. On the Access page, click Add. In the Add Target dialog box, in the Target Name list, click LUN-01, and then click OK. On the Access page, click Next. On the Completing the Create Virtual Disk Wizard page, click Finish.
Step 3. Connect the iSCSI target to NYC-HOST1 1. 2. 3. On NYC-HOST1, on the Start menu, point to Administrative Tools, and then click iSCSI Initiator. Click Yes. On the Targets tab of the iSCSI Initiator Properties dialog box, in the Target box, type 10.10.0.24, and then click Quick Connect. In the Quick Connect dialog box, ensure that the status of iqn.1991-05.com.microsoft:NYCSVR4-lun-01-target is Connected, and then click Done.
11-9
4. 5.
On the Volumes and Devices tab, click Auto Configure. Verify that two volumes are added to the Volume list. In the iSCSI Initiator Properties dialog box, click OK.
Step 4. Create volumes on the shared storage 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-HOST1, click Start, point to Administrative Tools, and then click Server Manager. In the tree pane of the Server Manager console, expand Storage, and then click Disk Management. Right-click Disk 2, and click Online. Right-click Disk 3, and click Online. Right-click Disk 2, and click Initialize Disk. Verify that both Disk 2 and Disk 3 are selected, and then click OK. In the Disk Management result pane, right-click the 7.81 GB Unallocated area against Disk 2, and then click New Simple Volume. On the Welcome to the New Simple Volume Wizard page, click Next. On the Specify Volume Size page, click Next. On the Assign Drive Letter or Path page, beside Assign the following drive letter, click Q, and then click Next.
10. On the Format Partition page, in the Volume label box, type Witness Disk, and then click Next. 11. On the Completing the New Simple Volume Wizard page, click Finish. 12. In the Disk Management result pane, right-click the 19.53 GB Unallocated area against Disk 3, and then click New Simple Volume. 13. On the Welcome to the New Simple Volume Wizard page, click Next. 14. On the Specify Volume Size page, click Next. 15. On the Assign Drive Letter or Path page, beside Assign the following drive letter, click M, and then click Next. 16. On the Format Partition page, in the Volume label box, type VM Storage, and then click Next. 17. On the Completing the New Simple Volume Wizard page, click Finish. Step 5. Create an iSCSI target on NYC-HOST2. 1. 2. 3. 4. 5. On NYC-HOST2, on the Start menu, point to Administrative Tools, click iSCSI Initiator, and then click Yes. On the Targets tab of the iSCSI Initiator Properties dialog box, in the Target box, type 10.10.0.24, and then click Quick Connect. In the Quick Connect dialog box, ensure that the status of iqn.1991-05.com.microsoft:NYCSVR4-lun-01-target is Connected, and then click Done. On the Volumes and Devices tab, click Auto Configure. Verify that two volumes are added to the Volume list. In the iSCSI Initiator Properties dialog box, click OK.
11-10
Step 6. Install the failover clustering feature 1. 2. 3. 4. 5. 6. 7. 8. On NYC-HOST1, in the tree pane of the Server Manager console, right-click Features, and then click Add Features. On the Select Features page of the Add Features Wizard, under Features, select the Failover Clustering check box, and then click Next. On the Confirm Installation Selections page, click Install. On the Installation Results page, click Close. On NYC-HOST2, in the tree pane of the Server Manager console, right-click Features, and then click Add Features. On the Select Features page of the Add Features Wizard, under Features, select the Failover Clustering check box, and then click Next. On the Confirm Installation Selections page, click Install. On the Installation Results page, click Close.
Step 7. Validate the cluster 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-HOST1, point to Administrative Tools, and then click Failover Cluster Manager. In the Actions pane of the Failover Cluster Manager console, click Validate a Configuration. On the Before You Begin page, click Next. In the Enter name box of the Select Servers or a Cluster page, type NYC-HOST1, and then click Add. Type NYC-HOST2, click Add, and then click Next. On the Testing Options page, click Next. On the Confirmation page, click Next. Wait for the validation to complete, and then click View Report. Verify that no errors are reported, and close Microsoft Internet Explorer. On the Summary page, click Finish.
Step 8. Create the cluster 1. 2. 3. 4. 5. 6. 7. In the Actions pane of the Failover Cluster Manager console, click Create a Cluster. On the Before You Begin page, click Next. In the Enter server name box of the Select Servers page, type NYC-HOST1, and then click Add. Type NYC-HOST2, click Add, and then click Next. In the Cluster Name box, type NYC-HVCluster, in the Address box, type 10.10.0.90, and then click Next. On the Confirmation page, click Next. On the Summary page, click View Report. Scroll to nearly the bottom of the report, and verify that the cluster was created using Node and Disk Majority quorum configuration. Close Internet Explorer. On the Summary page, click Finish.
8.
11-11
Step 9. Copy a virtual disk file. 1. 2. 3. 4. 5. On Host1, on the Start menu of the physical computer, click Computer. In the Computer window, double-click Local Disk (E:). Browse to E:\Program Files\Microsoft Learning\10215\Drives, right click 10215ACoreTest.vhd, and then click Copy. In Windows Explorer, browse to the M: drive. Create a new folder named HA-Test. Right-click in the HA-Test window, and then click Paste.
Demonstration steps
Step 1. Configure Clustered Shared Volumes 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-HOST1, in the tree pane of the Failover Cluster Manager console, expand NYCHVCluster.Contoso.com, and then click NYC-HVCLUSTER.Contoso.com. In the Actions pane, click Enable Cluster Shared Volumes. In the Enable Cluster Shared Volumes dialog box, select the I have read the above notice check box, and then click OK. On NYC-HOST1, in the tree pane of the Failover Cluster Manager console, under NYCHVCLUSTER.Contoso.com, right-click Cluster Shared Volumes, and then click Add storage. In the Add Storage dialog box, select the Cluster Disk 2 check box, and then click OK. In the tree pane of the Failover Cluster Manager console, under NYC-HVCLUSTER.Contoso.com, click Cluster Shared Volumes. In the Cluster Shared Volumes result pane, expand Cluster Disk 2, and then verify that it has the C:\ClusterStorage\Volume1 volume. On NYC-HOST1, open Server Manager. Click Disk Management. Verify that the M: drive has been removed from the VM Storage partition. Open Windows Explorer, and browse to C:\ClusterStorage\Volume1. Verify that the HA-Test folder is located in the CSV volume.
Step 2. Configure a virtual machine 1. 2. On NYC-HOST1, open Hyper-V Manager. In the tree pane of the Hyper-V Manager console, right-click NYC-HOST1, point to New, and then click Virtual Machine.
11-12
3. 4.
On the Before You Begin page of the New Virtual Machine Wizard, click Next. In the Name box of the Specify Name and Location page, type HA-Test, select the Store the virtual machine in a different location check box, in the Location box, type C:\ClusterStorage\Volume1, and then click Next. On the Assign Memory page, ensure that the Memory size is 512 MB, and then click Next. On the Configure Networking page, click Next. On the Connect Virtual Hard Disk page, click Use an existing virtual hard disk, in the Location box, type C:\ClusterStorage\Volume1\HA-Test\10215-CoreTest.vhd, and then click Next. On the Completing the New Virtual Machine Wizard page, click Finish. In the result pane of the Hyper-V Manager console, in the Virtual Machines area, verify that the HA-Test virtual machine is created.
5. 6. 7.
8. 9.
Step 3. Make the virtual machine highly available 1. On the NYC-HOST1, in the tree pane of the Failover Cluster Manager console, expand NYCHVCLUSTER.Contoso.com, right-click Services and applications, and then click Configure a Service or Application. On the Before You Begin page of the High Availability Wizard, click Next. On the Select Service or Application page, under Select the service or application that you want to configure for high availability, click Virtual Machine, and then click Next. On the Select Virtual Machine page, under Select the virtual machine(s) that you want to configure for high availability, select the HA-Test check box, and then click Next. On the Confirmation page, click Next. On the Summary page, click Finish.
2. 3. 4. 5. 6.
Step 4. Test Live Migration 1. On the NYC-HOST1, in the tree pane of the Failover Cluster Manager console, under NYCHVCLUSTER.Contoso.com, expand Services and applications, right-click HA-Test, and then click Start virtual machine. Right-click HA-Test, and click Connect to virtual machines. Log on to HA-Test as Administrator using the password Pa$$W0rd. On NYC-HOST1, open the Hyper-V Management console. Verify that HA-Test is running on NYCHOST1. On NYC-HOST1, in Failover Cluster Manager, right-click HA-Test, point to Live migrate virtual machine to another node, and then click 1 Live migrate to node NYC-HOST2. On NYC-HOST2, open the Hyper-V Management Console. Verify that HA-Test is now running on NYC-HOST2.
2. 3. 4. 5. 6.
11-13
Additional Reading
Requirements for Failover Clustering in Hyper-V
Hyper-V: Using Hyper-V and Failover Clustering
11-14
Lesson 3
11-15
11-16
10. In the left pane, expand All Hosts and click NYC-HVCluster. Verify that NYC-HOST1 and NYCHOST2 are now members of this host cluster. Step 2. Configure a highly available virtual machine 1. 2. 3. 4. 5. 6. 7. 8. In Virtual Machine Manager, click the Virtual Machines tab. In the center pane, right-click IT-SVR1, and then click Migrate Storage. On the Select Path page, click Browse. Expand Cluster Shared Volumes, and then click Cluster Disk 2. Click OK. Click Next, and then click Move. Wait for the move to finish. In the center pane, right-click IT-SVR1, and then click Properties. On the Hardware Configuration tab, under Advanced, click Availability. Ensure that the Make this VM highly available check box is selected. Click Processor, and then select the Allow migration to a virtual machine host with a different processor, and then click OK. In the center pane, right-click IT-SVR1, and then click Start. Wait for the virtual machine to start.
Step 3. Test Live Migration 1. 2. 3. 4. 5. In Virtual Machine Manager, click the Virtual Machines tab. Right-click IT-SVR1, and then click Migrate. On the Select Host page, click NYC-HOST2.consoto.com, and then click Next. On the Select Path page, click Next. On the Select Networks page, click Next, and then click Move.
11-17
6. 7.
11-18
Additional Reading
Planning VMM 2008 R2 High Availability
Planning for High Availability
11-19
Virtual machine failover fails after I implement CSV and migrate the shared storage to CSV. Four hours after restarting a Hyper-V host that is a member of a host cluster, there are still no virtual machines running on the host. A virtual machine fails over to another node in the host cluster, but loses all network connectivity.
All of the nodes in a host cluster must have the same networks configured. If they do not, then the virtual machines cannot connect to a network when they failover to another node. Some Linux distributions bind their TCP stack to a media access control (MAC) address. By default, Hyper-V virtual machines have a dynamic MAC address. If such a Linux guest is failed over, it will get a new MAC address, and then lose its TCP configuration. Therefore, you should configure this type of Linux virtual machines with a static MAC address.
A virtual machine running Linux fails over to another node in the host cluster, but loses all network connectivity.
11-20
Answer: There is not much you can do when an unplanned outage occurs. The only option is to ensure that you have enough capacity on the other failover cluster nodes to start the virtual machines quickly. Live Migration only applies to planned outages where the administrator initiates the failover. 2. Your organization has deployed several host clusters in VMM. Each host cluster had eight nodes. You need to ensure that when administrators create new virtual machines, the virtual machines are not created on host clusters that are nearly the capacity, especially if one or more of the failover clusters fail. What should you do? Answer: You can configure the cluster reserve value to specify the number of node failures that the cluster can support. When the cluster reaches the limit specified on the cluster reserve, the cluster will no longer be recommended for virtual machine placement. 3. Several users in your organization are using Hyper-V Manager to create virtual machines on Hyper-V hosts that are part of a failover cluster. You realize that the users are creating virtual machines that are not located on shared storage, and therefore cannot be made highly available. You need to ensure that all virtual machines are created on shared storage and are highly available. What should you do? Answer: The best solution in this case is to give the users access to the Self-Service portal and provide access only the host cluster. Then configure all of the paths on the host cluster nodes to use shared storage.
Tools
Tool Use for Managing almost all failover cluster management tasks, including adding shared storage Where to find it Located in the Administrative Tools folder after installing the Failover Clustering feature
11-21
12-1
Module 12
Monitoring and Reporting Virtualization
Contents:
Lesson 1: Monitoring Jobs in System Center Virtual Machine Manager 2008 R2 Lesson 2: Integrating System Center Operations Manager 2007 with VMM 2008 R2 Lesson 3: Configuring Performance and Resource Optimization Module Reviews and Takeaways Lab Review Questions and Answers 2 5 12 17 19
12-2
Lesson 1
12-3
Demonstration: Viewing and Managing Job Status in Virtual Machine Manager Jobs View
Question: How will you use the Jobs view in your VMM deployment? Answer: Answers will vary, but the three main reasons for using the Jobs view will be to track jobs that are running, troubleshoot failed jobs, and review changes to the VMM environment.
12-4
Demonstration steps
1. 2. 3. 4. 5. 6. On NYC-VMM, open the VMM Administrator Console. In the left pane, click Jobs. In the Jobs view, click the Status column header. Verify that the jobs are listed by Completed, Failed, and Completed w/ Info status. Click the Result Name column header. Verify that the list is sorted by virtual machine or other object that was modified by the job. Click the Owner column header. Verify that the job list is sorted by the person who performed the task. Locate the Self-Service tasks that Alan performed. In the Search field at the top of the window, type HA-Test. In the drop-down list box at the right side of the Search field, click Start date. Verify that the tasks related to the highly available virtual machine are listed. Click the X in the Search field. Verify that the jobs continue to be listed by start date. In the left pane, click Virtual Machines. On the VMM toolbar, click Jobs to view the Jobs window. In the Jobs window, click Name to sort the jobs by name. Locate a job with the name Create virtual machine, and then click it.
7. 8. 9.
10. Describe the information displayed on the Summary pane. 11. On the Details pane, show the steps that were performed when running the job. 12. On the Change Tracking tab, review the changes that the job made, and then close the Jobs window. 13. In the Jobs view, expand each of the filter options under the Filters heading. Select one of the options under each heading, and show the resulting filter. 14. Beside Filters, click Clear. 15. In the left pane, click Virtual Machines. 16. Click a virtual machine, and then in the lower pane, click the Latest Job tab. Review the information displayed.
12-5
Lesson 2
12-6
Question: What monitoring and reporting features will you require in your organization as you implement virtualization? Answer: Answers will vary, depending on where organizations are in their virtualization deployments. If organizations are just starting with virtualization, the requirements are probably similar to the list above. As organizations virtualize more and more machines, monitoring and reporting the environment becomes more important.
12-7
Demonstration steps
To prepare for this demonstration, you must import the 10215A-NYC-SVR3 virtual machine 1. 2. 3. 4. On NYC-HOST1, in Hyper-V Manager, click NYC-Host2. In the Actions pane, click Import Virtual Machine. In the Import Virtual Machine dialog box, click Browse. Browse to E:\Program Files\Microsoft Learning\10215\Drives, click 10215A-NYC-SVR3, and then click Select Folder. Click Import. Note: If you receive a message that the virtual machine imported with warnings, right-click 10215A-NYC-SVR3, and then click Settings. Under IDE Controller 0, verify that the 10215ANYC-SVR3.vhd file is connected to the virtual machine. If it is not connected, click Browse, and then browse to E:\Program Files\Microsoft Learning\10215\Drives\10215A-NYCSVR3\Virtual Hard Disks. Click 10215A-NYC-SVR3.vhd, click Open, and then click OK. If the hard drive is listed, click OK. 5. 6. 7. Right-click 10215A-NYC-SVR3, and then click Start. Right-click 10215A-NYC-SVR3, and then click Connect. Wait for the virtual machine to start, and then log on as Contoso\Administrator using the password Pa$$w0rd.
To perform the following demonstration, you must complete the following steps before starting this demonstration: Add Operations Manager Management Packs 1. 2. 3. 4. 5. On NYC-SVR3, click Start, click All Programs, click System Center Operations Manager 2007 R2, and then click Operations Console. The System Center Operations Manager 2007 R2 window opens. In the left pane, click Administration. In the Administration pane, in the Actions pane, click Import management packs. On the Select Management Packs page, click Add, and then click Add from disk. In the Online Catalog Connection dialog box, click No. In the Select Management Packs to import dialog box, browse to C:\Program Files (x86)\System Center Management Packs\Microsoft SQL Server System Center Operations Manager 2007 MP.
12-8
6.
Hold the CTRL key, and click Microsoft SQLServer.Library.mp, Microsoft.SQLServer.2005.Monitoring.mp, Microsoft.SQLServer.2005.Discovery.mp, Microsoft.SQLServer.2008.Monitoring.mp, Microsoft.SQLServer.2008.Discovery.mp and then click Open. On the Select Management Packs page, click Add, and then click Add from disk. The Select Management Packs to Import dialog box appears. Browse to C:\Program Files (x86)\System Center Management Packs\Windows Server Base OS System Center Operations Manager 2007 MP. Select the Microsoft.Windows.Server.Library.mp, and both Windows Server 2008 management packs, and then click Open.
7. 8.
9.
10. On the Select Management Packs page, click Add, and then click Add from disk. 11. The Select Management Packs to Import dialog box appears. Browse to C:\Program Files (x86)\System Center Management Packs\Windows Server Internet Information Services System Center Operations Manager 2007 MP. 12. Select Microsoft.Windows.InternetInformationServices.CommonLibrary.MP, Microsoft.Windows.InternetInformationServices.2008.MP, and Microsoft.Windows.InternetInformationServices.2003.MP, and then click Open. 13. Click Install. When all management packs are installed, click Close. Install Operations Manager Agents 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-SVR3, in the System Center Operations Manager 2007 R2 window, in the left pane, click Administration. In the Actions pane, click Configure computer and devices to manage. Click Windows Computers, and then click Next. On the Auto or Advanced? page, verify that Advanced discovery is selected, and then click Next. On the Discovery Method page, click Browse for, or type-in computer names, and then click Browse. In the Select Computers dialog box, type NYC, and then click Check Names. In the Multiple Names Found dialog box, press the CTRL key, and click NYC-HOST1, NYCHOST2, NYC-DC1, NYC-VMM, and NYC-SVR4. Click OK twice, and then click Next. On the Administrator Account page, click Discover. On the Select Objects to Manage page, click Select All, click Next, and then click Finish.
10. When the task completes, click Close. Configure Operations Manager through VMM Setup 1. 2. 3. On NYC-SVR3, click Start, and then click Run. Type \\NYC-Host1\e$, and then press ENTER. In the e$ window, browse to Program Files\Microsoft Learning\10215\Labfiles\SCVMM 2008 R2. Double-click setup.exe.
12-9
4. 5. 6. 7. 8. 9.
The System Center Virtual Machine Manager 2008 R2 splash screen appears. Under Setup, click Configure Operations Manager. The Virtual Machine Manager Administrator Console Setup wizard appears. Click I accept the terms of this agreement, and then click Next. On the Microsoft Update page, click I dont want to use Microsoft Update, and then click Next. On the Customer Experience Improvement Program page, click Next. On the Prerequisites Check page, click Next. On the Installation Location page, click Next.
10. On the Port Assignment page, in the VMM server field, type Contoso\NYC-VMM, and then click Next. 11. On the Summary of Settings page, click Install. 12. On the Installation page, clear Check for the latest Virtual Machine Manager update, and then click Close. 13. On the System Center Virtual Machine Manager 2008 R2 setup page, click Exit. Install the Operations Manager Console on the VMM server 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-VMM, click Start, click Run, type \\NYC-Host1\e$\Program Files\Microsoft Learning\10215\Labfiles\SystemCenterOperationsManager, and then press ENTER. Double-click SetupOM.exe. In the System Center Operations Manager 2007 R2 Setup page, click Install Operations Manager 2007 R2. On the Welcome page, click Next. On the End-User License Agreement page, click I accept the terms in the license agreement, and then click Next. On the Product Registration page, click Next. On the Custom Setup page, click Database, and then click This component will not be available. Click Management Server, and then click This component will not be available. Click Web Console, and then click This component will not be available. Click Next.
10. On the Customer Experience Improvement Program page, click Next, and then click Install. 11. On the Completing page, clear the Start the Console check box, and then click Finish. Step 1: Add the VMM Administrator to the Report Operator Role 1. 2. 3. On NYC-SVR3, open the Operations Manager console. In the Administration pane, under Security, click User Roles. In the User Roles pane, double-click Operation Manager Report Operators. The Operation Management Report Operators User Role Properties dialog box appears. Click Add.
12-10
4. 5. 6.
The Select Users or Groups dialog box appears. In the Enter the object names to select field, type administrator. Click Check Names. Click OK twice.
Step 2: Enable Reporting in VMM 1. 2. 3. 4. 5. 6. 7. On NYC-VMM, if required, open the VMM Administrator Console. In the left pane, click Administration. In the Administration pane, click System Center. In the Details pane, double-click Operations Manager Reporting URL. In the Reporting Settings dialog box, select the Enable Reporting check box. In the Reporting server URL field, type http://NYC-SVR3/ReportServer. Click OK.
Step 3: Verify that reporting is configured 1. On NYC-VMM, in the VMM Administrator Console, in the left pane, click Reporting. If you receive an error message that the Report Server is not available, restart the System Center Data Access service on NYC-SVR3. It can take several minutes for the reports to appear or contain any information. You can continue with the rest of the presentation and return to review the reports at the start of the next demonstration. In the Reports pane, click Virtual Machine Utilization, and click Open report. Review the information provided for each virtual machine, and then close the report.
2. 3.
12-11
Additional Reading
Prerequisites for Integrating Operations Manager
How to Integrate Operations Manager with VMM 2008 R2
12-12
Lesson 3
12-13
12-14
Demonstration Steps
Step 1 Configure the Action account for Operations Manager 1. 2. 3. 4. 5. 6. 7. 8. On NYC-SVR3, in the Operations Manager Console, click Administration. In the Administration pane, expand Run As Configuration, and then click Accounts. In the Details pane, point out that Contoso\Administrator is listed in the Action Account sections. On NYC-VMM, in the VMM Administrator Console, click Administration. In the Administration pane, click User Roles. In the Details pane, double-click Administrator. The User Role Properties for Administrator (Administrator) dialog box appears. Click the Members tab. Ensure CONTOSO\Administrator is listed. The Action account that Operations Manager uses must be a member of the Administrator user role in VMM to ensure that you can implement PRO tips. Click OK.
9.
Step 2: Configure the Operations Manager root management server 1. 2. 3. In the Administration pane, click System Center. In the Details pane, double-click Operations Manager Server. The Operations Manager Server dialog box appears. In the Server name field, type NYC-SVR3, and then click OK.
Step 3 Configure PRO for the VMM Server 1. 2. 3. 4. In the Administration pane, click General. In the Details pane, double-click PRO Settings. The PRO Settings dialog box appears. Select Enabled PRO tips. Click Automatically implement PRO tips, and then click OK.
12-15
Step 4: Configure PRO for an individual host cluster 1. 2. 3. 4. 5. In the left pane, click Hosts. Right-click HVCLuster, and then click Properties. On the PRO tab, clear the Inherit PRO setting from parent Host Group check box. Select the Enable PRO on this Host Cluster check box. Under this setting, click Warning and Critical. Ensure that the Automatically implement PRO on this Host Cluster check box is not selected, and then click OK.
Step 5: Remove a virtual machine from PRO host-level actions 1. 2. 3. In the left pane, click Virtual Machines. In the virtual machine list, right-click 10215A-NYC-SVR1, and then click Properties. On the Settings tab, select the Exclude virtual machine from PRO host-level actions, and then click OK.
Demonstration steps
Step 1: Trigger a PRO tip 1. 2. 3. 4. On NYC-Host1, open a command prompt, type e:, and then press ENTER. Type CD E:\Program Files\Microsoft Learning\10215\Labfiles\StressTool\amd64, and then press ENTER. Type StressTool 90, and then press ENTER. On NYC-VMM, open the VMM Administrator Console, and wait for the PRO tip to appear. This can take a few minutes.
Step 2: View details about a PRO tip. 1. 2. In the PRO Tips window, click NYC-HOST1.contoso.com. In the bottom pane, click Cause and Resolution. Review the information and the suggested resolution.
Step 3: Implement a PRO tip. 1. 2. In the PRO Tips window, click Implement. In the VMM Administrator Console, click Jobs. Verify that a job has been triggered to implement the fix for a PRO tip. Click the job, and then review the job details.
12-16
3. 4.
On NYC-Host1, click the command prompt window, and then press Ctrl+C. Close the command prompt. On NYC-VMM, close the PRO Tips window.
This demonstration is the last demonstration that requires VMM and the host cluster. Complete the following steps to remove these components from the lab environment. 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-VMM, in the VMM Administrator Console, click Virtual Machines, and shut down the HA-Test and IT-SVR1 virtual machines. Click Hosts. Right-click HVCluster.contoso.com, click Remove host cluster, and then click Yes. In the Password field, type Pa$$w0rd, and click OK. Close the VMM Administrator Console. If required, open the Failover Cluster Manager console. Under HVCLuster.contoso.com, expand Services and applications. Right-click each of the virtual machines listed, and then click Delete. Confirm the deletion. Right-click HVCLuster.contoso.com, point to More actions, and then click Destroy cluster. Confirm the action. Close the Failover Cluster Manager console.
12-17
You are getting an access denied message when you try to access reports in VMM.
12-18
Answer: While you will not get the benefit of automated live migration without failover clustering, you can take advantage of many other PRO features. You can use the PRO tips as alerts so that you are notified when there are issues with the environment, and then you can take corrective actions.
12-19
13-1
Module 13
Desktop Virtualization Using Remote Desktop Services
Contents:
Lesson 1: Overview of Remote Desktop Services Lesson 2: Implementing Remote Desktop Session Host Lesson 3: Implementing Remote Desktop Connection Broker Lesson 4: Implementing the Remote Desktop Connection Virtualization Host Module Reviews and Takeaways Lab Review Questions and Answers 2 5 9 12 15 16
13-2
Lesson 1
13-3
13-4
Additional Reading
What Is Remote Desktop Licensing?
Licensing Remote Desktop Services in Windows Server 2008 R2
13-5
Lesson 2
13-6
10. On the Select User Groups Allowed Access to this RD Session Host Server page, click Add. 11. In the Select Users, Computers, or Groups dialog box, type IT, click OK, and then click Next. 12. On the Configure Client Experience page, select the Audio and Video playback and Desktop composition check boxes, and then click Next. 13. On the Confirm Installation Selections page, click Install. 14. On the Installation Results page, click Close, and then click Yes to restart the system. Configure the Remote Desktop Session Host 1. 2. 3. 4. 5. After NYC-SVR4 restarts, log on to NYC-SVR4 as Contoso\Administrator, using the password Pa$$w0rd. Wait for the installation to finish, and then click Close. Click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Session Host Configuration. In the Connections pane, double-click RDP-Tcp. On the Sessions tab, select the top Override user settings check box, and then configure the Idle session limit to 15 minutes.
13-7
6. 7. 8. 9.
On the Client Settings tab, in the Color Depth section, change the Limit Maximum Color Depth to 16 bits per pixel, and then click OK. Under Licensing, right-click Remote Desktop Licensing mode, and then click Properties. On the Licensing tab, click Per Device, and then click OK. Right-click Delete temporary folders on exit, and then click Properties.
10. Clear the Restrict each user to a single session check box, and then click OK. 11. Close the Remote Desktop Session Host Configuration console. 12. Run the Remote Desktop Services Best Practices Analyzer 13. On NYC-SVR4, in Server Manager, click Roles. 14. In Roles, click Go to Remote Desktop Services. 15. In Remote Desktop Services, in the Best Practices Analyzer area, click Scan this role. 16. After the scan finishes, click the Complaint (1) tab. 17. Double-click Compliant, and then review the information. 18. Click Close.
Create an .msi file to deploy the RemoteApp 1. 2. 3. 4. 5. In RemoteApp Manager, click Calculator in the RemoteApp Programs pane, and then click Create Windows Installer Package on the Actions pane. On the RemoteApp Wizard page, click Next. On the Specify Package Settings page, click Next. On the Configure Distribution Package page, check Associate client extension for this program with the RemoteApp program, and then click Next. Click Finish.
Install the .msi file on a client computer 1. 2. 3. 4. On NYC-CL1, click Start, and in the Search field, type \\NYC-SVR4\c$, and then press ENTER. In the c$ window, browse to Program Files\Packaged Programs. In the Packaged Programs windows, right-click Calc.msi, and then click Install. Close Windows Explorer.
13-8
5. 6. 7. 8. 9.
Test RemoteApp access On NYC-CL1, click Start, click All Programs, click Remote Programs, and then click Calculator. In the RemoteApp window, click Connect. In the Windows Security dialog box, type Pa$$w0rd as the password, and then click OK. Verify that the application opens, and then close the application window.
13-9
Lesson 3
13-10
13-11
Add RD Session Host computers to the Session Broker Computers group 1. 2. 3. 4. On NYC-SVR4, in Server Manager, expand Configuration, expand Local Users and Groups, expand Groups, and then double-click Session Broker Computers. Click Add, and in the Select Users, Computers, Service Accounts, or Groups dialog box, click Object Types. Select the Computers check box, and then click OK. In the Enter the object names to select field, type NYC-SVR4, and then click OK twice.
Configure the RD Session Host computers as members of the RD Connection Broker farm 1. 2. 3. 4. 5. 6. 7. 8. On NYC-SVR4, click Start, point to Administrative Tools, click Remote Desktop Services, and then click Remote Desktop Session Host Configuration. In Remote Desktop Session Host Configuration, right-click Member of farm in RD Connection Broker, and then click Properties. On the RD Connection Broker tab, click Change Settings. In the RD Connection Broker Settings dialog box, click Farm member. In the RD Connection Broker server name dialog box, type NYC-SVR4.contoso.com. In the Farm Name box, type ContosoRDS, and then click OK. Select the Participate in Connection Broker Load-Balancing box. Under Select IP Addresses to be used for reconnection, select the 10.10.0.24 check box, and then click OK.
13-12
Lesson 4
13-13
13-14
Additional Reading
Deploying Virtual Machines for Virtual Desktop Infrastructure
Deploying Personal Virtual Desktops by Using Remote Desktop Web Access Step-by-Step Guide Deploying Virtual Desktop Pools by Using RemoteApp and Desktop Connection Step-by-Step Guide
13-15
Users are unable to access local resources such as printers or hard drives attached to the client computer. Users cannot connect because of too many concurrent connections.
13-16
14-1
Module 14
Extending Remote Desktop Services
Contents:
Lesson 1: Configuring the RD Gateway Lesson 2: Configuring RD Web Access Module Reviews and Takeaways Lab Review Questions and Answers 2 7 12 13
14-2
Lesson 1
14-3
Benefits of RD Gateway
Question: In which situations would you use an RD Gateway? Answer: You can use RD Gateway if you need to provide remote users with access to RDS hosts from the Internet. Local users can access RDS hosts directly, but remote users need to establish a connection to the local network. Previously, remote users had to establish a VPN connection first to access RDS hosts. Now, with an RD Gateway, they can access internal RDS hosts without establishing a VPN connection.
14-4
10. On the Choose a Server Authentication Certificate for SSL Encryption page, select Create a self-signed certificate for SSL encryption, and then click Next. 11. On the Create Authorization Policies for RD Gateway page, select Later, and then click Next. 12. On the Network Policy and Access Services page, review the summary information, and then click Next. 13. On the Select Role Services page, verify that Network Policy Server is selected, and then click Next. 14. On the Web Server (IIS) page (which appears only if you do not install this role service), review the summary information, and then click Next. 15. On the Select Role Services page, accept the default selections for Web Server (IIS), and then click Next. 16. On the Confirm Installation Selections page, click Install. 17. On the Installation Results page, click Close.
14-5
4.
In the Computers container, right-click NYC-SVR4 and click Add to a group. In the Select Groups dialog box, type RDComputers and click OK. Close Active Directory Users and Computers. On NYC-SVR6, open RD Gateway Manager from the Remote Desktop Services administration tools. In the left pane, click Policies. In the Actions pane, click Create new Authorization Policies. On the Create Authorization Policies for RD Gateway, ensure that Create an RD CAP and RD RAP (recommended) is selected, and then click Next. On the Create an RD CAP page, type RD_CAP as the policy name, and then click Next. On the Select Requirements page, ensure Password is selected. In the User group membership section, click Add Group.
5. 6. 7. 8. 9.
10. In the Select Groups dialog box, type IT, and then click OK to close the Select Groups dialog box. Click Next. 11. On the Enable or Disable Device Redirection page, review the configuration options, and then click Next. 12. On the Select Session Timeouts page, review the configuration options, and then click Next. 13. On the RD CAP Settings Summary page, click Next. 14. On the Create an RD RAP, enter the name RD_RAP for the Remote Desktop resource authorization policy, and then click Next. 15. On the Select User Groups page, click Next. 16. On the Set Network Resources page, click Browse. In the Select Group dialog box, type RDComputers, click OK, and then click Next. 17. On the Select Allowed TCP Ports page, review the configuration options, and then click Next. 18. On the RD RAP Settings Summary page, click Finish, and then click Close.
14-6
Additional Reading
Implementing NAP Integration with RD Gateway
Deploying RD Gateway R2 server with NAP
14-7
Lesson 2
14-8
14-9
Adding RD Session Host computers the TS Web Access Computers group 1. 2. 3. 4. 5. 6. 7. On NYC-SVR4, in Server Manager, expand Configuration, expand Local Users and Groups, and then click Groups. Right-click TS Web Access Computers, and then click Add to Group. Click Add. In the Select Users, Computers, Service Accounts, or Groups dialog box, click Object Types. In the Object Types dialog box, select the Computers check box, and then click OK. In the Enter the object names to select box, type NYC-SVR4, and then click OK. Click OK to close the TS Web Access Computers Properties dialog box.
Configuring RemoteApp programs for RD Web Access 1. 2. 3. On NYC-SVR4, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click RemoteApp Manager. In the RemoteApp Programs section, right-click Calculator, and then click Properties. In the RemoteApp Properties dialog box, verify that the RemoteApp program is available through RD Web Access check box is selected, and then click OK.
Assigning a RemoteApp source 1. 2. 3. 4. 5. On NYC-SVR4, click Start, point to Administrative Tools, point to Remote Desktop Services, and then click Remote Desktop Web Access Configuration. Click Continue to this website (not recommended). In the Domain\user name box, type CONTOSO\Administrator. In the Password box, type the Pa$$w0rd, and then click Sign in. On the Configuration page, verify that One or more RemoteApp sources is selected.
14-10
6. 7. 8. 9.
In the Source name box, type NYC-SVR4, and then click OK.. On the RemoteApp Programs tab, verify that no applications are listed. In the RemoteApp Manager window, right-click Calculator and click Properties. On the User Assignment tab, click All authenticated domain users, and click OK.
10. In Internet Explorer, click Refresh. Verify that the Calculator application is now listed. 11. Close Internet Explorer. Configuring RemoteApp and Desktop Connection 1. 2. 3. 4. 5. 6. 7. 8. 9. On NYC-CL1, open Internet Explorer, and then connect to https://nycsvr4.contoso.com/rdweb. Click Continue to this website (not recommended). Click Certificate Error, and then click View Certificates. In the Certificate dialog box, click Install Certificate. Click Next, and on the Certificate Store page, click Place all certificates in the following store. Click Browse, click Trusted Root Certification Authorities, and then click OK. Click Next, and then click Finish. Click Yes, and then click OK twice. On NYC-CL1, click Start, and in the Search box, type Remote, and then click RemoteApp and Desktop Connections. In the RemoteApp and Desktop Connections window, click Set up a new connection with RemoteApp and Desktop Connections.
10. On the Type the URL to set up a new connection page of the Set up a new connection with RemoteApp and Desktop Connections Wizard, in the Connection URL box, type https://nycsvr4.contoso.com/rdweb/feed/webfeed.aspx, and then click Next. 11. On the Ready to set up the connection page, click Next. 12. On the You have successfully set up the following connection: page, click Finish. 13. In the RemoteApp and Desktop Connections window, click the Close button. 14. On the Start menu of NYC-CL1, point to All Programs, and click RemoteApp and Desktop Connections, click Remote Desktop Services Default Connection, and then click Calculator. 15. Click Connect, enter Pa$$w0rd as the password, and then click OK. 16. Verify that the application opens, and then close the application.
14-11
Additional Reading
What Is RD Web Access?
Customizing Remote Desktop Web Access by Using Windows SharePoint Services Step-by-Step Guide Remote Desktop Services page on the Windows Server 2008 R2 TechCenter
14-12
Tools
Tool Remote Desktop Services Manager Remote Desktop Gateway Manager RemoteApp and Desktop Connection Purpose Location Administrative Tools on the Start menu Installed when you add the RD Gateways
GUI tool for managing RD Gateway GUI tool for integrating RemoteApp programs and virtual machines with the Start Menu
Control Panel
14-13
R-1
Resources
Contents:
Microsoft Learning Technet and MSDN Content Communities 2 3 5
R-2
Microsoft Learning
This section describes various Microsoft Learning programs and offerings. Microsoft Skills Assessments Describes the skills assessment options available through Microsoft. Microsoft Learning Describes the training options available through Microsoft face-to-face or self-paced. Microsoft Certification Program Details how to become a Microsoft Certified Professional, Microsoft Certified Database Administrators, and more. Microsoft Learning Support To provide comments or feedback about the course, send e-mail to support@mscourseware.com. To ask about the Microsoft Certification Program (MCP), send e-mail to mcphelp@microsoft.com
R-3
R-4
Starting and Configuring the WSS Writer Service Prerequisites and Known Issues with Hyper-V Protection DPM 2007 Administrator Console Using Windows PowerShell Cmdlets on Failover Clusters in Windows Server 2008 R2 Hyper-V: Using Hyper-V and Failover Clustering Planning for High Availability Configuring Host Clusters in VMM to Support Highly Available Virtual Machines Creating and Managing Highly Available Virtual Machines in VMM How to Integrate Operations Manager with VMM 2008 R2 Remote Desktop Services page on the Windows Server 2008 R2 TechCenter Virtual machine backup operations fail in Windows Server 2008 when Hyper-V virtual machine files are saved on a volume that is mounted on a failover cluster by using a volume GUID Hyper-V: Using Hyper-V and Failover Clustering What's New in Microsoft System Center Data Protection Manager 2007 Service Pack 1? Description of Update Rollup 4 for Exchange Server 2007 Microsoft Virtual Server 2005 Updated Additions Update for Windows SharePoint Services 3.0 (KB941422)
MSDN
This course does not contains any MSDN content.
R-5
Communities
This section includes content from Communities for this course Microsoft Virtualization Resources Desktop Virtualization Strategy White Paper Virtualization Products and Technologies Microsoft System Center Virtual Machine Manager R2 Protecting Virtualized Environments with System Center Data Protection Manager System Center Operations Manager System Center Configuration Manager Microsoft server software and supported virtualization environments Virtualization Solution Accelerators Microsoft Download Center: Remote Server Administration Tools for Windows 7 Virtual Hard Disk Image Format Specification Running SQL Server 2008 in a Hyper-V Environment - Best Practices and Performance Recommendations System Center Virtual Machine Manager 2008 R2 Official site Securing Communications with Secure Socket Layer (SSL) How to enable Windows Server Backup support for the Hyper-V VSS Write How to back up Hyper-V virtual machines from the parent partition on a Windows Server 2008based computer by using Windows Server Backup Windows PowerShell 1.0 English Language Installation Packages for Windows Server 2003 and for Windows XP Availability of a Volume Shadow Copy Service (VSS) update rollup package for Windows Server 2003 to resolve some VSS snapshot issues Licensing Remote Desktop Services in Windows Server 2008 R2 Deploying RD Gateway R2 server with NAP Customizing Remote Desktop Web Access by Using Windows SharePoint Services Step-by-Step Guide Deploying Personal Virtual Desktops by Using Remote Desktop Web Access Step-by-Step Guide Virtual Desktop Pools by Using RemoteApp and Desktop Connection Step-by-Step Guide Infrastructure Planning and Design Guides for Virtualization Microsoft Assessment and Planning (MAP) Toolkit Infrastructure Planning and Design Guides for Virtualization About Virtual Machines and Guest Operating Systems
R-6
Courseware Feedback
Send all courseware feedback to support@mscourseware.com. We truly appreciate your time and effort. We review every e-mail received and forward the information on to the appropriate team. Unfortunately, because of volume, we are unable to provide a response but we may use your feedback to improve your future experience with Microsoft Learning products.
Reporting Errors
When providing feedback, include the training product name and number in the subject line of your email. When you provide comments or report bugs, please include the following: Document or CD part number Page number or location Complete description of the error or suggested change
Please provide any details that are necessary to help us verify the issue.
Important All errors and suggestions are evaluated, but only those that are validated are added to the product Knowledge Base article.