Server 2022 Administration
Instructor: Gulnaz Mushtaq
Hyper-V (Hypervisor)
Hyper-V is a hybrid hypervisor, which is installed from OS (via Windows wizard of adding roles). However,
during installation it redesigns the OS architecture and becomes just like a next layer on the physical
hardware (refer to pic.1).
Pic. 1 Hyper-V architecture
Checking System Requirements:
Press the Windows key on the keyboard with R
Type msinfo32 and press enter. Here you can see the system specifications.
Minimum requirements for Hyper-V
Operating System: Windows 8.1 or 10 (Professional or Enterprise)
Processor: Core i3 4th Generation
RAM: 16 GB
Data Drive: 512 SSD
Note: These are minimum requirements for creating a better testing environment.
Installation of Hyper-V
Here we are going to install Hyper-V in Windows. For this purpose, go to the start button and call Quick
Menu by pressing the Windows key on the keyboard with X. Now click “Program and Features” as shown
in the picture.
Server 2022 Administration
Instructor: Gulnaz Mushtaq
It will open the “Apps & features”
Click on the “Program and Features” option.
Server 2022 Administration
Instructor: Gulnaz Mushtaq
After clicking the link “Turn Windows features on or off” the following window will be opened:
Server 2022 Administration
Instructor: Gulnaz Mushtaq
Here, check all the checkboxes against the option “Hyper-V” and click “OK”
Now the following window will be appeared showing the progress of the installation.
After completion of installation, the following window will appear.
Now click the “Restart now” button.
Server 2022 Administration
Instructor: Gulnaz Mushtaq
After restarting the system, go to the search bar by pressing the Windows key on the keyboard with S.
Here type “hyper” and you will see “Hyper-V Manager”. Just click the option “Hyper-V Manager” and the
following window opens. (For opening Hyper-V through command, type [Link] in Run window)
This is the Hyper-V management console. On the left-top, you can see the computer name of the machine on
which Hyper-V is installed. Here we are going to create a virtual machine using this Hyper-V manager. First
of all download bootable ISO image files of Windows Server 2022 from the internet and save them on the
hard drive of your system. Also, you can see there are several options on the right side of the menu in the
Hyper-V Manager console. Right-click on the name of PC (here Gul-PC), and you will find the options as
shown in the picture:
Server 2022 Administration
Instructor: Gulnaz Mushtaq
Now click on new virtual machine. The following window Picture will display. Click “Next”
Now by clicking “Next” the window seen in picture opens. In the option “Name” just mention the name of the
virtual machine with operating system e.g. Windows Server 2022 here. For example, here we mention the
name Server 1. Now see the checkbox below the option “Name”. By default, Hyper-V saves virtual
machines on the same disk partition where the operating system of the physical machine is installed. As
Server 2022 Administration
Instructor: Gulnaz Mushtaq
shown in the picture here. It is recommended to make a separate folder in any other partition of your
physical machine’s hard disk. For this purpose, just click on “Browse” and select any location other than the
drive partition of your physical operating system.
Here as in the picture we have selected a drive other than the one containing operating system files. Now
make a folder named “Hyper-V” and select the folder. As shown in the picture
Server 2022 Administration
Instructor: Gulnaz Mushtaq
After clicking “Next” we get the next window as in the picture. Here it asks about Generation 1 and
Generation 2 operating systems. As the latest operating systems are categorized as Generation 2, so select
Generation 2. Now click “Next”.
Now it asks about memory assignment. Here we give almost 1 GB of virtual memory and keep it dynamic,
so that it could be dynamically used for other resources of physical machine.
Server 2022 Administration
Instructor: Gulnaz Mushtaq
Now click “Next”. Now we get the screen as in Picure . It asks for connection. Click “Next”.
Now asks for a virtual hard disk. The .vhdx extension represents the virtual hard disk format. Mention the
hard disk space as in the picture and click “Next”.
Server 2022 Administration
Instructor: Gulnaz Mushtaq
Now select the bootable ISO file of operating system for virtual machine. Click “Browse” as in picture
Locate the ISO file as in the picture and click “Next”
Server 2022 Administration
Instructor: Gulnaz Mushtaq
You will get the final confirmation screen and click “Finish”.
Now in the Hyper-V, the following screen will appear where our virtual machine i.e. Server 1 is Off. Right-
click on the machine and click “Connect”.
Start your machine and it will ask for pressing any key. Press any key from your keyboard. Now install
Server 2022 operating system. Install Windows Server 2022 Standard with Desktop Experience
Create Virtual Switch:
To create a virtual switch in the Hyper-V environment, go to the right side menu and click on “Virtual Switch
Manager” as marked in the figure below:
Server 2022 Administration
Instructor: Gulnaz Mushtaq
Click on “New virtual network switch” and then select the type of virtual switch. Now click the button “Create
Virtual Switch”.
Server 2022 Administration
Instructor: Gulnaz Mushtaq
Now type the name of the switch e.g. "MyExtSwitch". Then click on "Apply" and then "OK".
Virtual Switch Manager for MYPC
".. Virtual Switch Properties -------------------
!I New virtualnetv.•ork switch
l±l EXT WiFi Name:
Realtek R1l8723BE 802.11bgn Wi...
l±l Private!
Private virtual switch Notes:
[
l±l !I Private2
Private virtual switch
l±l External [Link]
Internal only
l±l " r ew VirtualSwitch Connection type
Realtek POe GBE family ConL What do you want to connect this virtual switch to?
GlobalNetwork Setting;s @ External network:
l!lJ MAC Address Range
00-15-[Link] to 00-15-SD.O... [Realtek PCei GBE Family Controller
Allow management operating system to share this netv.•ork adapter
0 Internalnetv.•ork
0 Private network
VLAN ID
D Enable virtual LAN identification for management operating system
...,.,e VLAA 1del'tifler speafles the tua LAN tnat tne management operating
system use for a network commun cations through It's network adapter. Th s
setti:1g does not affect 1rtualmachine networking.
Remove
OK I[ Cancel ] [ Apply