Step 2: Installing and Configuring the Virtual Machine
Updated: March 30, 2010
Applies To: Windows 7, Windows Server 2008 R2
In this step, you will install and configure the virtual machine that will be used as a personal virtual desktop.
Use the following table as a reference when setting up the appropriate computer names, operating systems, and network settings that are required to complete the steps in this guide.
|Computer name||Operating system requirement||IP settings||DNS settings|
Install the personal virtual desktop computer (PVD1-CLNT)
To configure the virtual machine that will be used as a personal virtual desktop, you must complete the following tasks:
Install Windows 7 on the virtual machine.
Configure TCP/IP properties.
Join the virtual machine to the contoso.com domain.
Import the SSL certificate for the Remote Desktop Web Access (RD Web Access) server on the CONTOSO-CLNT computer.
To install Windows 7 on a virtual machine
Log on to RDVH-SRV as CONTOSO\Administrator.
Insert the Windows 7 product DVD into the DVD drive on the RDVH-SRV server.
Open Hyper-V Manager. To open Hyper-V Manager, click Start, point to Administrative Tools, and then click Hyper-V Manager.
Right-click RDVH-SRV, point to New, and then click Virtual Machine.
On the Before You Begin page, click Next.
In the Name box, type pvd1-clnt.contoso.com and then click Next.
On the Assign Memory page, click Next.
On the Configure Networking page, in the Connection box, select the virtual network that contains the other machines in the contoso.com domain, and then click Next.
On the Connect Virtual Hard Disk page, in the Name box, type pvd1-clnt.contoso.com; in the Size box, type 30 and then click Next.
On the Installation Options page, click Install an operating system from a boot CD/DVD-ROM drive.
In the Physical CD/DVD drive box, select the DVD drive that contains the Windows 7 product DVD, and then click Next.
On the Completing the New Virtual Machine Wizard page, review the installation options, and then click Finish.
In the Virtual Machines area, right-click pvd1-clnt.contoso.com, and then click Connect.
On the Action menu, click Start to start the installation of Windows 7.
During the installation of the virtual machine, specify pvd1-clnt as the name of the computer.
Next, configure TCP/IP properties so that PVD1-CLNT has a static IP address of 10.0.0.9. In addition, configure the DNS server of CONTOSO-DC (10.0.0.1).
To configure TCP/IP properties
Log on to PVD1-CLNT as a member of the local Administrators group.
Click Start, click Control Panel, click Network and Internet, and then click Network and Sharing Center.
Click Change adapter settings, right-click Local Area Connection, and then click Properties.
On the Networking tab, click Internet Protocol Version 4 (TCP/IPv4), and then click Properties.
Click Use the following IP address. In the IP address box, type 10.0.0.9. In the Subnet mask box, type 255.255.255.0. In the Default gateway box, type 10.0.0.1.
Click Use the following DNS server addresses. In the Preferred DNS server box, type 10.0.0.1.
Click OK, and then close the Local Area Connection Properties dialog box.
Next, join PVD1-CLNT to the contoso.com domain.
To join PVD1-CLNT to the contoso.com domain
Click Start, right-click Computer, and then click Properties.
Under Computer name, domain, and workgroup settings, click Change settings.
On the Computer Name tab, click Change.
In the Computer Name/Domain Changes dialog box, under Member of, click Domain, and then type contoso.com.
Click More, and in the Primary DNS suffix of this computer box, type contoso.com.
Click OK, and then click OK again.
When a Computer Name/Domain Changes dialog box appears prompting you for administrative credentials, provide the CONTOSO\Administrator credentials, and then click OK.
When a Computer Name/Domain Changes dialog box appears welcoming you to the contoso.com domain, click OK.
When a Computer Name/Domain Changes dialog box appears telling you that the computer must be restarted, click OK, and then click Close.
Click Restart Now.
Finally, import the SSL certificate for the RD Web Access server on the PVD1-CLNT computer.
To import the SSL certificate for the RD Web Access server on the PVD1-CLNT computer
Log on to PVD1-CLNT as CONTOSO\Administrator.
Click Start, in the Start Search box, type mmc and then click OK.
On the File menu, click Add/Remove Snap-in.
In the Add or Remove Snap-ins dialog box, in the Available snap-ins list, click Certificates, and then click Add.
In the Certificates snap-in dialog box, click Computer account, and then click Next.
In the Select Computer dialog box, click Local computer: (the computer this console is running on), and then click Finish.
In the Add or Remove snap-ins dialog box, click OK.
In the Certificates snap-in console, in the console tree, expand Certificates (Local Computer), and then click Trusted Root Certification Authorities.
Right-click the Trusted Root Certification Authorities folder, point to All Tasks, and then click Import.
On the Welcome to the Certificate Import Wizard page, click Next.
On the File to Import page, in the File name box, click Browse, and then browse to the location where you copied the SSL certificate for the RDWA-SRV computer. Click Open, and then click Next.
On the Certificate Store page, accept the default option (Place all certificates in the following store – Trusted Root Certification Authorities), and then click Next.
On the Completing the Certificate Import Wizard page, click Finish.
After the certificate import has successfully completed, a message appears confirming that the import was successful. Click OK.
Log off from the PVD1-CLNT computer.
Configure the virtual machine for Remote Desktop Services
You can configure the virtual machine by using Windows PowerShell. If you prefer to configure the virtual machine manually, see Appendix A: Configuing the Virtual Machine Manually in this document.
The Windows PowerShell script does the following on the virtual machine:
Enables Remote Desktop
Enables Remote Procedure Call (RPC)
Adds selected users to the Remote Desktop Users group
Adds the proper RDP-TCP listener permissions for the RD Virtualization Host server
Adds a Windows Firewall exception for Remote Desktop Services
Adds a Windows Firewall exception for Remote Services Management
Restarts the Remote Desktop Services service
To configure the virtual machine, type the following commands at the Windows PowerShell prompt:
Set-ExecutionPolicy remotesigned –force, and then press ENTER.
Configure-VirtualMachine.ps1 –RDVHost contoso\rdvh-srv –RDUsers contoso\mskinner, and then press ENTER.
You have installed and configured the virtual machine. Now you can proceed to Step 3: Configuring the Personal Virtual Desktop.