Server 2012 R2 – Lab Guide – Part 4 – Step by Step – Hyper-V Over SMB

In Lab 1, you will join your Hyper-V Host to the Active Directory Domain that you created in an earlier lab so that you can then create a Virtual Machine on the Host using an SMB Share in a guest cluster.

In Lab 2, you will learn how to run Hyper-V over SMB file shares. Running Hyper-V over SMB enables many new scenarios. By creating highly available file servers, which contain high-performance storage, and leveraging file shares for virtual machine storage, you can create very large clusters of many Hyper-V servers without needing to attach complex and expensive SAN infrastructure.

This lab assumes that you have completed these prior labs:

Server 2012 R2 – Lab Guide – Part 1 – Step by Step – Including Dual Boot Instructions

Server 2012 R2 – Lab Guide – Part 2 – Step by Step – Storage

Server 2012 R2 – Lab Guide – Part 3 – Step by Step – Continuously Available File Server

Objectives

In this series of exercises, you will explore the following:

· Enabling delegation of a computer account

· Creating an SMB Share with proper permissions.

· Create a new virtual machine from a VHD running on an SMB file share.

This lab requires the following host computers and virtual machines. In order to complete this lab, you must have already completed the Hyper-V Getting Started Lab and Continuously Available File Shares Lab.

Host Computers:

· Your Windows Server 2012 Running Hyper-V

? Host Name: hyperv01

? OS: Windows Server 2012

? Primary Roles: Hyper-V Server

Virtual Machines:

· DC

? OS: Windows Server 2012

? Primary Roles: Domain Controller

? Additional Roles: DNS

· Storage

? OS: Windows Server 2012

? Primary Role: File and Storage Services

· Cluster1

? OS: Windows Server 2012

? Primary Role: Failover Clustering

· Cluster2

? OS: Windows Server 2012

? Primary Role: Failover Clustering

 

Lab 1 – Joining your host Hyper-V machine to the Domain

Setting the Virtual Machines Startup Behavior

  1. Log on to your Hyper-V host machine as the local Administrator with password : p@ssw0rd
  2. Open Hyper-V Manager
  3. Go to Settings for DC, Storage, Cluster1 and Cluster2 and ensure the following options are configured:

Automatic Start Action: Always Start
Automatic Stop Action: Save

For the Storage and Cluster machines it is a good idea to stagger the delay to insure that the AD machine is up an running first.

Verifying/Setting the IP Address of the Hyper-V Host

  1. From Server Manager, click Local Server and click IP settings for one of the network adapters in the list.
  2. In Network Connections, right click the Network adapter that correlates to vEthernet (IT Camp Lab) and choose Properties.
  3. Enter/Validate the following IP v4 Address information:

IP Address: 192.168.1.8
Subnet Mask: 255.255.255.0
Default Gateway: 192.168.1.1
DNS: 192.168.1.10

Joining the Hyper-V Host to the Domain

  1. From Server Manager, click Local Server and click the hyperlink for your Hyper-V Host.
  2. The System Properties page will open. Click Change and join the domain corp.contoso.loc
  3. Provide the corp\administrator and p@ssw0rd credentials then reboot when complete.
  4. Upon reboot, allow 5 – 10 minutes for the four VMs to start up and then login as the corp\administrator account with password: p@ssw0rd

 

Lab 2 – Configuring Hyper-V over SMB

 

Enabling delegation on the computer account of the Hyper-V server

  1. Log on to the console for the DC virtual machine as the corp\administrator account with password: p@ssw0rd
  2. From the Taskbar open Server Manager, click Tools, and then click Active Directory Users and Computers, if this is not seen proceed to Add Roles and Features, then from the Features screen add the Remote Server Administration Tools>AD DS and AD LDS Tools.
  3. Once in AD Users and Computers, navigate to corp.constoso.loc\computers, and then click hyperv01
  4. On the Action menu, click Properties.
  5. Click the Delegation tab.
  6. Click Trust this computer for delegation to any service (Kerberos only) .

 

Creating an SMB Share for Hyper-V

  1. Log on to the console for the Cluster1 virtual machine as the corp\administrator account with password: p@ssw0rd
  2. From Server Manager, Click the Tools menu, click Failover Cluster Manager.
  3. Expand MainCluster.corp.contoso.loc, and then click Roles.
  4. Right Click HAFileServer and choose Add File Share.
    1. Profile: SMB Share – Applications
      Share Location: C:\ClusterStorage\Volume1
      Share Name: SMBStore
      Other Settings: Accept Defaults
      Permissions: Add Domain Administrators with Full Control and Your Hyper-V Host with Full Control

(Hint, in order to add the Hyper-V host, you must change the search filed to include computers)

Creating the new virtual machine from a VHD running on an SMB file share

  1. Switch to the console for the  Hyper-V Host.
  2. Open Hyper-V Manager.
  3. In the Hyper-V console, click New, and then click Virtual Machine.
  4. Complete the New Virtual Machine Wizard with the following settings (all other settings are default).

Name: ITCampVM

Type: Generation 1

Check Store the virtual machine in a different location

Location: \\HAFileServer\SMBStore\ITCampVM

Start-up memory: 512

Check Use Dynamic Memory for this virtual machine

Network Connection: Not Connected

Choose to create a virtual hard disk, keep the name provided.

Select Install an operating system later.   Click Next .

Validating that the Machine is Created and Attempt to Boot the Machine

  1. In Hyper-V Manager, select IT Camp VM, and then click Start.  You will see the “No operating system found” message. 
  2. Optional, download the ISO for Server 2012 R2 from here and install Windows Server 2012 into the VM.
  3. Shut down the ITCampVM when finished.

You have complete Lab Guide Part 4!

Follow Up Guides: coming soon:

Lab Guide 5 – Windows 2012 R2 – Enabling Hyper-V Replica

Lab Guide 6 – Windows 2012 R2 – Shared Nothing Live Migration

More Information

Tommy’s Blog

https://www.virtuallycloud9.com

Windows Server Blogs

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

Windows Server 2012 Product Download

https://aka.ms/ws2012tp

Microsoft Virtual Academy

https://aka.ms/tpva

Windows Server 2012 Virtual Labs

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

Windows Azure 90-Day Free Trial Page

https://aka.ms/mshosting