The Word Version of this doc can be found at:
/wp-content/uploads/2012/09/FY13H1-IT-Camp-Hands-On-Lab-Hyper-V-Quick-Guide.docx
Microsoft IT Camp
Hands-On Lab
Windows Server 2012: Getting Started
Lab version: 1.0.0
Last updated: 8/15/2012
Contents
Lab 1 – Prepare Dual Boot Windows Server 2012 using Native Boot to VHD
Lab 2 – Install & Configure Hyper-V
Lab 3 – Create Virtual Machines
Lab 4 – Configure Virtual Machines
Objectives
In this series of exercises, you will explore the following:
· Install Hyper-V
· Modify Hyper-V Settings.
· Create Virtual Machines and Differencing Disks.
· Modify Settings for Virtual Machines.
· Create Domain
· Get connectivity working between guest machines
· Add computer to domain
Prerequisites
· Knowledge of Windows Server, Hyper-V and Virtualization
· Computer running Windows 7 or Windows Server 2008 R2 or later
◦ At least 40 GB of free disk space (75 GB preferred)
◦ 4gb memory (8gb preferred)
◦ x64 compatible processor with hardware assisted virtualization (Intel VT or AMD-V technology)
◦ At least one disk without encryption technology (Bitlocker or 3rd party)
◦ Drives Configure as Basic Disks (Not Dynamic)
◦ One Network Patch Cable
NOTE: Before beginning this lab, please confirm that your computer is configured with hardware virtualization technology and hardware memory protection BOTH ENABLED. To confirm these settings, you may need to shutdown and reboot your computer into BIOS Setup.
Tasks in this lab module
v Create Directory Structure for Virtual Machine Use and Copy Files
v Configure Dual Boot (uses AutoBootVHD8.cmd)
1) Create a Directory Structure for Virtual Machine Use and copy files
- Log on to your server as Administrator account
- Open Windows Explorer.
- Create the following Directory Structure at the root of Drive C: or D: [use the one with the most space]
- Images
- ImagesBase
- Images
- Copy AutoBootVHD8.cmd to Images (.TXT version also available if trouble downloading; rename it to .CMD)
- Copy either Server2012RTM.zip (18gb VM – Limited Space) or vhd_server_serverdatacentereval_en-us.exe (40gb VM) to Images
- Extract VHD file from ZIP or .EXE to images folder and rename to Server2012RTM.vhd
- This will be used for Boot2VHD
- Extract VHD file from ZIP or .EXE to images folder and rename to Server2012RTM.vhd
- Open elevated Command Prompt Start | type cmd | Right-click cmd (top of menu) | Run as Administrator
- Change to drive you extracted files to by typing the drive letter followed by a colon (eg. D: }
- Change to the images folder: CD images
- If using .EXE version of VHD:
- Copy Server2012RTM.VHD to Imagesbase {this will be used for guests}
- Create Boot Loader: Run the AutoBootVHD8.cmd file by typing {change drive letter as needed}
- AutoBootVHD8.cmd D:imagesServer2012RTM.VHD -upgrade
- Check for errors, Alert lab monitors if any errors
- AutoBootVHD8.cmd D:imagesServer2012RTM.VHD -upgrade
- Copy Server2012RTM.VHD to Imagesbase {this will be used for guests}
- If using Older .ZIP version of VHD:
- AutoBootVHD8.cmd D:imagesServer2012RTM.VHD -upgrade
- Check for errors, Alert lab monitors if any errors
- C:windowssystem32bcdboot E:windows /s E:
- AutoBootVHD8.cmd D:imagesServer2012RTM.VHD -upgrade
Replace E: above with the drive letter of your mounted VHD
- Check for errors, Alert lab monitors if any errors
- Eject Drive
- Win8/2012 Open Windows Explorer – Right-Click on the VHD Drive [E:] and select Eject
- Win7/2008r2 Right-Click My Computer – Manage – Storage – Disk Management – Click E: (Mounted drive) {bottom} select Detach VHD
- Win8/2012 Open Windows Explorer – Right-Click on the VHD Drive [E:] and select Eject
- Copy ImagesServer2012RTM.VHD to ImagesBaseServer2012RTM.VHD {this will be used for Guests)
- Optional: When finished, type msconfig <ENTER> – click Boot tab = to see the new boot option Click OK
- Restart computer and let it boot into Windows Server 2012
- An Automatic second reboot will be done after installing drivers
- Accept the license agreement {turn on checkbox; click Accept}
- Regional settings Click Next
- Type in a password {P@ssword} and confirm in the second box – Click Finish.
- CTRL-Alt-Delete to Login – enter your password P@ssword
- An Automatic second reboot will be done after installing drivers
Tasks in this lab module
v Create Directory Structure for Virtual Machine Use and Copy Files
v Modify Hyper-V Settings
v Create a Virtual Network Switch
2) Install Hyper-V
a. In Server Manager click “Add roles and features”
b. Before You Begin: Next
c. Installation Type: “Roll-based feature-based installation”; click Next
d. Server Selection: Click Next
e. Server Roles: Click the checkbox next to Hyper-V ; In the popup, click Add Features ; Click Next
f. Features; Enable Wireless LAN Service; Click Next
g. Hyper-V Click Next
h. Hyper-V – Virtual Switches; We will manually add the switch later; just click Next
i. (if you do not have a network adapter listed that means you need to install a NIC driver; we can do that later)
i. Migration click Next (we will enable this later)
j. Default Stores; Click Next
k. Confirmation: Turn on checkbox to “Restart destination server automatically if required” ; in the popup; click Yes to restart automatically; then click Install
l. After Reboots, Login to server {password = P@ssword}
m. Click Close on Installation Progress Page (may take a min or two for the box to come up}
3) Modify Hyper-V Settings
- Open Hyper-V Manager. {Start Keyboard Button – Hyper-V Manager}
- Click on your server name in the left pane
- In Actions Pane, click Hyper-V Settings.
- In left Pane click Virtual Hard Disks enter D:imagesHyper-V [substitute your drive letter]
- In left Pane click Virtual Machines enter D:imagesHyper-V and click OK [substitute your drive letter]
4) Create a Virtual Network Switch
- In the Actions Pane, click Virtual Switch Manager.
- In the Create virtual switch pane, click Internal and then click Create Virtual Switch.
- Enter IT Camp Lab for the Name and click OK.
- Create one more virtual switch with following information:
- Type: Internal
Name: IT Camp Heartbeat
- Type: Internal
- Later, you will want to come back in here to create an External network that will be linked to your physical NIC. But, let’s not do that now.
Lab 3 – Create Virtual Machines
Tasks in this lab module
v Create Virtual Machines (VM)
v Create Differencing Hard Disks for use by Virtual Machines
v Associate Hard Disks with Virtual Machines
5) Create Virtual Machines
- Log on to Server as Administrator account.
- Open Hyper-V Manager. Click the Server Name in the left pane
- In Actions Pane, Click New -> Virtual Machine
- Before You Begin screen: Click Next
- Specify Name Type: DC Click Next
- Check Store the virtual machine in a different location option and click Next
- Assign Memory [Optional: Turn on checkbox Use Dynamic Memory for this virtual machine] Click Next
- Configure Networking, Set Connection to IT Camp Lab click Next
- For Connect Virtual Hard Disk setting, select Attach a virtual hard disk later and click Finish
6) Create Differencing Hard Disks for Use by Virtual Machines
- In Actions Pane, click New -> Hard Disk
- Before You Begin; Click Next
- Choose Disk Format: VHD
- Choose Disk Type: Differencing
- Specify Name and Location:
i. Name: DC.vhd
ii. Location: D:ImagesHyper-VDC
- Configure Disk: D:ImagesBaseServer2012RC.vhd click Finish
7) Associate Hard Disks with Virtual Machines
- Right Click DC and choose Settings.
- Click IDE Controller 0 and click Add.
- Click Browse and navigate directory structure to D:ImagesHyper-VDCDC.vhd and click Open.
- Click OK.
8) Start DC. {Right-Click DC – Select Start} — For the sake of saving time, skip down to lab 4 to keep the DC moving
9) Repeat Step 5 and create the following additional Virtual Machines
- Storage, Cluster1, Cluster2
10) Repeat Step 6 to create additional Hard Disks
- Name: Storage.vhd; Location: D:Images Hyper-V Storage
- Name: Cluster1.vhd; Location: D:Images Hyper-V Cluster1
- Name: Cluster2.vhd; Location: D:Images Hyper-V Cluster2
11) Repeat Step 7 to Attach Hard Disks (IDE Controller 0) for the following Virtual Machines:
- Storage = D:ImagesStorageStorage.vhd
- Cluster1 = D:ImagesCluster1Cluster1.vhd
- Cluster2 = D:ImagesCluster2Cluster2.vhd
Lab 4 – Configure Virtual Machines
Tasks in this lab module
v Configure Virtual Machines (VM)
12) Configure Virtual Machines
- Configure DC.
A. Start DC. {Right-Click – Select Start}
B. When Server has finalized configuring devices, finish the setup and log in to the server.
i. Skip through Pre-Installation Environment adjusting settings as desired
ii. Use P@ssword as the password – Click Finish
iii. Double-Click title bar to get into full screen mode
iv. CTRL-ALT-End to get login screen in full screen mode
C. Configure IP with the following settings:
i. Start – Type Network – Click Settings – Click Network and Sharing Center
ii. Click Change Adapter Settings (Left Pane)
iii. Right Click Ethernet – Select Properties; Click TCP/IP v4 – Select properties; Use the following IP Address:
IP Address: 192.168.1.10
Subnet Mask: 255.255.255.0
Default Gateway: <Leave Blank>
Preferred DNS: 127.0.0.1
iv. OK; Close; close network Connections; close network and Sharing center
D. Change Computer Name to DC.
i. Start – Right-Click Computer – Select Properties; click Change settings; click change; type DC under Computer Name; OK; OK; Close; Restart Now;
ii. Login to server (CTRL-ALT-End Administrator: P@ssword)
E. Add Active Directory Domain Services and make this a Domain Controller (pick your own domain name) Login using administrator [Note: Ctrl-Alt-End from a Guest window will perform Ctrl-Alt-Delete on the guest]
i. Shortcut: Start; Windows Powershell;
· Install Active Directory Domain Services
a. Add-windowsfeature Ad-Domain-Services
b. While running, this is a good time go back and finish lab 3
· Create forest and Promote to Domain Controller
a. Install-ADDSForest –domainname “corp.contoso.loc”
i. Ok to use different domain name if you like J
ii. Enter password P@ssword {recovery password}
iii. Re-enter password P@ssword
iv. A <ENTER> (for – Yes To All)
v. Log back into server P@ssword – You are now logged into the domain
b. If you did not Finish Lab 3, now is a good time to do it.
c. If done with Lab 3- Move on to Step 2 below {while domain creation runs}
ii. Long Way: online http://go.microsoft.com/fwlink/?linkid=220921
· Note: DCPromo No longer exists
- Configure Storage
- Start Storage.
- When Server has finalized configuring devices, finish the setup and log in to the server.
- Skip through Pre-Installation Environment adjusting settings as desired
- Use P@ssword as the password – Click Finish
- Skip through Pre-Installation Environment adjusting settings as desired
- Configure IP with the following settings: (See Lab 4: 12.1 above for step-by-step)
- Start – Type Network – Click Settings – Click Network and Sharing Center; Click Change Adapter Settings (Left Pane)
- Right Click Ethernet – Select Properties; Click TCP/IP v4 – Select properties; Use the following:
- IP Address: 192.168.1.11
Subnet Mask: 255.255.255.0
Default Gateway: <Leave Blank>
- Start – Type Network – Click Settings – Click Network and Sharing Center; Click Change Adapter Settings (Left Pane)
- Start Storage.
Preferred DNS = 192.168.200.10
- Change Computer Name to Storage and Join corp.contoso.loc Domain
- Start – Right-Click Computer – Select Properties; click Change settings; click change;
- type Storage under Computer Name;
- Select Member of Domain Type corp.contoso.loc under Domain Click OK – In the popup use Adminstrator and P@ssword for credentials – Click OK on the welcome dialog; Click OK on Restart dialog; click close on system properties
- type Storage under Computer Name;
- Click Restart Now;
- Click the left arrow and select “Other User”; Type corpadministrator for user name and P@ssword for the password then press <Enter>
- You are now logged into the domain
- Start – Right-Click Computer – Select Properties; click Change settings; click change;
Tasks in this lab module
v Create Snapshot of all Virtual Machines
1) In Hyper-V Manager, highlight all VMs (DC, Storage, Cluster1, and Cluster2).
a) You can select multiple VMs by holding down the CTRL key while selecting VMs.
2) Right Click and select Snapshot.
End of Lab…
Tasks in this lab module
v Configure more Virtual Machines (VM)
When you get home/office, you can finish setting up the other two machines…
- Configure Cluster1
- Start Cluster1.
- When Server has finalized configuring devices, finish the setup and log in to the server.
- Use P@ssw0rd as the password.
- When Server has finalized configuring devices, finish the setup and log in to the server.
- Configure IP with the following settings:
- IP Address: 192.168.1.21
Subnet Mask: 255.255.255.0
Default Gateway: <Leave Blank>
- IP Address: 192.168.1.21
- Start Cluster1.
Preferred DNS = 192.168.1.10
- Change Computer Name to Cluster1 and Join corp.contoso.loc Domain
- Start – Right-Click Computer – Select Properties; click Change settings; click change;
- type Cluster1 under Computer Name;
- Select Member of Domain Type corp.contoso.loc under Domain Click OK – In the popup use Adminstrator and P@ssword for credentials – Click OK on the welcome dialog; Click OK on Restart dialog; click close on system properties; Click Restart Now;
- type Cluster1 under Computer Name;
- Click the left arrow and select “Other User”; Type corpadministrator for user name and P@ssword for the password then press <Enter>
- Start – Right-Click Computer – Select Properties; click Change settings; click change;
- Configure Cluster2
- Start Cluster2.
- When Server has finalized configuring devices, finish the setup and log in to the server.
- Use P@ssw0rd as the password.
- When Server has finalized configuring devices, finish the setup and log in to the server.
- Configure IP with the following settings:
- IP Address: 192.168.1.22
Subnet Mask: 255.255.255.0
Default Gateway: <Leave Blank>
- IP Address: 192.168.1.22
- Start Cluster2.
Preferred DNS = 192.168.1.10
- Change Computer Name to Cluster1 and Join corp.contoso.loc Domain
- Start – Right-Click Computer – Select Properties; click Change settings; click change;
- type Cluster2 under Computer Name;
- Select Member of Domain Type corp.contoso.loc under Domain Click OK – In the popup use Adminstrator and P@ssword for credentials – Click OK on the welcome dialog; Click OK on Restart dialog; click close on system properties
- type Cluster2 under Computer Name;
- Click Restart Now;
- Start – Right-Click Computer – Select Properties; click Change settings; click change;
- Click the left arrow and select “Other User”; Type corpadministrator for user name and P@ssword for the password then press <Enter>
More Information
Dan’s Blog
http://itproguru-app.azurewebsites.net
Windows Server Blogs
http://blogs.technet.com/b/windowsserver/
Windows Server 2012 Product Download
Microsoft Virtual Academy
Windows Server 2012 Virtual Labs
http://technet.microsoft.com/en-us/windowsserver/hh968267.aspx
Windows Azure 90-Day Free Trial Page