Hyper-V on Windows: A guide to creating and configuring virtual machines. Hyper-V on Windows: A guide to creating and configuring virtual machines Enabling hyper v on windows

  • 06.05.2022

Hyper-V Manager provides tools and information that you can use to manage your virtualization server. Virtualization technology allows you to create several virtual machines on one physical computer and work with them in parallel. Some applications, in addition to the Hyper-V component itself, can also use virtualization technology.

This article will tell you how to turn off Hyper-V virtualization in Windows 10. Since not everyone needs this functionality, it is present. Although by default on the original assembly of the Windows 10 operating system, the Hyper-V component is disabled. Therefore, we have already considered .

We recommend that you use the Hyper-V Virtual Machine Manager to manage virtual machines. Hyper-V Manager allows you to create and configure virtual machines. Therefore, before disabling Hyper-V in Windows 10, you must first stop the previously created virtual machines.

First of all, we go to Hyper-V Manager and in the virtual machines section, right-click on the running new virtual machine and select the item in the context menu Turn off…


Programs and Features


Windows PowerShell

Using the Windows PowerShell shell, you can not only enable and disable system components, but also .


Command line

  1. Launch command line by pressing Win+X and choosing the item Command Prompt (Admin).
  2. Next, we execute the command: dism /online /disable-feature /featurename:microsoft-hyper-v-all.
  3. After the shutdown process is completed, we confirm the restart of the computer by clicking the button Y.

Conclusion

It is possible to turn off Hyper-V virtualization in Windows 10, because by default the Hyper-V component is disabled and virtualization is not used. And also the ability to simultaneously use several virtual machines is not needed by many users. Therefore, we looked at how to disable the virtual machine management service, then the Hyper-V component itself.

There was a need to remotely manage a server running the Hyper-V role from a computer running Window 10 (personal laptop) that is not in a domain. To make this scheme work, you need to perform the following settings on the server-hypervisor and client sides.

Configuring the Hyper-V Server

On the Hyper-V server (Windows Server 2016), you need to enable PowerShell Remoting and open the appropriate ports on the firewall. Enable the WinRM service with the command

Enable-PSRemoting

Now you need to allow connection from all clients (from public networks on the same local subnet) and allow CredSSP to send and receive:


Enable-WSManCredSSP -Role Server

Enable the WinRM-HTTP-In-TCP-Public firewall rule.

Set-NetFirewallRule -Name "WinRM-HTTP-In-TCP-Public" -RemoteAddress Any

Check the remote accessibility of the WinRM port (TCP 5985) on the server

Test-NetConnection -ComputerName target_name -Port 5985

Configuring a Windows 10 client to connect to a Hyper-V server

The first step is to install the Hyper-V Management Console on a Windows 10 computer. To do this, in the control panel in the programs section, click the button Turn windows features on or off and under Hyper-V-> Hyper-V Management Tools -> select Hyper-V GUI Management Tools.

Make sure your network connection type is set to Private.

Open a PowerShell console with administrator rights and run the following commands:

Enable-PSRemoting
Set-Item WSMan:\localhost\Client\TrustedHosts -Value "(!LANG:Hyper-V-FQDN"!}
Enable-WSManCredSSP -Role client -DelegateComputer "Hyper-V-FQDN"

Now in the local group policy editor (gpedit) you need to enable NTLM authentication on non-domain computers. Go to section Computer Configuration > Administrative Template > System > Credentials Delegation and enable the policy, add the line .

On a Windows 10 computer, open the Hyper-V Manager console, right-click on “ Hyper-V Manager” and select Connect to Server… Enter the server name and check the box Connect as another user and specify a username with rights on the server Hyper-V

After that, the console should display a list of VMs running on the Hyper-V host.

In one of the test tasks, it was necessary to install the Hyper-V virtualization component on a virtual machine running Windows 10 (also applies to Windows Server 2016) running on a VMWare ESXi hypervisor. Those. you need to organize nested Hyper-V virtualization on VMWare ESXi.

First, a few words about nested virtualization. Nested virtualization (Nested Virtualization) - the ability to run a hypervisor inside a virtual machine on another hypervisor. In Hyper-V, full-fledged support for nested virtualization appeared in Windows Server 2016 / Windows 10 Anniversary Update, in VMWare, nested virtualization technology has been working for a long time (it appeared in ESXi 5.0).

We have: a virtualization host VMWare ESXi 6.0, it is running a virtual machine with Windows 10 1709.

When you try to install the Hyper-V Hypervisor role (a feature called Hyper-V Hypervisor) using the enable/disable features feature in the classic Windows 10 control panel, this option was not available. The reason given is:

Hyper-V cannot be installed: The processor does not have the required virtualization capabilities

To enable nested virtualization for this VM, open the virtual machine settings using the vSphere Web Client (the VM must be turned off). In the CPU section, enable the "" option (this option is not available in the "heavy" C# vCenter client)

Note. In older versions of ESXi that do not have this option, as well as in the desktop VMWare Workstation, a similar effect is produced by adding the following options to the virtual machine configuration file (*.vmx).

hypervisor.cpuid.v0 = "FALSE"
mce.enable="TRUE"
vhv.enable="TRUE"

In the vSphere client, these options can be added in the VM settings. tab Options-> General -> Configure parameters. Add two new lines with these parameters (button Add Row).

We turn on the virtual machine with Windows 10 and try to install the Hyper-V role again. The system has now stopped detecting that it is running inside another hypervisor, but now another error has appeared:

Hyper-V cannot be installed: the processor dose not support second level address translation (SLAT).

Those. the processor of the virtual machine, in addition to supporting virtualization, must support the technology SLAT- the ability to virtualize memory pages and transfer them under the direct control of the guest OS. In Intel terminology, this feature is called Extended Page Tables ( EPT), AMD has Rapid Virtualization Indexing ( RVI).

Let's check the SLAT support of the processor using the command:

The command under "Hyper-V Requirements" should return that there is no SLAT support.

Second Level Address Translation: No

Second Level Address Translation: No

In this case, you need to change the processor settings of the virtual machine. In the web client, in the CPU / MMU Virtualization section, select Hardware CPU and MMU.

In the "classic" client, a similar option is located on the tab Options in section CPU/MMU Virtualization and is called "".

Launch a Windows 10 virtual machine and verify that its processor now supports SLAT. Now you can install all components of the Hyper-V role and run your own virtual machines inside the Win10 virtual machine.

Users who have at least once been configuring the BIOS have probably already noticed that there is an Intel Hyper Threading parameter that is incomprehensible to many. Many do not know what this technology is and for what purpose it is used. Let's try to figure out what Hyper Threading is and how you can enable the use of this support. We will also try to figure out what advantages this setting gives to the computer. In principle, there is nothing difficult to understand here.

Intel Hyper Threading: what is it?
If you do not go deep into the jungle of computer terminology, but to put it in simple terms, then this technology was developed in order to increase the flow of commands processed simultaneously by the central processor. Modern processor chips, as a rule, use only 70% of the available computing capabilities. The rest remains, so to speak, in reserve. As for processing the data stream, in most cases only one thread is used, despite the fact that the system uses a multi-core processor.

Basic principles of work
In order to increase the capabilities of the central processor, a special Hyper Threading technology was developed. This technology makes it easy to split one command stream into two. It is also possible to add a second stream to an existing one. Only such a stream is virtual and does not work at the physical level. This approach allows you to significantly increase the performance of the processor. The whole system, accordingly, starts to work faster. The increase in CPU performance can fluctuate quite a lot. This will be discussed separately. However, the developers of Hyper Threading technology themselves claim that it falls short of a full-fledged core. In some cases, the use of this technology is fully justified. If you know the essence of Hyper Threading processors, then the result will not be long in coming.

History reference
Let's dive a little into the history of this development. Support for Hyper Threading first appeared only in Intel Pentium 4 processors. Later, the implementation of this technology was continued in the Intel Core iX series (X here stands for processor series). It should be noted that for some reason it is absent in the line of Core 2 processor chips. True, then the increase in productivity was rather weak: somewhere at the level of 15-20%. This indicated that the processor did not have the necessary processing power, and the technology created was practically ahead of its time. Today, support for Hyper Threading technology is already available in almost all modern chips. To increase the power of the central processor, the process itself uses only 5% of the crystal surface, while leaving room for processing commands and data.

A question of conflicts and performance
All this is certainly good, but in some cases, when processing data, there may be a slowdown in work. This is mostly due to the so-called branch prediction module and insufficient cache size when it is constantly reloaded. If we talk about the main module, then in this case the situation is such that in some cases the first thread may require data from the second, which may not be processed at that moment or are in the queue for processing. Also, no less common are situations when the CPU core has a very serious load, and the main module, despite this, continues to send data to it. Some programs and applications, such as resource-intensive online games, can seriously slow down just because they lack optimization for the use of Hyper Threading technology. What happens with games? The user's computer system, for its part, tries to optimize the data flows from the application to the server. The problem is that the game does not know how to independently distribute data streams, dumping everything in one heap. By and large, it may simply not be designed for this. Sometimes in dual-core processors, the performance increase is significantly higher than in 4-core ones. They just don't have the processing power.

How to enable Hyper Threading in BIOS?
We have already figured out a little about what Hyper Threading technology is and got acquainted with the history of its development. We have come close to understanding what Hyper Threading technology is. How to activate this technology for use in the processor? Here everything is done quite simply. You must use the BIOS management subsystem. The subsystem is entered using the Del, F1, F2, F3, F8, F12, F2+Del, etc. keys. If you are using a Sony Vaio laptop, then they have a specific input when using the dedicated ASSIST key. In the BIOS settings, if the processor you are using supports Hyper Threading technology, there should be a special setting line. In most cases, it looks like Hyper Threading Technology, and sometimes it looks like Function. Depending on the subsystem developer and BIOS version, the setting of this parameter can be contained either in the main menu or in the advanced settings. To enable this technology, you must enter the options menu and set the value to Enabled. After that, you need to save the changes made and reboot the system.

Why is Hyper Threading useful?
In conclusion, I would like to talk about the benefits that the use of Hyper Threading technology provides. What is all this for? Why is it necessary to increase the processor power when processing information? Those users who work with resource-intensive applications and programs do not need to explain anything. Many people probably know that graphic, mathematical, design software packages require a lot of system resources in the process of work. Because of this, the entire system is loaded so much that it starts to slow down terribly. To prevent this from happening, it is recommended to enable Hyper Threading support.

Virtualization technology allows you to create several virtual computers with their own operating systems on one physical computer. The guest operating systems will use the resources of the real PC allocated to them within the established limits. In this case, there is no need to partition the disk into sections and there is no danger of damaging the bootloader. The user's personal data is not affected and is safe. If you are interested in these opportunities, stay with us. Today we will tell you how to enable virtualization in Windows 10.

A hypervisor developed by Microsoft called Hyper-V is included as an optional component in the system. It can only be used in x64 bit OS Windows 10 Enterprise or Pro. In a corporate environment, Microsoft even recommends specific HP and Lenovo laptops. Users of the Home edition and all x32 bit systems do not have this option.

  1. You can quickly find out the parameters of installed Windows using the keyboard shortcut Win + X. In the drop-down menu, select the item marked with a frame.

  1. The window that opens contains two blocks of information. In the first, we look at the amount of installed memory and bit depth. Hyper V requires at least 4 Gb of RAM. In the second block, we pay attention to the release of the OS.

  1. Based on the system settings, the computer is suitable for installing and running the Microsoft VM. Additionally, Hyper-V requires the processor to support SLAT nested paging. Intel has implemented it in the Core i3/5/7 line, and AMD has implemented it since the first 64-bit Opterons. The processor model is indicated in the characteristics of the device, so there is no need to check it in BIOS or UEFI. We can verify the support of Hyper technologies using the command line. We enter the command "systeminfo" and look for the data block indicated in the screenshot.

As you can see, all the necessary requirements are met and we performed the check without entering the BIOS. After making sure that the hardware configuration is suitable for using the virtual machine, we can proceed to the installation.

Installation

Hyper-V is a component of the operating system. It cannot be downloaded and installed separately. You can only enable use in a Windows environment. Consider several options for connecting Microsoft Virtual Machine.

Graphics mode

Let's start by using the graphics mode, as the most familiar to users.

  1. Press the Win + R key combination to open the Run dialog box and enter the command "control" in the text field as shown in the screenshot.

  1. The result of our actions will be the appearance of the classic Windows control panel. We are looking for the specified item and open it.

  1. In this window, we will use the navigation menu responsible for working with the components of the operating system.

  1. Turn on Hyper-V. We expand the "Hyper" branch and make sure that the checkboxes are checked in front of all its components. We complete this section by clicking the "OK" button.

  1. Windows searches and installs the ordered components internally.

  1. When you have finished making changes to the software configuration, the system will prompt you to reboot.

This completes the installation and the PC is ready to use the built-in virtualization tools.

Command line

You can also install hypervisor components using command line options.

  1. Open the Power User menu and run PowerShell or the CMD shell as an administrator.

  1. Enter the following line in the window that opens:
Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V –All

  1. Windows processes the received command to install additional components.

  1. Finally, we will be asked to confirm the changes made and reboot. Enter the English letter "Y" in any case.

The computer will immediately exit graphics mode and display the standard update window. The system will start with Hyper-V enabled.

The last method involves using the Windows Deployment and Image Management tool.

  1. We start the command line with administrative rights. Enter the following line:
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V

  1. After completing the installation of the components, DISM asks for confirmation.

Entering the letter "Y" causes the PC to immediately reboot, during which the initial configuration of Hyper-V is performed.

Usage

After completing the installation, you can start creating a new virtual machine.

  1. The new component is located in the "Administrative Tools" section of the Start menu.

  1. Hyper-V Manager is the standard Windows management console. Operations are enabled and configured in the Action area. Select the checked item to start the wizard.

  1. A three-point selection menu will open. Select the one marked with a frame.

  1. The first window is informational. By checking the box in the specified place, you will no longer see it on subsequent launches. To create a machine with its own configuration, select the button marked with a frame.

  1. Here we give a name to the created machine and we can change the location where its files are stored.

  1. The generation should be selected based on the bit depth of the OS intended for installation. For 32-bit versions, we leave the first, while modern distributions refer to the second.

  1. The amount of allocated memory depends on the physical capabilities of the PC. The simplest solution would be to allocate 2 GB (2048 MB). This is the minimum amount required to run 64-bit Windows. Enough of it to install any version of Linux.

  1. In the network settings, open the drop-down menu and select the specified option. VM Manager will automatically set up a connection for the virtual machine using the current Internet connection.

  1. The disk size that will be used for installation can be limited to 32 GB. This is enough to run the guest OS with a set of programs.

  1. We agree with the proposal to install the guest system later. You can do this using DVD media or an ISO image.

The virtual machine is ready. To disable Hyper-V and remove the guest systems, you need to disable the use of this Windows feature in the Control Panel.

Alternative

Windows Home owners who don't have access to Hyper-V can use Oracle's free alternative solution. Unlike the Microsoft product, the VirtualBox application runs on 32-bit systems, has more features and is less demanding on resources. It does not require a special set of processor instructions.

Almost all existing operating systems will run in VirtualBox, which cannot be said about Hyper-V. In it, the choice is limited to several versions of Windows, and more recently, also Linux.

Finally

For comfortable use of virtual machines, do not forget that they consume the physical resources of the computer. Ideally, the PC should have 8 GB of memory to ensure that the current and guest OS work simultaneously with running applications.

Video

To help users who want to better understand the Windows 10 virtualization settings, below are the video links.