Please visit this link to grab the VHD you will need for the upcoming IT Pro Windows Server 2012 labs: http://aka.ms/ws2012tp 

Be sure to have any zip files unzipped when arriving, and print out a copy of the lab manual for reference.

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.

Lab 5 – Snapshot.

Post Lab Configuration.

 

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
  • Knowledge of Windows Server, Hyper-V and Virtualization
  • Computer running Windows 7 or Windows Server 2008 R2 or later

Prerequisites

◦      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.

 

Lab 1 – Prepare Dual Boot Windows Server 2012 using Native Boot to VHD

Tasks in this lab module

Create Directory Structure for Virtual Machine Use and Copy Files

Configure Dual Boot (uses AutoBootVHD8.cmd)

1)      Create a Directory Structure for Virtual Machine Use and copy files

  1. Log on to your server as Administrator account
  2. Open Windows Explorer.
  3. Create the following Directory Structure at the root of Drive C: or D: [use the one with the most space]
    1. Images
    2. Images\Base
  4. Extract and Copy the file named AutoBootVHD8.cmd to the \Images folder
  5. Copying the extracted file from the download here: Server 2012 VHD Download 
    1. Extract VHD file from the .EXE to both the \Images folder and \Images\Base folder and rename to Server2012RTM.vhd
    2. The \Images\Server2012RTM.VHD file will be used for the Boot2VHD.  The identical file under the Base directory will be used later as a Parent disk for VMs.
  6. Open elevated Command Prompt  Start | type cmd | Right-click cmd (top of menu) | Run as Administrator
  7. Change to drive you extracted files to by typing the drive letter followed by a colon (eg.  D: }
  8. Change to the images folder:  CD \images
  9. Now we will execute the command to automatically setup the dual boot configuration:
    1. But first make sure a copy of Server2012RTM.VHD resides in \Images\base {this will be used for VM guests later}
    2. Create Boot Loader:
      1. Open an elevated Command Prompt from Start | type cmd | Right-click cmd (top of menu) | Run as Administrator
      2. AutoBootVHD8.cmd  D:\images\Server2012RTM.VHD -upgrade
      3. When prompted, enter the DriveLetter of the new Drive that was created (eg: E)
      4. Check for errors, Alert lab monitors if any errors
      5. Optional: When finished, type msconfig <ENTER> - click Boot tab = to see the new boot option.
        1. If running Windows 7: Click your original operating system (eg: Windows 7) click Set As Default Click OK; Click Restart.  You will be presented with the choice to boot to Server 2012. (Note when you finish with the labs, you can delete the VHD files and the entry in this Boot tab to clean up the laptop.)

Finish the Setup Wizard

  1. An Automatic second reboot will be done after installing drivers
  2. Accept the license agreement {turn on checkbox; click Accept}
  3. Regional settings Click Next
  4. Type in a password {P@ssword} and confirm in the       second box – Click Finish.
  5. CTRL-Alt-Delete to Login – enter your password P@ssword

If participating in the Early Experts series return to the page here and continue where you left off! If not part of Early Experts and just want to continue trying out new stuff, proceed on below!

Lab 2 – Install & Configure Hyper-V

Tasks in this lab module

Create Directory Structure for Virtual Machine Use and Copy Files

Modify Hyper-V Settings

Create a Virtual Network Switch

 

1)      Install Hyper-V

  1. In Server Manager click “Add roles and features
  2. Before You Begin: Next
  3. Installation Type: “Roll-based feature-based installation”; click Next
  4. Server Selection: Click Next
  5. Server Roles: Click the checkbox next to Hyper-V ; In the popup, click Add Features ; Click Next
  6. Features; Enable Wireless LAN Service;  Click Next
  7. Hyper-V Click Next
  8. Hyper-V – Virtual Switches;  We will manually add the switch later; just click Next

     (if you do not have a network adapter listed that means you need to install a NIC driver; we can do that later)

  1. Migration click Next (we will enable this later)
  2. Default Stores; Click Next
  3. Confirmation: Turn on checkbox to “Restart destination server automatically if required” ; in the popup; click Yes to restart automatically; then click Install
  4. After Reboots, Login to server {password = P@ssword}
  5. Click Close on Installation Progress Page (may take a min or two for the box to come up}

 

2)      Modify Hyper-V Settings

  1. Open Hyper-V Manager.  {Start Keyboard Button – Hyper-V Manager}
  2. Click on your server name in the left pane
  3. In Actions Pane, click Hyper-V Settings.
  4. In left Pane click Virtual Hard Disks enter D:\images\Hyper-V [substitute your drive letter]
  5. In left Pane click Virtual Machines enter D:\images\Hyper-V and click OK [substitute your drive letter]

 

3)      Create a Virtual Network Switch

  1. In the Actions Pane, click Virtual Switch Manager.
  2. In the Create virtual switch pane, click Internal and then click Create Virtual Switch.
  3. Enter IT Camp Lab for the Name and click OK.
  4. Create one more virtual switch with following information:
    1. Type: Internal
      Name: IT Camp Heartbeat
  5. 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

Create Virtual Machines (VM)

Create Differencing Hard Disks for use by Virtual Machines

Associate Hard Disks with Virtual Machines

 

1)      Create Virtual Machines

  1. Log on to Server as Administrator account.
  2. Open Hyper-V Manager.  Click the Server Name in the left pane
  3. In Actions Pane, Click New ->Virtual Machine
    1. Before You Begin screen: Click Next
    2. Specify Name Type: DC Click Next
    3. Check Store the virtual machine in a different location option and click Next
    4. Assign Memory [Optional: Turn on checkbox Use Dynamic Memory for this virtual machine] Click Next
    5. Configure Networking, Set Connection to IT Camp Lab click Next
    6. For Connect Virtual Hard Disk setting, select Attach a virtual hard disk later and click Finish

 

2)      Create Differencing Hard Disks for Use by Virtual Machines

  1. In Actions Pane, click New -> Hard Disk
    1. Before You Begin; Click Next
    2. Choose Disk Format: VHD
    3. Choose Disk Type: Differencing
    4. Specify Name and Location:

i.     Name: DC.vhd

ii.     Location: D:\Images\Hyper-V\DC

    1. Configure Disk: D:\Images\Base\Server2012RTM.vhd click Finish

 

3)      Associate Hard Disks with Virtual Machines

  1. Right Click DC and choose Settings.
  2. Click IDE Controller 0 and click Add.
  3. Click Browse and navigate directory structure to D:\Images\Hyper-V\DC\DC.vhd and click Open.
  4. Click OK.

 

4)      Start DC.  {Right-Click DC – Select Start}  -- For the sake of saving time, skip down to lab 4 to keep the DC moving

 

5)      Repeat Step 5 and create the following additional Virtual Machines

    1. Storage, Cluster1, Cluster2

 

6)   Repeat Step 6 to create additional Hard Disks

    1. Name: Storage.vhd;        Location: D:\Images\Hyper-V\Storage
    2. Name: Cluster1.vhd;       Location: D:\Images\Hyper-V\Cluster1
    3. Name: Cluster2.vhd;      Location: D:\Images\Hyper-V\Cluster2

 

7)   Repeat Step 7 to Attach Hard Disks (IDE Controller 0) for the following Virtual Machines:

    1. Storage = D:\Images\Storage\Storage.vhd
    2. Cluster1 = D:\Images\Cluster1\Cluster1.vhd
    3. Cluster2 = D:\Images\Cluster2\Cluster2.vhd

 

Lab 4 – Configure Virtual Machines

Tasks in this lab module

Configure Virtual Machines (VM)

1)   Configure Virtual Machines

  1. Configure DC.
  1. Start DC.  {Right-Click – Select Start}
  2. 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

 

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

  1. Change Computer Name to DC.

v.     Start – Right-Click Computer – Select Properties; click Change settings; click change; type DC under Computer Name; OK;  OK; Close; Restart Now;

vi.     Login to server (CTRL-ALT-End Administrator: P@ssword)

  1. 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]

vii.     Shortcut:  Start; Windows Powershell;

 

Install Active Directory Domain Services

  1. Add-windowsfeature Ad-Domain-Services
  2. While running, this is a good time go back and finish lab 3

Create forest and Promote to Domain Controller

  1. Install-ADDSForest –domainname "corp.contoso.loc"

i.     Ok to use different domain name if you like

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

  1. If you did not Finish Lab 3, now is a good time to do it.
  2. If done with Lab 3- Move on to Step 2 below {while domain creation runs}

i.     Long Way:  online http://go.microsoft.com/fwlink/?linkid=220921

  • Note: DCPromo No longer exists
  1. Configure Storage
    1. Start Storage.
    2. When Server has finalized configuring devices, finish the setup and log in to the server.
      1. Skip through Pre-Installation Environment adjusting settings as desired
      2. Use P@ssword  as the password – Click Finish
    3. Configure IP with the following settings:  (See Lab 4: 12.1 above for step-by-step)
      1. Start – Type Network – Click Settings – Click Network and Sharing Center; Click Change Adapter Settings (Left Pane)
      2. Right Click Ethernet – Select Properties;  Click TCP/IP v4 – Select properties; Use the following:
      3. IP Address: 192.168.1.11
        Subnet Mask: 255.255.255.0
        Default Gateway:  <Leave Blank>

Preferred DNS = 192.168.1.10

    1. Change Computer Name to Storage and Join corp.contoso.locDomain
      1. 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 Administrator and P@ssword for credentials – Click OK on the welcome dialog; Click OK on Restart dialog; click close on system properties
      2. Click Restart Now;
      3. Click the left arrow and select “Other User”; Type corp\administrator  for user name and P@ssword for the password then press <Enter>
      4. You are now logged into the domain

 

Lab 5 – Snapshot

Tasks in this lab module

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…

 

Post Lab Configuration

Tasks in this lab module

Configure more Virtual Machines (VM) 

Configure Cluster1

  1. Start Cluster1.
    1. When Server has finalized  configuring devices, finish the setup and log in to the server.
    2. Use P@ssw0rd as the password.
  2. Configure IP with the following settings:
    1. IP Address: 192.168.1.21
      Subnet Mask: 255.255.255.0
      Default Gateway:  <Leave Blank>
    Preferred DNS = 192.168.1.10
    1. Change Computer Name to Cluster1 and Join corp.contoso.locDomain
      1. Start – Right-Click Computer – Select Properties; click Change settings; click change;
        1. type Cluster1 under Computer Name;
        2. Select Member of Domain Type corp.contoso.loc under Domain - Click OK  - In the popup use Administrator and P@ssword for credentials – Click OK on the welcome dialog; Click OK on Restart dialog; click close on system properties;  Click Restart Now;
      2. Click the left arrow and select “Other User”; Type corp\administrator for user name and P@ssword for the password then press <Enter>

Configure Cluster2          

  1. Start Cluster2.
    1. When Server has finalized configuring devices, finish the setup and log in to the server.
    2. Use P@ssw0rd as the password.
  2. Configure IP with the following settings:
    1. IP Address: 192.168.1.22
      Subnet Mask: 255.255.255.0
      Default Gateway:  <Leave Blank>

Preferred DNS = 192.168.1.10

    1. Change Computer Name to Cluster2 and Join corp.contoso.locDomain
      1. Start – Right-Click Computer – Select Properties; click Change settings; click change;
        1. type Cluster2 under Computer Name;
        2. Select Member of Domain Type corp.contoso.loc under Domain Click OK  - In the popup use Administrator and P@ssword for credentials –Click OK on the welcome dialog; Click OK on Restart dialog; click close on system properties
      2. Click Restart Now;
    2. Click the left arrow and select “Other User”; Type corp\administrator for user name and P@ssword for the password then press <Enter>

 

Follow Up Guides Can Be Found Here:

Lab Guide – Windows 2012 RTM Storage

Lab Guide – Windows 2012 RTM Continuously Available File Shares

Lab Guide – Windows 2012 RTM Hyper-V Over SMB

Lab Guide - Windows 2012 RTM Enabling Hyper-V Replica

Lab Guide - Windows 2012 RTM Shared Nothing Live Migration

 

More Information

Windows Server Blogs

http://blogs.technet.com/b/windowsserver/

Windows Server 2012 Product Download

http://aka.ms/ws2012tp

Microsoft Virtual Academy

http://aka.ms/tpva

Windows Server 2012 Virtual Labs

http://technet.microsoft.com/en-us/windowsserver/hh968267.aspx

Windows Azure 90-Day Free Trial Page

http://aka.ms/mshosting