LAB 05 Implementing and Configuring Virtualization in Windows Server
LAB 05 Implementing and Configuring Virtualization in Windows Server
Server
Scenario
Contoso is a global engineering and manufacturing company with its head office in Seattle, USA. An IT office and data
center are in Seattle to support the Seattle location and other locations. Contoso recently deployed a Windows Server 2019
server and client infrastructure.
Because of many physical servers being currently underutilized, the company plans to expand virtualization to optimize
the environment. Because of this, you decide to perform a proof of concept to validate how Hyper-V can be used to
manage a virtual machine environment. Also, the Contoso DevOps team wants to explore container technology to
determine whether they can help reduce deployment times for new applications and to simplify moving applications to the
cloud. You plan to work with the team to evaluate Windows Server containers and to consider providing Internet
Information Services (Web services) in a container.
Objectives
Password: Pa55w.rd Note that Internet access is required to successfully complete the second exercise in this lab.
Lab Startup
1. Select SEA-DC1.
• Password: Pa55w.rd
• Domain: Contoso
Exercise scenario
In this exercise, you will use Hyper-V Manager and Windows Admin Center to create and configure a virtual machine.
You will start with creating a private virtual network switch. Next you decide to create a differencing drive of a base
image that has already been prepared with the operating system to be installed on the VM. Finally, you will create a
generation 1 VM that uses the differencing drive and private switch that you have prepared for the proof of concept.
The main tasks for this exercise are:
3. In the Servers list, select and hold (or right-click) or access the context menu SEA-SVR1 and then select Hyper-V
Manager.
1. On SEA-ADM1, in Hyper-V Manager, use the New Virtual Hard Disk Wizard to create a new virtual hard disk as
follows:
• Name: SEA-VM1
• Location: **C:*
• Name: SEA-VM1
• Location: **C:*
• Generation: Generation 1
• Memory: 4096
1. Open the Settings for SEA-VM1 and enable Dynamic Memory with a Maximum RAM value of 4096.
3. In the Windows Security box, enter Contoso* with the password of Pa55w.rd** and then select OK.
1. In the Specify your credentials page, select Use another account for this connection, and then enter Contoso*
with the password of Pa55w.rd**.
2. In the Tools list, select Virtual Machines. Review the Summary pane.
Note: The Save Disk Setting may be greyed out which is a known issue. A workaround would be to create the disk in
Hyper-V if needed.
1. Start SEA-VM1 and then display the statistics for the running VM.
3. In the Tools list, select Virtual switches and identify the existing switches.
After this exercise, you should have used Hyper-V Manager and Windows Admin Center to create a virtual switch, create
a virtual hard disk, and then create and manage a virtual machine.
Exercise 2: Installing and configuring containers
Exercise Scenario
In this exercise, you will use Docker to install and run Windows containers. You will also use Windows Admin Center to
manage containers.
The main tasks for this exercise are:
2. Connect to SEA-SVR1 using the Contosocredentials and then connect to the server using PowerShell.
Note: The Powershell connection in WAC may be slow due to nested virtualization used in the lab, so an alternate method
is to use Enter-PSSession -computername SEA-SVR1 from a Powershell window on SEA-ADM1.
1. At the PowerShell command prompt enter the following command and then select Enter:
1. At the PowerShell command prompt enter the following command and then select Enter:
1. After the installation is complete, restart the computer by using the following command:
Restart-Computer -Force
Task 2: Install and run a Windows container
1. After SEA-SVR1 restarts reconnect the PowerShell tool and provide the Contosocredentials.
2. Verify the installed version of Docker by using the following command:
Note: You may need to run Start-Service -name Docker before running the next commands.
1. To verify whether any Docker images are currently pulled, use the following command:
Docker images
1. To review docker base images from the online Microsoft repository, use the following command:
Note: You may disregard any errors and continue with the next step.
1. To download a server core image, with IIS, that matches the host operating system, run the following command:
1. To verify the Docker image that is currently pulled, use the following command:
Docker images
1. Enter the following command to retrieve the IP address information of the container host:
ipconfig
Note the IPv4 address of the Ethernet adapter named vEthernet (nat). This is the address of the new container. Make a note
of the IPv4 address of the Ethernet adapter named Ethernet. This is the IP address of the Host (SEA-SVR1).
1. In Microsoft Edge, open another tab and then enter <http://172.16.10.12>. Observe the default IIS page.
docker ps
This command provides information on the container that is currently running on SEA-SVR1. Take note of the container
ID as you will use it to stop the Container.
1. Rerun the docker ps command to confirm that the container has stopped.
Task 3: Use Windows Admin Center to manage containers
1. On SEA-ADM1, ensure that SEA-SVR1 is targeted in the Windows Admin Center and then select the Containers
tool.
2. Browse through each of the Summary, Containers, Images, Networks, and Volumes tabs.
Exercise 2 results
After this exercise, you should have installed Docker on Windows Server and installed and run a Windows container
containing web services.
©2019 Microsoft Corporation. All rights reserved. The text in this document is available under the Creative Commons
Attribution 3.0 License, additional terms may apply. All other content contained in this document (including, without
limitation, trademarks, logos, images, etc.) are not included within the Creative Commons license grant. This document
does not provide you with any legal rights to any intellectual property in any Microsoft product. You may copy and use
this document for your internal, reference purposes.X
This document is provided "as-is." Information and views expressed in this document, including URL and other Internet
Web site references, may change without notice. You bear the risk of using it. Some examples are for illustration only and
are fictitious. No real association is intended or inferred. Microsoft makes no warranties, express or implied, with respect
to the information provided here.