当前位置:首页 > 虚拟机 > 正文

虚拟机如何设置硬件虚拟化(需要禁用硬件虚拟化才能启动虚拟机)

How to set up hardware virtualization in BIOS?
Virtualization technology can be turned on in the BIOS. The turning method is as follows:
1. Enter the BIOS. Press F2 or F12 or DEL or ESC keys when booting (each computer is different).
2. After entering the BIOS, find the Configuration option, select IntelVirtualTechnology and press Enter, move the cursor to Enabled, then press Enter, and finally press F10 to save and exit.
If you cannot find the Configuration option, you can try the following method:
(1) After entering the BIOS on some HP computers, you need to select the System Configuration menu, and then Select DeviceConfiguration, find VirtualizationTechnology, and set it to Enabled.
 (2) After entering the BIOS on some Lenovo Thinkpad computers, you need to select the Security menu, then select Virtualization and set it to Enabled.
 (3) After entering the BIOS on some DELL computers, you need to select the Processor Settings menu, then select Virtualization Technology and set it to Enabled.
Virtualization was first proposed in 1960 to describe the concept of virtual machines (experimental IBMM44/44X systems). The establishment and management of virtual machines is called platform virtualization, and now it is also called server virtualization.
Platform virtualization is the creation of a simulated computer environment (virtual machine) by the host on a given hardware platform to provide to the client. Client software has no restrictions on user applications; many hosts allow running a real operating system. The client appears to run directly on the computer hardware, with a few obvious caveats. A virtual machine's access to hardware resources (such as network, monitor, keyboard, hard disk) is managed at a more restrictive level than the processor and system memory. Client software is often restricted from accessing computer peripherals, or limited to lower device capabilities, depending on host hardware access policy settings.
How to enable cpu virtualization
The specific content is as follows:
1. When we turn on the computer, press the F2 key to open the motherboard BIOS setting page. page, press the arrow keys to switch to the "Configuration" function page.
2. After opening this page, we can see that the "IntelVirtualTechnology" function is unavailable.
3. Follow the prompts on the BIOS setup page and press the F5 or F6 key to turn on the Intel Virtual Technology function.
4. Next, we will see that the IntelVirtualTechnology function will be turned on and available.
5. Finally, we press the F10 key in the BIOS page, and then save the BIOS settings in the pop-up page. After restarting, the CPU virtualization function will be turned on.
Extended information
A big challenge in CPU virtualization is to ensure the isolation of CPU instructions issued by the virtual machine. That is, in order to allow multiple virtual machines to run safely on a host at the same time, VMM must isolate each virtual machine to ensure that they do not interfere with each other and do not affect the normal operation of the VMM kernel. In particular, it is important to note that since privileged instructions will affect the entire physical machine, the privileged instructions issued by the virtual machine must only affect itself and not affect the entire system. For example: when a virtual machine issues a restart command, it does not restart the entire physical machine, but only the virtual machine where it is located. Therefore, the VMM must be able to translate and simulate privileged instructions from the virtual machine operating hardware, and then execute them on the corresponding virtual device instead of running on the entire physical machine hardware device.

How to open virtualization settings on a computer?

First enable and install the virtual machine in the BIOS settings, and then install the virtual machine under the system.

1. Start virtualization settings under BIOS:

Intel platform

1. After the computer is turned on, immediately press the 'delete' key on the keyboard to enter the BIOS [EZMode] page

2. Press the F7 key on the keyboard to enter AdvanceMode, as shown in the figure below:

(If you press the 'delete' key on the keyboard after turning on the computer, you will enter AdvanceMode. BIOSAdvanceMode, there is no need to press the F7 key on the keyboard)

3. Click the [Advanced] page and click the [CPUConfiguration] option

4. Click the [Intel (VMX) Virtualization Technology] option and set it to [Enabled]

5. Press the F10 key on the keyboard and click [Ok] to save the option. After the computer restarts, the BIOS settings can be completed

AMD platform

1. After the computer is turned on, immediately press the 'delete' key on the keyboard to enter the BIOS [AdvancedMode] page

2. Click the [Advanced] page and click the [CPUConfiguration] option

3. Click the [SVMMode] option and set it to [Enabled]

4. Press the F10 key on the keyboard and click [Ok] to save the options. After the computer restarts, the BIOS settings will be completed

Second, install the virtual machine under the system.

1. Click Search and enter "Control Panel"

2. Click [Uninstall a program]

3. Click [Turn Windows features on or off]

4. Check [Hyper-V] and click [OK]

5. Wait for the Hyper-V function to be installed and click [ Restart now]

6. After restarting the system, click [Start Menu] and select [Windows System Management Tools]

7. Select [Hyper -V Administrator]

8. Right-click [Virtual Machine], select [New], select [Virtual Machine]

< p>9. Click Next

10. Set the name and location of the virtual machine and click Next

11. Select the generation of this virtual machine Click Next

12. Set the startup memory size and click Next

13. Set up the network connection: Select [DefaultSwitch] and click Next< /p>

14. Set the name, location and size of the virtual disk and click Next

15. Set the bootable image file and click Next

16. Click Finish

17. Right-click the virtual machine and select Online

18. Select the language to be installed and click Next

19. Check Select I accept the licensing terms and click Next

20. Select the installation type

21. Set the disk size and click Apply

22. Click OK

23. Click Next

24. Wait for the installation

25. Restart the virtual machine after the installation is complete

How to enable the virtualization function of the computer?
Enable the virtualization function in the computer's BIOS (BasicInput/OutputSystem) settings. The specific steps may vary depending on different computer brands and models, but the following is a general method:
1. Turn off computer, then turn it on and enter the BIOS interface. Usually you need to press the DEL, F1, F2 or F10 key to enter the BIOS interface (the specific keys may vary depending on the computer brand and model, please confirm according to your computer manual).
2. In the BIOS setting interface, switch to the "Advanced Menu" or a similarly named tab, and then look for related settings such as "CPU Configuration" or "Chipset Configuration".
3. Find "Virtualization Technology", this option may be named VT-x, AMD-V or IntelVirtualizationTechnology, etc., select it and set it to "Enable".
4. Confirm the changes and save the BIOS settings. Different computer brands or models may have slightly different ways of performing this operation. Generally, you can use "SaveandExit" or similar options under the corresponding tab to save modifications and exit the BIOS interface.
5. Finally, restart the computer to make the new BIOS settings take effect.
It is worth mentioning that turning on virtualization technology can enable the host system to obtain better performance and stability when running virtual machine software. If your computer runs virtual machines frequently, it is recommended to enable virtualization technology to improve system performance.