Virtualization has been and will be one of the most special security mechanisms for the administrator and user who wants to test new operating systems, new applications or understand the behavior of a task in a specific operating system. The advantage of virtualization is that with only one computer we can test various systems that are not compatible with each other (Windows, Linux, macOS, etc.) without the need for extra resources, although naturally good hardware resources are required. (CPU, RAM memory, etc.)..
Hyper-V has been developed by Microsoft as a feature of Windows and with this feature, as we mentioned, it will be possible to run virtualized computers on a physical PC. Hyper-V has special software that is known as a hypervisor and whose task is to manage the access that occurs between virtual systems and real or physical hardware resources, this ranges from hardware to items such as folders and files. By using Hyper-V we will be able to migrate systems between physical hosts or restore systems without the real environment being affected at any time.
Hyper V Features
Some of the advantages and features of using Hyper-V are:
- A NAT switch can be used as the default network.
- You can do a live transfer of virtual machines from one device to another.
- Allows you to make a duplicate of Hyper-V.
- A collection of virtual machines can be quickly generated for proper administration.
- Enables a virtual fiber channel.
- Allows existing .VHDX share.
Hyper V systems
Some of the operating systems that we can use in Hyper-V are:
- Windows 7 with Service Pack 1 (SP 1)
- Windows Server 2012 / 2022
Hyper V requirements
To use Hyper-V in Windows 11 we must have the following:
- A CPU that supports VM Monitor Mode Extension (VT-c for Intel), with NX bit architecture, 64-bit and must have the Second Level Address Translation (SLAT) function
- Windows 11 Pro or Enterprise
- 4 GB RAM recommended 8 GB
It is possible that when we want to use Hyper-V we do not see the administrator, the cause is that this feature is not enabled by default, but TechnoWikis will teach how to activate the feature and thus enjoy this special function..
1 How to use Hyper-V in Windows 11
The first thing is to validate that we have the prerequisites and one of them is that the CPU has virtualization, to check the status of this we open the Task Manager:
In the "Performance" section we go to the CPU and confirm in the "Virtual machine" line that its status is "Yes":
In case it is necessary to enable it, we are going to:
Now we click on "Restart" now in the "Advanced startup" section:
We confirm the process:
It will restart Windows in that mode:
We will see the following. We click on "Solve problems",
then we click on "Advanced options":
We will see the various options to use: We click on "UEFI Firmware Configuration"
and now we will see the next one. We click on "Restart" to access the UEFI of the PC, window:
There we go to the CPU section and check that the virtualization technology is enabled:
Press the F10 key to save the changes.
2 How to activate Hyper-V
It is time to activate Hyper-V and for this we have some ways, first, we open the terminal as administrators:
We must accept the UAC permissions:
Now we execute the following:
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
We wait for the process to load:
At the end we will see the following message. We enter the letter Y to restart the system and apply the changes:
The PC will begin to restart:
We can see that the features are being added:
This will have enabled Hyper-V in Windows 11, to disable it in the terminal execute:
Disable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V-All
We wait for the process to come to an end:
Another way to activate Hyper-V in Windows 11 is using CMD, for this we open the Command Prompt as administrators:
We accept the UAC permission:
In the console we execute:
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
After the process is finished the system will reboot to complete the Hyper-V activation:
We see the process in progress:
In case you only want to disable Hyper-V but not uninstall it, we must execute the following:
bcdedit /set hypervisorlaunchtype off
To enable it again we execute:
Another way, perhaps one of the most common, to enable Hyper-V is through the system features, in this case in the Start search engine we enter "features" and click on "Turn Windows features on or off ”:
In the pop-up window we locate the "Hyper-V" line:
Activate this box and we will see that all the extra functions are enabled:
We click "OK" to search for the files:
The changes will be applied:
At the end we will see this. We click on "Restart now" to restart Windows 11:
The changes will be applied:
The characteristics will be applied:
3 How to install Hyper-V in Windows 11 Home
In case of having the Home version of Windows 11, we must create a .bat file since Hyper-V is not enabled by default, to create this file we open the notepad:
There we enter the following:
pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hv-home.txt for /f %%i in ('findstr /i . hv-home.txt 2^ >nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" del hv-home.txt Dism /online /enable-feature /featurename:Microsoft-Hyper-V - All /LimitAccess /ALL pause
We go to "File - Save as":
We assign the name with the .bat extension and in "Type" we establish "All files":
We save the file and validate that it has been created:
We right click on the .bat file and select "Run as administrator":
We accept the UAC prompt:
It will automatically start executing in the console:
We expect each step to be executed:
At the end we will see this. We enter the letter Y to restart the system:
The changes will be applied:
4 How to use Hyper-V in Windows 11
With any of these steps we will have access to the Hyper-V console:
We will have access to the console:
When accessing the local server we will have all the Hyper-V options:
We are now ready to use Hyper-V in Windows 11 and take advantage of its various options..