Windows turns on CPU virtualization + turns off Hyper-V

Preface

  When operating a virtual machine, enabling CPU virtualization can improve the performance of the virtual machine and the stability of the application. However, under the Windows operating system, Hyper-V is enabled by default. If you want to turn on CPU virtualization, you need to turn off Hyper-V first. Hyper-V is a virtual machine that comes with the Windows system. When turned on, it will occupy hard disk space. and memory. This article will describe how to turn on CPU virtualization and turn off Hyper-V in Windows.

  A previous blog mentioned that I encountered a failure to create an emulator when reinstalling Android studio. I solved the problem after making modifications according to the prompts. Then a friend privately messaged me how to enable CPU virtualization + turn off Hyper-V in Windows. , this is my oversight. I should have written it in detail in the blog post, but now I can only write another article to talk about it.

  First of all, we can check whether the computer has virtualization turned on, because some computers are turned on by default, and some need to be started manually. We can open the task manager, and then click Performance –> CPU to check whether virtualization is turned on. If If you open the task manager and you don’t see detailed information, you can click “Details” at the bottom of the task manager to see it, as shown in the figure below:
Insert image description here

  Or you can also use the cmd command line to view it. We can hold down the window key + R, enter cmd in the pop-up input box, open the cmd command line, then enter in the command line, find Hyper-V to view the systeminfocorresponding Information, as shown below:
Insert image description here

Turn on CPU virtualization

Next, let’s take a look at how to enable virtualization. There are generally two methods:

The first way: using the command line

Open a terminal as an administrator and run the command.
Turn on: bcdedit /set hypervisorlaunchtype auto and then restart
. Turn off: bcdedit /set hypervisorlaunchtype off and then restart.

I have tried this method several times, but for some reason it has never been successful.

Second way: Enter BIOS settings

1. To turn on or restart the computer, it is common to press the "DEL" key to enter the BIOS interface, but there are also computer brands that press "ESC", "F2", "F1" and other keys to enter. The specific entry method varies according to different brands of computers. When some computers are turned on, the screen will display what keys to press to enter the BIOS. You can choose to try one by one, or you can first look at the computer motherboard model, and then search on Baidu for "xx motherboard what key to press to enter bios".

2. After entering the BIOS management interface, we find the "Advanced"->"CPU Configuration" menu in the management interface. After clicking in, if it is an Intel CPU, find "Intel Virtual Technology" and then set it to the "Enable" state; If it is an AMD CPU, find "SVM Support" and set it to the "Enable" state. Note: The menus of different computers have different names. When opening it, you can also check the opening path on the official website of the respective computer brand.

3. After setting, we press the "F10" key to save and exit the BIOS setting interface, and then the computer automatically restarts. At this time, we wait for the computer operating system to start normally before proceeding to the next step.

  After we enable the virtualization function of the CPU in the BIOS, we can repeat the above steps to check whether our virtualization is enabled successfully. After success, we can enter the Windows 10 system and install the virtualization function in the system.

Turn off Hyper-V

There are three ways here, as follows.

The first way: enable or disable Windows features

  1. Open the search on your computer, enter Control Panel in the search bar, and click [Open]. As shown below:
    Insert image description here

  2. In the Control Panel interface, select Large Icons or Small Icons as View mode, and then click [Programs and Features]. As shown below:
    Insert image description here

  3. In the Programs and Features interface, click [Turn Windows features on or off] on the left. As shown below:
    Insert image description here

  4. In the enable or disable Windows function interface, uncheck [hyper-v], and then click [OK], so that the shutdown is successful. As shown below:
    Insert image description here

The second way: service

  1. Open the search on your computer, enter services in the search bar, and click [Open]. As shown below:
    Insert image description here

  2. Find hyper-v virtual machine management in services and double-click [Open]. As shown below:
    Insert image description here

  3. In the properties interface, set the startup type to [Manual], then click [Apply], so the shutdown is successful. As shown below:
    Insert image description here

The third way: command prompt

  1. Open the search on your computer, enter cmd in the search bar, and then click [Run as administrator]. As shown below:
    Insert image description here

  2. Enter the command in the command prompt interface bcdedit /set hypervisorlaunchtype off, press Enter, and then restart the computer, so that the shutdown is successful. As shown below:
    Insert image description here

postscript

You can refer to the article or search on Baidu: How to
turn on the virtualization function in Windows 10
, how to turn on computer CPU virtualization, how to turn on computer virtualization settings, how to turn on virtualization settings

There are many articles about turning off or turning on Hyper-V. You can search on Baidu yourself, or refer to the article:
Turn on Hyper-V function in Windows

Reprinted from: https://blog.csdn.net/u014727709/article/details/126538711
Welcome to start, comments and corrections welcome

Guess you like

Origin blog.csdn.net/u014727709/article/details/126538711