Está en la página 1de 18

[20740C] M�dulo 05: Instalaci�n y configuraci�n de Hyper-V y m�quinas virtuales

1. Laboratorio: Instalaci�n y configuraci�n de Hyper-V


Gui�n:

La administraci�n de TI en Adatum Corporation est� preocupada por la baja


utilizaci�n de muchos de los servidores f�sicos que se implementan en el centro de
datos de Londres. Adatum tambi�n est� explorando opciones para expandirse a
m�ltiples sucursales e implementar servidores en nubes p�blicas y privadas. Para
ello, la organizaci�n est� explorando el uso de m�quinas virtuales.

Implementar� la funci�n del servidor Hyper-V, configurar� el almacenamiento y las


redes de m�quinas virtuales, e implementar� las m�quinas virtuales.

Siguiente ejercicio

2. Ejercicio 1: verificaci�n de la instalaci�n del rol del servidor Hyper-V


Tarea 1: verificar la presencia de la funci�n del servidor Microsoft Hyper-V

En LON-HOST1 , inicie sesi�n como administrador con la contrase�a Pa55w.rd .

Haga clic en Inicio y luego en Administrador del servidor .

En el Administrador del servidor, haga clic en Herramientas y luego en


Administrador de Hyper-V .

En el Administrador de Hyper-V , haga clic en LON-HOST1 y luego en Configuraci�n de


Hyper-V .

En la ventana Configuraci�n de Hyper-V para LON-HOST1 , haga clic en cada una de


las opciones disponibles en el panel izquierdo y revise la descripci�n.

Haz clic en Cancelar .


Ejercicio anteriorSiguiente ejercicio

3. Ejercicio 2: configuraci�n de redes Hyper-V


Tarea 1: crear una red externa

Nota: para realizar esta tarea, su computadora debe tener una tarjeta de red f�sica
(cableada o inal�mbrica) y estar conectada a una red.

En Hyper-V Manager , haga clic en LON-HOST1 y luego en el panel Acciones , haga


clic en Virtual Switch Manager .

En la ventana Virtual Switch Manager for LON-HOST1 , en el panel izquierdo, haga


clic en New virtual network switch .

En el panel Crear conmutador virtual , haga clic en Externo y luego en Crear


conmutador virtual .

En el panel de propiedades del conmutador virtual , en el cuadro de texto Nombre ,


escriba Red f�sica .
En el �rea Tipo de conexi�n , haga clic en Red externa . Seleccione la casilla de
verificaci�n Permitir que el sistema operativo de administraci�n comparta este
adaptador de red y luego haga clic en Aceptar .

En el cuadro de di�logo Aplicar cambios de red , lea la advertencia que aparece y


luego haga clic en S� .

En el Administrador del servidor , haga clic en Servidor local y luego verifique


que el nombre del adaptador de red haya cambiado a vEthernet (red f�sica) .
Ejercicio anteriorSiguiente ejercicio

4. Ejercicio 2: configuraci�n de redes Hyper-V


Tarea 2: crear una red privada

En LON-HOST1 , en Hyper-V Manager , en el panel Acciones , haga clic en Virtual


Switch Manager .

En la ventana Virtual Switch Manager for LON-HOST1 , en el panel izquierdo, haga


clic en New virtual network switch .

En el panel Crear conmutador virtual , haga clic en Privado y luego en Crear


conmutador virtual .

En el panel Propiedades del conmutador virtual , en el cuadro de texto Nombre ,


escriba Red aislada .

En el �rea Tipo de conexi�n , verifique que Red privada est� seleccionada y luego
haga clic en Aceptar .

En el Administrador del servidor , verifique que no haya nuevos adaptadores de red


visibles.
Ejercicio anteriorSiguiente ejercicio

5. Ejercicio 2: configuraci�n de redes Hyper-V


Tarea 3: crear una red interna

En LON-HOST1 , en Hyper-V Manager , en el panel Acciones , haga clic en Virtual


Switch Manager .

En la ventana Virtual Switch Manager for LON-HOST1 , en el panel izquierdo, haga


clic en New virtual network switch .

En el panel Crear conmutador virtual , haga clic en Interno y luego en Crear


conmutador virtual .

En el panel Propiedades del conmutador virtual , en el cuadro de texto Nombre ,


escriba Red interna del host .

En el �rea Tipo de conexi�n , verifique que Red interna est� seleccionada y luego
haga clic en Aceptar .

En el Administrador del servidor , verifique que se haya creado un nuevo adaptador


de red llamado vEthernet (red interna del host) .
Ejercicio anteriorSiguiente ejercicio

6. Ejercicio 3: creaci�n y configuraci�n de m�quinas virtuales


Tarea 1: crear una m�quina virtual de generaci�n 2

En LON-HOST1 , en la barra de tareas, haga clic en Explorador de archivos .

En el Explorador de archivos, vaya a E: \ Archivos de programa \ Microsoft Learning


\ 20740 \ Drives .
Note: The drive letter for this path might vary depending on the configuration of
the physical host.

In File Explorer, click the Home tab, and then click the New Folder icon twice to
create two new folders. Right-click each folder, and rename them:
LON-GUEST1

LON-GUEST2

Close File Explorer.

In Hyper-V Manager, in the Actions pane, click New, and then click Virtual Machine.

In the New Virtual Machine Wizard, on the Before You Begin page, click Next.

On the Specify Name and Location page, select Store the virtual machine in a
different location, enter the following values, and then click Next:
Name: LON-GUEST2

Location: E:\Program Files\Microsoft Learning\20740\Drives\LON-GUEST2\

On the Specify Generation page, click Generation 2, and then click Next.

On the Assign Memory page, in the Startup memory box, enter a value of 1024 MB, and
then click Next.

On the Configure Networking page, click Isolated Network, and then click Next.

On the Connect Virtual Hard Disk page, click Create a virtual hard disk.

In the Name text box, type LON-GUEST2.vhdx.

In the Location text box, type E:\Program Files\Microsoft


Learning\20740\Drives\LON-GUEST2.

In the Size text box, type 127, and then click Finish.

Right-click LON-GUEST2, and then click Settings.

In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware area, click
SCSI Controller.
In the right pane, click DVD Drive, and then click Add.

In the DVD Drive area, click Image file.

In the Image file text box, type E:\Program Files\Microsoft


Learning\20740\Drives\WinServer2016_1607.iso, and then click Apply.

In the Hardware area, click Firmware.

In the Boot order area, click Network Adapter, click Move Down twice, and then
click OK.

Right-click LON-GUEST2, and then click Connect.

En la ventana LON-GUEST2 on LON-HOST1 - Virtual Machine Connection , haga clic en


Start .

Presione cualquier tecla para iniciar desde el DVD.

En la ventana de instalaci�n de Windows , haga clic en Siguiente y luego en


Instalar ahora .

En la p�gina Seleccione el sistema operativo que desea instalar , haga clic en


Evaluaci�n del centro de datos de Windows Server 2016 (experiencia de escritorio) y
luego haga clic en Siguiente .

En la p�gina Avisos aplicables y t�rminos de licencia , seleccione la casilla de


verificaci�n Acepto los t�rminos de licencia y, a continuaci�n, haga clic en
Siguiente .

En la p�gina Qu� tipo de instalaci�n desea , haga clic en Personalizado: instalar


solo Windows (avanzado) .

En la p�gina D�nde desea instalar Windows , haga clic en Drive 0 Unallocated Space
y luego haga clic en Next .
Nota: La instalaci�n del sistema operativo Windows Server requiere un per�odo de
tiempo prolongado. Puede trabajar en la siguiente tarea mientras espera a que se
complete la instalaci�n.

En la p�gina Personalizar configuraci�n , en los cuadros de texto Contrase�a y


Vuelva a ingresar la contrase�a , escriba Pa55w.rd y luego haga clic en Finalizar .

Una vez completada la instalaci�n, en la ventana LON-GUEST2 on LON-HOST1 - Virtual


Machine Connection , haga clic en Shut Down y luego en Shut Down nuevamente para
confirmar.
Ejercicio anteriorSiguiente ejercicio

7. Ejercicio 3: creaci�n y configuraci�n de m�quinas virtuales


Tarea 2: Crear una m�quina virtual de generaci�n 1

En el Administrador de Hyper-V , en el panel Acciones , haga clic en Nuevo y luego


en Disco duro .

En el Asistente para nuevo disco duro virtual , en la p�gina Antes de comenzar ,


haga clic en Siguiente .

En la p�gina Choose Disk Format , haga clic en VHD y luego en Next .

En la p�gina Choose Disk Type , seleccione Differencing y luego haga clic en Next .
Nota: La letra de la unidad para la ruta de ubicaci�n del archivo en los siguientes
pasos puede variar seg�n la configuraci�n del host f�sico.

En la p�gina Especificar nombre y ubicaci�n , especifique los siguientes detalles y


luego haga clic en Siguiente :
Nombre: LON-GUEST1.vhd

Ubicaci�n: C:\Program Files\Microsoft Learning\Base\Base17C-WS16-1607.vhd

En la p�gina Configurar disco , escriba E: \ Archivos de programa \ Microsoft


Learning \ Base \ Base17C-WS16-1607.vhd como ubicaci�n y luego haga clic en
Finalizar .

Haga clic en Inicio y luego en el icono de Windows PowerShell .

En el s�mbolo del sistema de Windows PowerShell , escriba el siguiente comando para


crear una nueva m�quina virtual llamada LON-GUEST1 y luego presione Entrar:
New-VM -Name LON-GUEST1 -MemoryStartupBytes 1024MB -VHDPath "E:\Program
Files\Microsoft Learning\20740\Drives\LON-GUEST1\LON-GUEST1.vhd" -SwitchName
"Isolated Network"

Cierre la ventana de Windows PowerShell .


Ejercicio anteriorSiguiente ejercicio

8. Ejercicio 3: creaci�n y configuraci�n de m�quinas virtuales


Tarea 3: configurar m�quinas virtuales

En LON-HOST1 , en Hyper-V Manager , haga clic con el bot�n derecho en LON-GUEST1 y


luego haga clic en Configuraci�n .

En la ventana Configuraci�n de LON-GUEST1 en LON-HOST1 , observe la lista de


hardware para LON-GUEST1 .

En el �rea de Hardware , haga clic en Memoria .

Select the Enable Dynamic Memory check box.

In the Maximum RAM box, type 4096.

In the Hardware area, click Processor.

In the Number of virtual processors text box, type 2.

In the Hardware area, click Network Adapter.

In the Bandwidth Management area, select the Enable bandwidth management check box.

In the Minimum bandwidth textbox, type 10.


In the Maximum bandwidth text box, type 100.

En el �rea de Administraci�n , haga clic en Servicios de integraci�n .

Seleccione la casilla de verificaci�n Servicios para invitados y luego haga clic en


Aceptar .
Nota: debe haber completado las tareas anteriores de este ejercicio para poder
continuar. Esto incluye apagar LON-GUEST2.

En Hyper-V Manager , haga clic con el bot�n derecho en LON-GUEST2 y luego haga clic
en Configuraci�n .

En la ventana Configuraci�n de LON-GUEST2 en LON-HOST1 , observe la lista de


hardware para LON-GUEST2 . Tenga en cuenta las diferencias con LON-GUEST1 .

En el �rea de Hardware , haga clic en Seguridad y luego lea la configuraci�n que


est� disponible.

En el �rea de Hardware , haga clic en Memoria .

Verifique que la casilla de verificaci�n Habilitar memoria din�mica no est�


seleccionada.

En el �rea de Hardware , haga clic en Procesador .

En el cuadro de texto N�mero de procesadores virtuales , escriba 2 .

En el �rea Hardware , expanda Disco duro y luego haga clic en Calidad de servicio .

Seleccione la casilla de verificaci�n Habilitar la gesti�n de la calidad del


servicio .

En el cuadro de texto M�nimo , escriba 10 .

En el �rea de Administraci�n , haga clic en Servicios de integraci�n .

Seleccione la casilla de verificaci�n Servicios para invitados y luego haga clic en


Aceptar .
Ejercicio anteriorSiguiente ejercicio

9. Ejercicio 3: creaci�n y configuraci�n de m�quinas virtuales


Tarea 4: crear puntos de control

En LON-HOST1 , en Hyper-V Manager , haga clic con el bot�n derecho en LON-GUEST2 y


luego haga clic en Checkpoint .

Haga clic con el bot�n derecho en LON-GUEST2 y luego en Iniciar .

Haga clic con el bot�n derecho en LON-GUEST2 y luego haga clic en Conectar .

Cambie a LON-GUEST2 .

On LON-GUEST2, sign in as Administrator using Pa55w.rd as the password.


In Server Manager, click Local Server, and verify that there is only one network
adapter.

Switch to LON-HOST1.

On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Settings.

In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware area, click Add
Hardware.

In the Add Hardware area, click Network Adapter, and then click Add.

En el �rea Adaptador de red , en el cuadro Conmutador virtual , seleccione Red


interna del host y luego haga clic en Aceptar .

Cambie a LON-GUEST2 .

En LON-GUEST2 , en el Administrador del servidor , actualice la vista y verifique


que se haya agregado un segundo adaptador de red.

Cambie a LON-HOST1 .

En LON-HOST1 , en Hyper-V Manager , haga clic con el bot�n derecho en LON-GUEST2 y


luego haga clic en Checkpoint .

Lea la informaci�n en la ventana Punto de control de la m�quina virtual y luego


haga clic en Aceptar .

Haga clic con el bot�n derecho en el punto de control m�s reciente y luego haga
clic en Aplicar .

En el cuadro de di�logo Aplicar punto de control , haga clic en Aplicar .

Verifique que el estado de LON-GUEST2 est� apagado porque era un punto de control
de producci�n.
Ejercicio anteriorSiguiente ejercicio

10. Ejercicio 3: creaci�n y configuraci�n de m�quinas virtuales


Tarea 5: habilitar la protecci�n de recursos del host

En LON-HOST1 , haga clic en el bot�n Inicio y luego en Windows PowerShell .

En Windows PowerShell , en el s�mbolo del sistema, escriba el siguiente comando y


luego presione Entrar:
Set-VMProcessor LON-GUEST2 -EnableHostResourceProtection $true

Cierre la ventana de Windows PowerShell .


Ejercicio anteriorSiguiente ejercicio

11. Ejercicio 3: creaci�n y configuraci�n de m�quinas virtuales


Tarea 6: Exportar una m�quina virtual

En LON-HOST1 , en Hyper-V Manager , haga clic con el bot�n derecho en LON-GUEST2 y


luego haga clic en Exportar .
Nota: La letra de la unidad para la ruta de ubicaci�n del archivo en el siguiente
paso puede variar seg�n la configuraci�n del host f�sico.

En el cuadro de di�logo Exportar m�quina virtual , en el cuadro de texto


Ubicaci�n , escriba E: \ Archivos de programa \ Microsoft Learning \ 20740 \ Drives
\ Guest2-Bak y luego haga clic en Exportar .
Ejercicio anteriorSiguiente ejercicio

12. Ejercicio 4: habilitar la virtualizaci�n anidada para una m�quina virtual


Tarea 1: Importar LON-NVHOST2

Nota : antes de comenzar esta tarea, verifique la ubicaci�n de las unidades base y
las unidades de curso 20740. Necesita la letra de unidad para ambas ubicaciones en
este ejercicio. El ejercicio asume que la letra de unidad E

En LON-HOST1 , haga clic en Inicio y luego en Windows PowerShell .

Escriba la siguiente secuencia de comandos y luego presione Entrar:


& 'E:\Program Files\Microsoft Learning\20740\Drives\LON-HOST1_VM-Pre-Import-
20740C.ps1'

Escriba la letra de unidad para las im�genes base y luego presione Entrar.

Escriba la letra de unidad para las im�genes del curso y luego presione Entrar.

Presione Entrar para continuar.


Ejercicio anteriorSiguiente ejercicio

13. Ejercicio 4: habilitar la virtualizaci�n anidada para una m�quina virtual


Tarea 2: habilitar la virtualizaci�n anidada

En LON-HOST1 , en Hyper-V Manager , en el panel Virtual Machines , verifique que la


versi�n de configuraci�n para 20740C-LON-NVHOST2 sea 5.0 .

Haga clic con el bot�n derecho en 20740C-LON-NVHOST2 y luego haga clic en


Actualizar versi�n de configuraci�n .

En el cuadro de di�logo Actualizar versi�n de configuraci�n , haga clic en


Actualizar .

Verifique que la versi�n de configuraci�n para 20740C-LON-NVHOST2 sea ??ahora 8.0 .

En el s�mbolo del sistema de Windows PowerShell , escriba el siguiente comando y


luego presione Entrar:
Set-VMProcessor -VMName 20740C-LON-NVHOST2 -ExposeVirtualizationExtensions $true

Escriba el siguiente comando y luego presione Entrar:


Get-VMNetworkAdapter -VMName 20740C-LON-NVHOST2 | Set-VMNetworkAdapter
-MacAddressSpoofing On

Escriba el siguiente comando y luego presione Entrar:


Set-VM -VMName 20740C-LON-NVHOST2 -MemoryStartupBytes 4GB
Ejercicio anteriorSiguiente ejercicio

14. Ejercicio 4: Habilitaci�n de la virtualizaci�n anidada para una m�quina virtual


Tarea 3: habilitar Hyper-V

En LON-HOST1 , en el s�mbolo del sistema de Windows PowerShell , escriba el


siguiente comando y luego presione Entrar:
Start-VM 20740C-LON-NVHOST2

Para ver la actividad en LON-NVHOST2 , en Hyper-V Manager , haga clic con el bot�n
derecho en 20740C-LON-NVHOST2 y luego haga clic en Conectar .

Espere hasta que se haya iniciado LON-NVHOST2 , escriba lo siguiente en el


indicador de Windows PowerShell y luego presione Entrar.
Enter-PSSession -VMName 20740C-LON-NVHOST2

Cuando reciba un mensaje, inicie sesi�n como Adatum \ Administrator utilizando


Pa55w.rd como contrase�a.

Escriba el siguiente comando y luego presione Entrar:


Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools
-Restart

Espere a que se reinicie LON-NVHOST2 . La m�quina virtual puede reiniciarse varias


veces.

Cambie a LON-NVHOST2 .

Inicie sesi�n en LON-NVHOST2 como administrador utilizando Pa55w.rd como


contrase�a.

Haga clic en Inicio y luego en Administrador del servidor .

En el Administrador del servidor , haga clic en Herramientas y luego en


Administrador de Hyper-V .

Verifique que LON-NVHOST2 aparezca en el Administrador de Hyper-V y luego cierre el


Administrador de Hyper-V .
Ejercicio anterior
[20740C] Module 05: Installing and Configuring Hyper-V and Virtual Machines
1. Lab: Installing and configuring Hyper-V
Scenario:

IT management at Adatum Corporation is concerned about the low utilization of many


of the physical servers that are deployed in the London datacenter. Adatum also is
exploring options for expanding into multiple branch offices and deploying servers
in public and private clouds. For this purpose, the organization is exploring the
use of virtual machines.

You will deploy the Hyper-V server role, configure virtual machine storage and
networking, and deploy the virtual machines.

Next Exercise

2. Exercise 1: Verifying installation of the Hyper-V server role


Task 1: Verify the presence of the Microsoft Hyper-V server role

On LON-HOST1, sign in as Administrator using the password Pa55w.rd.

Click Start, and then click Server Manager.

In Server Manager, click Tools, and then click Hyper-V Manager.

In Hyper-V Manager, click LON-HOST1, and then click Hyper-V Settings.

In the Hyper-V Settings for LON-HOST1 window, click each of the available options
in the left pane, and review the description.

Click Cancel.
Previous ExerciseNext Exercise

3. Exercise 2: Configuring Hyper-V networks


Task 1: Create an external network

Note- To perform this task, your computer must have physical network card (wired or
wireless) and be connected to a network.

In Hyper-V Manager, click LON-HOST1, and then in the Actions pane, click Virtual
Switch Manager.

In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click New
virtual network switch.

In the Create virtual switch pane, click External, and then click Create Virtual
Switch.

In the Virtual switch properties pane, in the Name text box, type Physical Network.
In the Connection type area, click External network. Select the Allow management
operating system to share this network adapter check box, and then click OK.

In the Apply Networking Changes dialog box, read the warning that displays, and
then click Yes.

In Server Manager, click Local Server, and then verify that the name of the network
adapter has changed to vEthernet (Physical Network).
Previous ExerciseNext Exercise

4. Exercise 2: Configuring Hyper-V networks


Task 2: Create a private network

On LON-HOST1, in Hyper-V Manager, in the Actions pane, click Virtual Switch


Manager.

In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click New
virtual network switch.

In the Create virtual switch pane, click Private, and then click Create Virtual
Switch.

In the Virtual Switch Properties pane, in the Name text box, type Isolated Network.

In the Connection type area, verify that Private network is selected, and then
click OK.

In Server Manager, verify that no new network adapters are visible.


Previous ExerciseNext Exercise

5. Exercise 2: Configuring Hyper-V networks


Task 3: Create an internal network

On LON-HOST1, in Hyper-V Manager, in the Actions pane, click Virtual Switch


Manager.

In the Virtual Switch Manager for LON-HOST1 window, in the left pane, click New
virtual network switch.

In the Create virtual switch pane, click Internal, and then click Create Virtual
Switch.

In the Virtual Switch Properties pane, in the Name text box, type Host Internal
Network.

In the Connection type area, verify that Internal network is selected, and then
click OK.

In Server Manager, verify that a new network adapter named vEthernet (Host Internal
Network) has been created.
Previous ExerciseNext Exercise
6. Exercise 3: Creating and configuring virtual machines
Task 1: Create a Generation 2 virtual machine

On LON-HOST1, on the taskbar, click File Explorer.

In File Explorer, go to E:\Program Files\Microsoft Learning\20740\Drives.


Note: The drive letter for this path might vary depending on the configuration of
the physical host.

In File Explorer, click the Home tab, and then click the New Folder icon twice to
create two new folders. Right-click each folder, and rename them:
LON-GUEST1

LON-GUEST2

Close File Explorer.

In Hyper-V Manager, in the Actions pane, click New, and then click Virtual Machine.

In the New Virtual Machine Wizard, on the Before You Begin page, click Next.

On the Specify Name and Location page, select Store the virtual machine in a
different location, enter the following values, and then click Next:
Name: LON-GUEST2

Location: E:\Program Files\Microsoft Learning\20740\Drives\LON-GUEST2\

On the Specify Generation page, click Generation 2, and then click Next.

On the Assign Memory page, in the Startup memory box, enter a value of 1024 MB, and
then click Next.

On the Configure Networking page, click Isolated Network, and then click Next.

On the Connect Virtual Hard Disk page, click Create a virtual hard disk.

In the Name text box, type LON-GUEST2.vhdx.

In the Location text box, type E:\Program Files\Microsoft


Learning\20740\Drives\LON-GUEST2.

In the Size text box, type 127, and then click Finish.

Right-click LON-GUEST2, and then click Settings.

In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware area, click
SCSI Controller.

In the right pane, click DVD Drive, and then click Add.

In the DVD Drive area, click Image file.

In the Image file text box, type E:\Program Files\Microsoft


Learning\20740\Drives\WinServer2016_1607.iso, and then click Apply.
In the Hardware area, click Firmware.

In the Boot order area, click Network Adapter, click Move Down twice, and then
click OK.

Right-click LON-GUEST2, and then click Connect.

In the LON-GUEST2 on LON-HOST1 - Virtual Machine Connection window, click Start.

Press any key to boot from DVD.

In the Windows Setup window, click Next, and then click Install now.

On the Select the operating system you want to install page, click Windows Server
2016 Datacenter Evaluation (Desktop Experience), and then click Next.

On the Applicable notices and license terms page, select the I accept the license
terms check box, and then click Next.

On the Which type of installation do you want page, click Custom: Install Windows
only (advanced).

On the Where do you want to install Windows page, click Drive 0 Unallocated Space,
and then click Next.
Note: The Windows Server operating system installation requires an extended amount
of time. You can work on the next task while waiting for the installation to
complete.

On the Customize settings page, in the Password and Reenter password text boxes,
type Pa55w.rd, and then click Finish.

After the installation is complete, in the LON-GUEST2 on LON-HOST1 - Virtual


Machine Connection window, click Shut Down, and then click Shut Down again to
confirm.
Previous ExerciseNext Exercise

7. Exercise 3: Creating and configuring virtual machines


Task 2: Create a Generation 1 virtual machine

In Hyper-V Manager, in the Actions pane, click New, and then click Hard Disk.

In the New Virtual Hard Disk Wizard, on the Before You Begin page, click Next.

On the Choose Disk Format page, click VHD, and then click Next.

On the Choose Disk Type page, select Differencing, and then click Next.
Note: The drive letter for the file location path in the following steps might vary
depending on the configuration of the physical host.

On the Specify Name and Location page, specify the following details, and then
click Next:
Name: LON-GUEST1.vhd
Location: C:\Program Files\Microsoft Learning\Base\Base17C-WS16-1607.vhd

On the Configure Disk page, type E:\Program Files\Microsoft Learning\Base\Base17C-


WS16-1607.vhd as the location, and then click Finish.

Click Start, and then click the Windows PowerShell icon.

At the Windows PowerShell command prompt, type the following command to create a
new virtual machine named LON-GUEST1, and then press Enter:
New-VM -Name LON-GUEST1 -MemoryStartupBytes 1024MB -VHDPath "E:\Program
Files\Microsoft Learning\20740\Drives\LON-GUEST1\LON-GUEST1.vhd" -SwitchName
"Isolated Network"

Close the Windows PowerShell window.


Previous ExerciseNext Exercise

8. Exercise 3: Creating and configuring virtual machines


Task 3: Configure virtual machines

On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST1, and then click Settings.

In the Settings for LON-GUEST1 on LON-HOST1 window, note the list of hardware for
LON-GUEST1.

In the Hardware area, click Memory.

Select the Enable Dynamic Memory check box.

In the Maximum RAM box, type 4096.

In the Hardware area, click Processor.

In the Number of virtual processors text box, type 2.

In the Hardware area, click Network Adapter.

In the Bandwidth Management area, select the Enable bandwidth management check box.

In the Minimum bandwidth textbox, type 10.

In the Maximum bandwidth text box, type 100.

In the Management area, click Integration Services.

Select the Guest services check box, and then click OK.
Note: You must have completed the previous tasks in this exercise before you can
continue. This includes shutting down LON-GUEST2.

In Hyper-V Manager, right-click LON-GUEST2, and then click Settings.

In the Settings for LON-GUEST2 on LON-HOST1 window, note the list of hardware for
LON-GUEST2. Note the differences from LON-GUEST1.

In the Hardware area, click Security, and then read the settings that are
available.

In the Hardware area, click Memory.

Verify that the Enable dynamic memory check box is not selected.

In the Hardware area, click Processor.

In the Number of virtual processors text box, type 2.

In the Hardware area, expand Hard Drive, and then click Quality of Service.

Select the Enable Quality of Service management check box.

In the Minimum text box, type 10.

In the Management area, click Integration Services.

Select the Guest services check box, and then click OK.
Previous ExerciseNext Exercise

9. Exercise 3: Creating and configuring virtual machines


Task 4: Create checkpoints

On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click


Checkpoint.

Right-click LON-GUEST2, and then click Start.

Right-click LON-GUEST2, and then click Connect.

Switch to LON-GUEST2.

On LON-GUEST2, sign in as Administrator using Pa55w.rd as the password.

In Server Manager, click Local Server, and verify that there is only one network
adapter.

Switch to LON-HOST1.

On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Settings.

In the Settings for LON-GUEST2 on LON-HOST1 window, in the Hardware area, click Add
Hardware.

In the Add Hardware area, click Network Adapter, and then click Add.

In the Network adapter area, in the Virtual switch box, select Host Internal
Network, and then click OK.

Switch to LON-GUEST2.

On LON-GUEST2, in Server Manager, refresh the view and verify that a second network
adapter has been added.

Switch to LON-HOST1.
On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click
Checkpoint.

Read the information in the Virtual Machine Checkpoint window, and then click OK.

Right-click the most recent checkpoint, and then click Apply.

In the Apply Checkpoint dialog box, click Apply.

Verify that the Status for LON-GUEST2 is Off because it was a production
checkpoint.
Previous ExerciseNext Exercise

10. Exercise 3: Creating and configuring virtual machines


Task 5: Enable host resource protection

On LON-HOST1, click the Start button, and then click Windows PowerShell.

In Windows PowerShell, at the command prompt, type the following command, and then
press Enter:
Set-VMProcessor LON-GUEST2 -EnableHostResourceProtection $true

Close the Windows PowerShell window.


Previous ExerciseNext Exercise

11. Exercise 3: Creating and configuring virtual machines


Task 6: Export a virtual machine

On LON-HOST1, in Hyper-V Manager, right-click LON-GUEST2, and then click Export.


Note: The drive letter for the file location path in the following step might vary
depending on the configuration of the physical host.

In the Export Virtual Machine dialog box, in the Location text box, type E:\Program
Files\Microsoft Learning\20740\Drives\Guest2-Bak, and then click Export.
Previous ExerciseNext Exercise

12. Exercise 4: Enabling nested virtualization for a virtual machine


Task 1: Import LON-NVHOST2

Note- Before beginning this task, verify the location of the base drives and 20740
course drives. You need the drive letter for both locations in this exercise. The
exercise assumes that the drive letter E

On LON-HOST1, click Start, and then click Windows PowerShell.

Type the following script, and then press Enter:


& 'E:\Program Files\Microsoft Learning\20740\Drives\LON-HOST1_VM-Pre-Import-
20740C.ps1'

Type the drive letter for the base images, and then press Enter.

Type the drive letter for the course images, and then press Enter.

Press Enter to continue.


Previous ExerciseNext Exercise

13. Exercise 4: Enabling nested virtualization for a virtual machine


Task 2: Enable nested virtualization

On LON-HOST1, in Hyper-V Manager, in the Virtual Machines pane, verify that the
Configuration Version for 20740C-LON-NVHOST2 is 5.0.

Right-click 20740C-LON-NVHOST2, and then click Upgrade Configuration Version.

In the Upgrade Configuration Version dialog box, click Upgrade.

Verify that the Configuration Version for 20740C-LON-NVHOST2 is now 8.0.

At the Windows PowerShell prompt, type the following command, and then press Enter:
Set-VMProcessor -VMName 20740C-LON-NVHOST2 -ExposeVirtualizationExtensions $true

Type the following command, and then press Enter:


Get-VMNetworkAdapter -VMName 20740C-LON-NVHOST2 | Set-VMNetworkAdapter
-MacAddressSpoofing On

Type the following command, and then press Enter:


Set-VM -VMName 20740C-LON-NVHOST2 -MemoryStartupBytes 4GB
Previous ExerciseNext Exercise

14. Exercise 4: Enabling nested virtualization for a virtual machine


Task 3: Enable Hyper-V

On LON-HOST1, at the Windows PowerShell prompt, type the following command, and
then press Enter:
Start-VM 20740C-LON-NVHOST2

To view the activity on LON-NVHOST2, in Hyper-V Manager, right-click 20740C-LON-


NVHOST2, and then click Connect.

Wait until LON-NVHOST2 has started, type the following at the Windows PowerShell
prompt, and then press Enter.
Enter-PSSession -VMName 20740C-LON-NVHOST2

When you receive a prompt, sign in as Adatum\Administrator by using Pa55w.rd as the


password.

Type the following command, and then press Enter:


Install-WindowsFeature -Name Hyper-V -IncludeAllSubFeature -IncludeManagementTools
-Restart

Wait for LON-NVHOST2 to restart. The virtual machine might restart several times.

Switch to LON-NVHOST2.

Sign in to LON-NVHOST2 as Administrator by using Pa55w.rd as the password.

Click Start, and then click Server Manager.

In Server Manager, click Tools, and then click Hyper-V Manager.

Verify that LON-NVHOST2 is listed in Hyper-V Manager, and then close Hyper-V
Manager.
Previous Exercise

También podría gustarte