Beruflich Dokumente
Kultur Dokumente
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Step 3: Create virtual network 1. Select your host machine in the left pane. 2. On the Action pane, click Virtual Network Manager 3. A default External Virtual Network with external network device has been created. 4. Select this default External Virtual Network and change the name to Internal Connection. Do not enable VLAN. Click Apply. 5. Click OK. Step 4: Change Hyper-V server default settings 1. On the Action pane, click Hyper-V Settings. 2. The default virtual hard disks and virtual machines settings are created. 3. Change the default folder location for both hard disks and machines to C:\LocalVM, and click Apply. 4. Click OK.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Step 3: Add the Active Directory Domain Services server role and install the Domain Controller In this step you will to prepare the domain controller for the environment. 1. After be restarted log in again to the server, close the Initial Configuration Tasks windows (you can select the Do not show this window at logon at this time) 2. The Server Manager console appears, select the Roles node, and in the Details panel select Add Roles 3. In the Before you Begin window, click Next 4. In the Select Server Roles, select Active Directory Domain Services, the Add Roles Wizard appears, click Add Required Features and click Next twice 5. To add the Active Directory Domain Services server role, click Install 6. When the Installation Progress ends, click Close. 7. To promote this machine as a Domain Controller, in the Server Manager expand the Roles node and then click in the Active Directory Domain Services role. 8. In the details panel click in the Run the Active Directory Domain Services Installarion Wizard (dcpromo.exe) link. 9. When the wizard opens, click Next in the Welcome window. 10. Click Next again in the Operating System Compatibility window. 11. In the Choose a Deployment Configuration click in the Create a new domain in a new forest option, and then click Next. 12. Type contosoM.com for the FQDN of the forest root domain field,, and then click Next
13. In the Set Forest Functional Level select Windows Server 2008 R2 from the menu and then click Next. 14. For the Additional Domain Controler Options windows, leave the default selection and then click Next, if a message appears saying that you have a Dynamic Address in your IP configurations, click Yes to accept this and continue. 15. Leave the default paths for the, Location for Database, Log files and SYSVOL, and then click Next 16. In the fields Password and Confirm Password, type Pa$$w0rd as the password, ant then click Next twice 17. Wait until the wizard complete the action to promote de server as the Root forest domain controller and then click Finish 18. To restart the server click Restart Now 19. When the computer restarts, Login as CONTOSOM\Administrator whit password Pa$$w0rd Step 4: Join the Host to the ContosoM.com domain You need to join the HOSTM00 to the domain Perform the following steps on both the primary machine and the secondary machine. First you need to check the communication with the domain. 1. In a Command Prompt ping to the ContosoM.com domain If the ping is not successful ask to your instructor about this problem. 2. Go to the Server Manager and then click the Change System Properties link
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
3. In the System Properties window, click the Change button 4. The windows Computer Name/Domain Changes appears, under Member of choose the Domain option and type contosoM.com in the field, and then clic OK. 5. When ask for credentials type the next: Username: Administrator Password: Pa$$w0rd Click OK 6. A window that gives you the welcome to the ContosoM.com domain appears, click OK twice 7. Click the Close button at the System Properties window, and then click the Restart Now button 8. Wait until the system restarts. Check that although the Domain Controller be a Virtual Machine, the Host can login to domain.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Lab 3-1: Implementing Microsoft System Center Virtual Machine Manager 2008 R2
In this lab you will install SCVMM 2008 R2 Server on one of the cluster nodes and the Administrator Console on both physical Hyper-V hosts. Perform the following steps on the primary machine. This machine will now be the SCVMM server. Step 1: Install and configure SCVMM 2008 R2 server In this beta release, the WAIK prerequisite must be installed manually before the installation of SCVMM Server. 1. Log on to the primary machine as Administrator with the password Pa$$w0rd. 2. Start setup.exe C:\Course \SCVMMR2\setup.exe 3. If a Security Warning prompt pops up, click Run. On the Windows Internet Explorer prompt, click Add and then Add again and then Close. 4. Under Setup, click Server. 5. Accept the license terms, and click Next. 6. Click Next on the next two dialogs. 7. Type a user name and company, and click Next. 8. The Prerequisites Check will verify the present software and hardware components. Click Next. 9. Leave the default Installation Path and click Next. 10. Select Install SQL Server 2005 Express Edition, and click Next. 11. Ensure that Create a new library share is selected and then click Next. 12. Click Next to use default ports for SCVMM 2008 R2 connections (8100, 80, 443). 13. Review the summary of settings and click Install. Click Close when the installation is done. 14. Allow the installer to restart the Virtual Machine Manager service, if not occurred, restart it please. 15. Launch Services and verify that the Virtual Machine Manager service has restarted. If not, manually restart the service.
Perform the following steps on both the primary and secondary machines. Step 2: Install SCVMM 2008 R2 Administrator Console 1. Start setup.exe at C:\Course\SCVMMR2\setup.exe 2. If a Security Warning prompt pops up, click Run. On the Internet Explorer prompt, click Add and then Add again and then Close. 3. Click Administrator Console. 4. Accept the license terms, and click Next. 5. Click Next.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
6. The Prerequisites Check will verify the present software and hardware components (if Microsoft .NET Framework 3.0 and Windows PowerShell 1.0 are not already installed, setup installs the software automatically). Click Next. 7. Leave the default Installation Path, and click Next. 8. Click Next to use the default port setting (8100) for the VMM Administrator Console to communicate with the VMM server. 9. On the Summary of Settings page, click Install. 10. Click Close. 11. Click Exit.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Common HTTP features o Static content o Default documents o Directory browsing o HTTP errors
Security o Request filtering Management tools o IIS Management Console o IIS Management Scripts and Tools o Management Service o IIS 6 Management Compatibility
2. Open IIS Manager, remove the Default Web Site (port 80). 3. Start the setup.exe at C:\Course\SCVMMR2\setup.exe 4. If a Security Warning prompt pops up, click Run 5. Click Self-Service Portal under Setup. 6. Accept the license terms and click Next. 7. The Prerequisites Check will verify the present software and hardware components. Click Next. 8. Leave the default Installation Path, and click Next. 9. Verify that your hostname is correct in the Virtual Machine Manager server field. This should be HOSTM00.contosoM.com. Click Next. 10. On the Summary of Settings page, click Install. 11. Click Close. 12. Click Exit.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
13. Test the installation. Start Internet Explorer and type http://hostM00. You wont be able to log in yet because access has not been configured. Note: The Virtual Machine Manager Server, Console, and other hosts like Library Server, Microsoft Virtual Server or other Hyper-V Server must all be joined to the Active Directory domain, although the hosts may be in a separate domain from the Virtual Machine Manager server if desired. If separate domains are used, there must be a trust relationship established between the Virtual Machine Manager Server domain and the host domain. The SCVMM server must be a member server. Installation on a Domain Controller is possible but not recommended. (Note: First you have to install a Domain Controller, then SCVMM 2008 R2). Step 2: Import your own Hyper-V Host into Microsoft SCVMM 2008 R2 Server 1. Launch the SCVMM Admin Console from the desktop and connect to your local machine. 2. From the Actions pane, click Add hosts. 3. Verify that the user name is your Admin account, enter the password and then click Next. 4. Type your Hyper-V host FQN or click Hosts server name... and search for the host in the contosoM.com domain. 5. Select your host and click Add and OK. 6. Click Next. 7. In Configuration Settings, select a host group, if required, and then click Next. 8. You do not have to define any new Virtual Machine Paths. Click Next. 9. On the Summary tab, review your specifications and then click Add Hosts. 10. Back in the Virtual Machine Manager, find your server and make sure the Status reads OK.
10
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Lab 3-3: Implement Access Control for Hyper-V Hosts and SCVMM 2008
Access Control with Hyper-V Manager and SCVMM 2008 R2 Server Perform the following steps on both the primary and secondary machines. Step 1: Authorization roles in Hyper-V Note: After the default installation of Hyper-V, only users in the Administrators or Domain Administrators group are able to manage or create Hyper-V and virtual machines. Change the default authorization for a standard domain user (ask the trainer for the standard user account). 1. Start the Authorization Manager Console (azman.msc). 2. Click Action and select Open Authorization Store. 3. Select XML file and select the InitialStore.xml file from %systemdrive%\programdata\microsoft\windows\Hyper-V directory Note: By default this folder is hidden but it can be accessed by typing the path in manually. 4. Click OK. 5. Expand the tree to Hyper-V services, Role Assignments, and select Administrator. 6. Right-click Administrator and select Assign Users and Groups, then From Windows and Active Directory. 7. Select your domain user account (user<X>) and click OK. 8. Close Authorization Manager. 9. Start Local Users and Groups (lusrmgr.msc) and put your domain user account into the Distributed COM Users group. 10. Start WMI control (wmimgmt.msc). 11. Right-click WMI Control and select Properties. Switch to the Security tab. Expand the tree and select the Root\CIMV2 namespace node. 12. Click the Security button. Use Add and add your user<X> account. 13. Back in the Security for ROOT\CIMV2 dialog, click the Advanced button. 14. In the Permissions tab, select your domain user account and click the Edit button. 15. Change the Apply to field to This namespace and subnamespaces and for Remote Enable, select Allow. 16. Choose Apply these permissions to objects and/or containers within this container only and click OK until you are back in the Security tab. 17. Expand the namespace tree and select the Root\virtualization namespace node. 18. Repeat the steps used above. 19. Browse to C: and ensure that your domain user account has full control to LocalVM. 20. Reboot your host machine.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
11
21. Log on as your domain user account (user<X>) . 22. Start Hyper-V Manager and verify that it launches. Due to known issues with Hyper-V, the access control does not function properly. Success with this exercise may be intermittent. 23. Log off from user<X>. Perform the following steps on the primary machine. Step 2: Authorization roles in SCVMM 2008 In SCVMM 2008R2 Server, there are three authorization roles:
Administrator (all SCVMM 2008 R2 actions allowed) Delegated Administrator Role (specialization of the tasks and functions that administrators are assigned) Self Service User (Administrator can delegate this provisioning role to authorized users through a self-service Web portal while maintaining precise control over the management of virtual machines)
1. Log on to the host machine as your domain administrator (Admin<X>). 2. Start the SCVMM Admin Console. 3. On the Connect to Server prompt, connect to HOSTM00:8100. Note: If you are unable to connect with Admin<X> it may be necessary to use ContosoM\Administrator. 4. In Administration, click User Roles and start New user role action. 5. Create a User role name called DelAdmin and then set the Profile to Delegated Administrator and click Next. 6. In the Add members page, add members Admin<X> of your group and click Next. 7. In the Object Scope, select all library and host groups, and click Next. 8. On the Summary page, Create the user role. 9. Click New user role again. 10. Enter a user role name of Selfservice<M>, select Self Service User as the Profile, and click Next. 11. Add the User<X> account and Domain Admins group as user role members, and click Next. 12. Select All Hosts, click Next. 13. Select All task, click Next. 14. Allow users to create new virtual machines, click Next. 15. Do not allow users to store virtual machines, click Next. 16. Click Create. 17. Launch Server Manager and in the right pane under Security Information, click Configure IE ESC.
12
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
18. Turn Off ESC for Administrators and Users. 19. Log off and log on as nwtraders\user<X>. 20. Using Internet Explorer, log on to your self service portal at http://hostM00 with the ContosoM\user<X> or domain administrator account. 21. Notice you can create a New Computer on the left pane. 22. Log off User<X>.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
13
14
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
6. Specifying iSCSI targets: If both the storage and iSCSI-Initiator client are in the same domain, share the same subnet, and have the ability to talk via UDP, the provider will discover the target automatically via mailslots. However, there is a chance that the Microsoft iSCSI Software Target VDS Hardware Provider service may not detect all iSCSI Software Target servers on the network if one or more of the conditions above are not met. To work around the issue, you need to manually add the iSCSI Software Target to be managed by the Microsoft iSCSI Software Target VDS Hardware. 7. To avoid problems in this lab environment, perform the following steps on both host machines: Open Registry Editor and navigate to: HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\WTVDSProv\ WTServers Create a string (REG_SZ) value where the value name is the iSCSI Software Target server name (WSSVMM) and the value is blank. Each partner should have this VM in their list.
8. Restart the VDS service. If VDS is running, you need to restart VDS service so it can use the newly installed hardware provider (you do not need reboot the server, just stop and start the VDS service). You can do this using the Services MMC or using the SC command line:
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
15
In command prompt, type: DISKRAID If the hardware provider is loaded, it should load and give you a command prompt. DISKRAID>
Show installed Hardware Provider version: DISKRAID> list providers To list available iSCSI Target SubSystem, type: DISKRAID> list subsystem Select a iSCSI Target: DISKRAID> sel subsystem 0 Show details to iSCSI Target: DISKRAID> detail subsystem End Diskraid: DISKRAID> exit
16
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
1. Right click at iSCSI Targets, and select Create iSCSI Target 2. In the Create iSCSI Target Wizard, in the Welcome screen, click Next 3. Type iSCSI4HA for the iSCSI target name field and for HAVM for the Description field and then click Next 4. In the iSCSI initiators identifiers click the Advanced button 5. In the Advanced Identifiers click the Add button 6. Click Browse button in the Add/Edit Identifier and select the first IQN in the list and click OK 7. Repeat the steps 9 and 10 to add the second IQN 8. In the Advanced Identifiers click OK to close this window 9. Click Next and Finish to close the wizard
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
17
1. Right click in the iSCSI4HA (the new iSCSI Target) and select Create Virtual Disk for iSCSI Target 2. Click Next in the Welcome screen 3. Type C:\forHAVM.vhd in the File: field and then click Next 4. In the Size screen type 1024 in the Size of virtual disk (MB): field, and then click Next 5. Give a description for the virtual hard disk, and click Next 6. Click Finish to ends the wizard Step 4: Start the iSCSI-Initiator (last configuration) Perform the following steps on both the primary and secondary machines. 1. Each student will launch iSCSI Initiator from Administrative Tools on their host machine. 2. In the Targets tab, under the Discovered targets appears two entries, click in the entry that ends with iscsi4ha-target, and click the Connect button. 3. In the Connect to Target, click OK Note: If the connection fails, make sure that all IP addresses are entered correctly. Mistyped IP addresses are a common cause of connection problems.
18
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
To use Storage Manager for SANs with an Internet SCSI (iSCSI) subsystem, an iSCSI software initiator such as Microsoft iSCSI Initiator must be installed on the server (see Lab 4-3).
For more information about iSCSI, see http://go.microsoft.com/fwlink/?LinkId=102299
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
19
20
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Perform the following steps on only on the primary machine. 1. In Failover Cluster Management, click Create a Cluster. 2. Click Next on the Before You Begin page. 3. Type both your host machine name and your partners host machine name, and click Next. 4. On the Validation Warning page, select No. I do not require support and click Next. 5. Specify a Cluster name of CFullM. 6. Specify an IP address for the cluster as 192.168.17.22+M and click Next. 7. Click Next to confirm. 8. After the wizard runs and the Summary page appears, to view a report of the tasks the wizard performed, click View Report. 9. Note we receive a warning about the quorum disk. This goes hand-in-hand with our previous warnings about storage. We will now create these disks. Click Finish. 10. Right-click the newly created cluster and select More Actions, Shutdown Cluster, then click Yes.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
21
Note:
To create a new iSCSI Target, select your iSCSI-Target Server in the drop-down list, and click Add Enter the Target friendly name of iSCSiT<n>. Click Enable for the IP address of your iSCSI-Target server. Click OK.
Ignore the warning: Storage Manager for SANs was able to create the target, but could not add the portal(s) to the target because the operation is not supported by the provider. This is an error in the beta software of VDS hardware provider 3.1.
Click Close Click Refresh in the Actions pane and open the Manage iSCSI Targets... action. The new iSCSI Target should be available. Click Close. Wait until your partner has caught up with you. Launch iSCSI Initiator from Administrative Tools. Click the Targets tab. You should see two machines in the list. Click Log On for both. If you do not see both machines, ensure Lab 4-1 Step 2 has been done correctly. On the Log On to Target dialog box, leave the defaults and click OK. Click OK again.
22
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Perform the following steps only on the same machine used to create a cluster in Lab 4-4 Step 3. 4. Create an iSCSI LUN for the quorum shared cluster disk with the Provision Storage Wizard:
Click Create LUN in the Actions Pane. Click Next on the Before You Begin page. Select your iSCSI subsystem WSSVMM, click Next. Select a LUN type: Simple, click Next. Type a LUN name: Q<M> and specify a LUN size: 1GB, click Next. Select the Friendly iSCSi target. Ensure that both host machines are connected in the bottom pane and click Next, If prompted, ignore the warning from the Provision Storage Wizard and click Yes. Volume Creation: Assign drive letter Q:, click Next. Format - Volume label: Q<M>_Quorum, click Next. Click Create. Click Close.
5. Create an iSCSI LUN for the virtual machine shared disk with the Provision Storage Wizard:
Click Create LUN in the Actions Pane. Click Next on the Before You Begin page. Select your iSCSI subsystem WSSVMM, click Next. Select a LUN type: Simple, click Next. Type a LUN name: V<M> and specify a LUN size: 20GB, click Next. Select the Friendly iSCSi target and click Next. If prompted, ignore the warning from the Provision Storage Wizard and click Yes. Volume Creation: Assign drive letter V:, click Next. Format - Volume label: V<M>_VM, click Next. Create LUN. Confirm that it finished successfully and click Close. Open Computer Management on both host machines and notice the newly created drives in Disk Management. Note: On the host where the LUNs were not created, the disks are not active.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
23
Configure the Quorum and Virtual Machine shared disks Perform the following steps on the same machine used to create the above LUN.
24
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
8. To bring the virtual machine online, under Services and Applications, right-click the virtual machine and then click Bring this service or application online. This action will bring the virtual machine online and start it.
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
25
Technical Deep-dive: Set Up, Migrate, and Maintain a Virtual Environment using Windows Server Hyper-V and System Center Lab Manual
Mesa 1 2 3 4 5 6 7 8 9 10 11 12
Asiento 1 3 5 7 9 11 13 15 17 19 21 23 2 4 6 8 10 12 14 16 18 20 22 24
Dominio Contoso1 Contoso2 Contoso3 Contoso4 Contoso5 Contoso6 Contoso7 Contoso8 Contoso9 Contoso10 Contoso11 Contoso12
HOST1 Host100 Host200 Host300 Host400 Host500 Host600 Host700 Host800 Host900
IP HOST1 51 53 55 57 59 61 63 65 67 69 71 73
IP Storage 201 202 203 204 205 206 207 208 209 210 211 212
IP Cluster 221 222 223 224 225 226 227 228 229 230 231 232
HAVM 121 122 123 124 125 126 127 128 129 130 131 132