
Enabling Hyper-V Feature on Windows 11. We can enable Hyper-V via the graphical user interface (GUI) or PowerShell.
Via Windows Features
- Look for and check the Hyper-V option (ensure that the sub-options "Hyper-V Management Tools" and "Hyper-V Platform" are also selected).
- Click OK and wait for the installation process to complete.
- Click "Restart now" to restart your computer.
Via PowerShell
- Right-click the Start button, then select Terminal (Admin) or PowerShell (Admin).
- Run the following command:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All - Type Y when asked to restart the computer.
Creating a Virtual Switch (Network Connection)
To allow a Virtual Machine (VM) to access the internet or connect to a local network, you must first create a Virtual Switch.
o Open the Start menu, search for Hyper-V Manager, and launch the application.
o In the Actions panel on the right, click Virtual Switch Manager.
o Select "New virtual network switch," choose the "External" type (to allow the VM to access the internet via your PC's physical network adapter), and click "Create Virtual Switch."
o Give the switch a name (e.g., "External Switch").
o Under the "Connection type" section, ensure "External network" is selected, then choose your active network adapter (Wi-Fi or Ethernet).
o Click "Apply" and then "OK" (if a warning about a temporary network disruption appears, click "Yes").
Creating New Virtual Machine (VM)
Prepare operating system installer file in .ISO format (e.g., a Windows 11, Ubuntu, or Debian ISO) before beginning this process.
In Hyper-V Manager, click Action > New > Virtual Machine in the right-hand panel.
Click Next on the "Before You Begin" page.
Specify Name and Location: Enter a name for the VM (e.g., Ubuntu Server). Check "Store the virtual machine in a different location" if you wish to save it on a different drive, then click Next.
Specify Generation:
Select "Generation 1" for older operating systems (such as Windows 7 or 32-bit systems).
Select "Generation 2" for modern operating systems (such as Windows 10/11 or recent Linux distributions that support UEFI and Secure Boot). Click Next.
Assign Memory: Specify amount of RAM in MB (e.g., 4096 for 4 GB). Keep the "Use Dynamic Memory" option checked to allow for flexible RAM allocation, then click Next.
Configure Networking: Select the "External Switch" that was created in previous step, then click Next.
Connect Virtual Hard Disk: Select "Create a virtual hard disk," specify the storage capacity (e.g., 40 GB), and click Next.
Installation Options: Select "Install an operating system from a bootable image file," click Browse, and select your OS .ISO file. Click Next.
Review configuration summary, then click Finish.
Running and Installing an Operating System
On the list of Virtual Machines in the center of the Hyper-V Manager, right-click newly created VM and select Connect.
The Virtual Machine Connection window will open. Click the green Start button (or click the word "Start" in the middle of the screen).
If the message "Press any key to boot from CD or DVD..." appears, immediately press any key on your keyboard.
Proceed with operating system installation process as usual until it is complete.
Key Management Features in Hyper-V
Checkpoints (Snapshot): Right-click VM and select "Checkpoint" to save system's current state. If configuration error or any other issue occurs during testing, you can restore the VM to its previous state using "Revert" option.
Enhanced Session Mode: This feature allows you to copy and paste text between host Windows system and the VM, share local drives, and automatically adjust VM's screen resolution. Enable it via "View" > "Enhanced Session" menu in VM window.
Modifying VM Specifications: Before changing the number of processors (CPU) or adding a virtual hard disk, ensure VM is powered off; then, right-click VM and select "Settings."
About the author
- IT Infrastructure (network, server, cyber security, cloud, business continuity & disaster recovery).
Comments
Join the discussionNo comments yet. Be the first to comment.




