Install the Hyper- V Role – Understanding Hyper- V

Now it’s time to see how to install the Hyper- V server role on the two installation options of Windows Server 2022: a Full installation and a Server Core installation.

Installing Hyper-V  in Full Installation Mode

You can install the Hyper- V server role on any Windows Server 2022 installation for which the Full option was chosen. In addition, the server must meet both the hardware and software requirements. The installation process is simple, as Exercise 2.1 demonstrates.

EXERCISE 2.1

Installing Hyper- V in Full Installation Mode

  1. Open Server Manager.
  2. In Server Manager, choose option 2, Add Roles And Features.
  3. At the Select Installation Type page, choose the role- based or feature- based installation. Click Next.
  4. On the Select Destination Server screen, choose Select A Server From The Server Pool and select the server to which you want to add this role. Click Next.
  5. On the Select Server Roles screen, click the check box next to Hyper-V  (see Figure 2.3). When the Add Features dialog box appears, click the Add Features button. Then click Next.

FIGURE 2.3 Server Manager Add Features

EXERCISE 2.1 (continued)

  1. At the Select Features screen, click Next.
  2. At the Hyper- V introduction screen, click Next.
  3. At the Create Virtual Switches screen (see Figure 2.4), choose your adapter and click Next.
  1. At the Virtual Machine Migration screen, click Next. You want to use migration only if you have multiple Hyper- V servers. Since we will have only one for this exercise, just skip this screen.
  2. At the Default Stores screen, accept the defaults and click Next.
  3. At the Confirmation screen, click the Install button.
  4. After the installation is complete, click the Close button.
  5. Restart your server.
Installing Hyper-V  in Server Core

The Server Core installation option is included in Windows Server 2022. It creates an operating system installation without a GUI shell. You can either manage the server remotely from another system or use the Server Core’s command- line interface.

This installation option provides the following benefits:

           Reduces attack surface (because fewer applications are running on the server)

               Reduces maintenance and management (because only the required options are installed)

          Requires less disk space and produces less processor utilization

         Provides a minimal parent partition

         Reduces system resources required by the operating system as well as the attack surface By using Hyper- V on a Server Core installation, you can fundamentally improve availability because the attack surface is reduced and the downtime required for installing patches is optimized. It will thus be more secure and reliable with less management.

To install Hyper- V for a Windows Server 2022 installation, you must execute the following command in the command- line interface:

Dism /online /enable- feature /featurename:Microsoft- Hyper- V

Hyper-V  in Server Manager

As with all of the other Windows Server 2022 roles, the Hyper-V  role neatly integrates into Server Manager. Server Manager filters the information just for the specific role and thus displays only the required information. As you can see in Figure 2.5, the Hyper-V  Summary page shows related event log entries, the state of the system services for Hyper- V, and useful resources and support.

FIGURE 2.5 Hyper-V  in Server Manager

Using Hyper- V Manager

Hyper- V Manager is the central management console to configure your server and create and manage your virtual machines, virtual networks, and virtual hard disks. Unlike Virtual Server 2005, where you managed all virtual machines through a web interface, Hyper-V  Manager is managed through a Microsoft Management Console (MMC) snap- in. You can access it either in Server Manager or by using Administrative Tools Hyper- V Manager.

Figure 2.6 shows how Hyper- V Manager looks once you start it.

FIGURE 2.6 Hyper- V Manager

Hyper- V Manager is available for the following current operating systems:

        Windows Server 2022

        Windows Server 2019

        Windows Server 2016

        Windows Server 2012 R2

        Windows Server 2012

         Windows 10/Windows 11

You can use Hyper- V Manager to connect to any Full or Server Core installation remotely. Besides Hyper- V Manager, you can use the WMI interface for scripting Hyper- V.

Leave a Reply

Your email address will not be published. Required fields are marked *