有几件事使 Windows 10 成为有史以来最好的 Windows 版本。其中一项功能是支持硬件虚拟化,因此能够创建虚拟机。对于那些不了解且通俗地说,虚拟化是在同一组硬件上创建某物的虚拟实例(该列表包括操作系统、存储设备、网络服务器等)。创建虚拟机允许用户在隔离的环境中测试 beta 应用程序,使用并在两个不同的操作系统之间轻松切换等。
尽管虚拟化是大多数用户没有使用的功能,但它在Windows上默认禁用。需要从BIOS 菜单(BIOS menu)手动启用它,然后安装 Windows 的虚拟化软件 ( Hyper-V )。在本文中,我们将介绍在Windows 10上启用虚拟化的所有小细节,并向您展示如何创建虚拟机。
如何在 Windows 10 上启用虚拟化(How to Enable Virtualization on Windows 10)
虚拟化的要求(Requisites for Virtualization)
硬件(Hardware)虚拟化最初是在Windows 8中引入的,并且已经发展为在 Windows (Windows 8)10(Windows 10)中包含更多功能,例如增强会话模式、高保真图形、USB重定向、Linux 安全启动(Linux secure boot)等。虽然,更好和更多的虚拟化功能也需要更强大的系统。以下(Below)是您的计算机创建和运行虚拟机所需具备的先决条件列表。
1. Hyper-V 仅适用于Windows 10 专业版(Windows 10 Pro)、企业版(Enterprise)和教育(Education)版。如果您拥有Windows 10家庭(Home)版并希望创建虚拟机,则需要升级到专业(Pro)版。(如果您不确定您的Windows版本,请在开始搜索栏中输入 winver 或运行命令框并按 Enter。)
2. 您的计算机应运行在支持SLAT(二级地址转换(Secondary Level Address Translation))的 64 位处理器上。要检查是否相同,请打开System Information应用程序并查看System Type & Hyper-V Second Level Address Translation Extensions 条目(Hyper-V Second Level Address Translation Extensions entries)。
3. 至少应安装4gb 的系统 RAM ,不过,如果有更多,则会获得更流畅的体验。(4gb of system RAM)
4. 还应该有足够的可用存储空间来在虚拟机上安装所需的操作系统。
Check if Virtualization is enabled in BIOS/UEFI
(Virtualization)您的计算机上可能已经启用了虚拟化技术。要检查是否确实如此,请按照以下步骤操作。
1.在搜索栏中搜索Command Prompt 或 Powershell(Command Prompt or Powershell)(它们都可以),然后单击Open。
2.输入systeminfo.exe ,回车执行命令。窗口可能需要几秒钟来收集所有系统信息并为您显示。
3.滚动(Scroll)显示的信息并尝试找到Hyper-V 要求(Requirements)部分。检查Firmware 中 Virtualization Enabled(Virtualization Enabled in Firmware)的状态。很明显,如果启用了虚拟化,它应该显示为 Yes。(Virtualization)
检查是否启用了虚拟化的另一种方法是打开Windows 任务管理器(Windows Task Manager)(Ctrl + Shift + Esc)并在“性能”(Performance)选项卡中检查其状态(确保(Ensure)在左侧选择了计算机的CPU )。如果未启用虚拟化(virtualization isn’t enabled),请先从BIOS菜单启用它,然后安装Hyper-V以创建虚拟机。
Enable Virtualization in BIOS/UEFI
BIOS是负责确保您的计算机正常启动的软件,它还处理许多其他高级功能。您可能已经猜到了,BIOS还包含在您的 Windows 10 计算机上启用虚拟化技术的设置。要启用Hyper-V并管理您的虚拟机,您首先需要在BIOS菜单中启用虚拟化。
现在,BIOS软件因制造商而异,进入BIOS菜单的方式( (BIOS)BIOS键)也因制造商而异。进入BIOS的最简单方法是在计算机启动时反复按以下键之一(F1、F2、F3、F10、F12、Esc 或 Delete 键) 。((F1, F2, F3, F10, F12, Esc, or Delete key))如果您不知道特定于您的计算机的BIOS密钥,请遵循以下指南并在Windows 10 PC 上启用虚拟化:
1.按Windows键 + I 的热键组合打开Windows 设置(Windows Settings),然后单击更新和安全(Update and Security)。
2. 使用左侧导航菜单,移至恢复 (Recovery )设置页面。
3.在这里,单击高级启动(Advanced startup)部分下的立即重新启动 (Restart now )按钮。
4. 在高级(Advanced)启动屏幕上,单击疑难解答 (Troubleshoot )并输入 高级选项( Advanced Options)。
5. 现在,单击UEFI 固件设置(UEFI Firmware Settings) 并 重新启动(reboot)。
6. 每个制造商的虚拟化(Virtualization)或虚拟技术(Virtual Technology)设置的精确位置会有所不同。在BIOS/UEFI菜单中,查找“高级(Advanced)”或“配置(Configuration)”选项卡,然后在其下启用虚拟化。 ( enable virtualization. )
在 Windows 10 中启用 Hyper-V 的 3 种方法(3 Ways to Enable Hyper-V in Windows 10)
Microsoft 的本机管理程序软件称为Hyper-V,它允许您创建和管理虚拟计算机环境,也称为单个物理服务器上的虚拟机。Hyper-V可以虚拟运行操作系统以及硬盘驱动器和网络交换机。高级(Advanced)用户甚至可以使用Hyper-V来虚拟化服务器。
虽然Hyper-V内置在所有受支持的 PC 上,但需要手动启用。在Windows 10上安装(Windows 10)Hyper-V的方法一共有 3 种,下面将详细介绍所有这些方法。
方法 1:从控制面板启用 Hyper-V(Control Panel)
这是最简单和最直接的方法,因为您可以使用图形用户界面。您只需要导航到所需目的地并勾选一个框。
1. 按Windows键 + R 启动运行(Run)命令框,在其中键入 control 或control panel,然后单击 OK 打开。
2.在所有控制面板(All Control Panel)项目列表中查找程序和功能(Programs and Features)并单击它。您可以将图标大小更改为小或大(change the icon size to small or large),以便更轻松地查找项目。
3. 在程序(Programs)和功能(Features)窗口中,单击左侧的打开或关闭Windows功能超链接。(Turn Windows)
4. 最后,通过勾选Hyper-V(Hyper-V)旁边的框启用虚拟化,然后单击OK。
5. Windows 将自动开始下载和配置在您的计算机上创建虚拟机所需的所有文件。下载过程完成后,您将被要求重新启动(Restart)。
单击立即重新启动(Restart now)以立即重新启动您的 PC,或单击不重新启动并在以后根据您的方便手动重新启动。虚拟化只会在重新启动后启用,所以不要忘记执行一个。
方法 2:使用命令提示符(Command Prompt)启用 Hyper-V
您只需一个命令即可从命令提示符启用和配置(Command Prompt)Hyper-V。
1.在开始(Start)搜索栏中键入命令提示符( (Command Prompt)Windows键 + S),右键单击搜索结果,然后选择以管理员身份(Administrator)运行(Run)。
注意:(Note:)在出现的请求权限以允许程序对系统进行更改的“用户帐户控制(User Account Control)”弹出窗口中单击“是”。(Yes)
2.在现在提升的命令提示符(Command Prompt)窗口中,键入以下命令并按回车键执行它。
Dism /online /Get-Features | find “Microsoft-Hyper-V”
3. 您现在将收到所有可用Hyper-V相关命令的列表。要安装所有Hyper-V功能,请执行命令
Dism /online /Enable-Feature /FeatureName:Microsoft-Hyper-V-All
4. 现在将安装、启用和配置所有 Hyper-V 功能以供您使用。要完成该过程,需要重新启动计算机。按 Y(Press Y)并按 Enter 从命令提示符本身重新启动。
方法 3:使用Powershell(Powershell)启用 Hyper-V
与之前的方法类似,您只需在提升的Powershell窗口中执行单个命令即可安装所有Hyper-V功能。
1. 与命令提示符(Command Prompt)类似,Powershell也需要以管理权限启动才能启用Hyper-V。按 Windows(Hyper-V. Press Windows)键 + X(或右键单击开始(Start)按钮)并从高级用户菜单中选择Windows Powershell(管理员)。
2. 要获取所有可用Hyper-V命令和功能的列表,请执行
Get-WindowsOptionalFeature -Online | Where-Object {$_.FeatureName -like “Hyper-V“}
3. 执行列表中的第一个命令以安装并启用所有Hyper-V功能。相同的整个命令行是
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
4.按 Y 并按(Press Y)Enter 键重新启动您的 PC 并启用Hyper-V。
如何使用 Hyper-V 创建虚拟机?(How to create a Virtual Machine using Hyper-V?)
现在您已经启用了虚拟化并在Windows 10上设置了(Windows 10)Hyper-V,是时候使用该技术并创建虚拟机了。有多种方法可以创建虚拟机(Hyper-V Manager、PowerShell和Hyper-V Quick Create),但最简单的方法是使用Hyper-V Manager应用程序。
1. 使用您喜欢的方法打开控制面板(Control Panel),然后单击管理工具(Administrative Tools)。您也可以直接通过搜索栏打开相同的( Windows 管理工具)。(Windows Administrative Tools)
2. 在以下资源管理器窗口中,双击Hyper-V Manager。
3. Hyper-V 管理器窗口将很快打开。在左侧,您将找到您的计算机名称,选择它继续。
4. 现在,单击顶部的操作并(Action)选择新建(select New),然后选择虚拟机。
5.如果要创建一个最基本配置的虚拟机,直接点击(Virtual Machine)新建虚拟机向导(New Virtual Machine Wizard)窗口中的完成(Finish)按钮即可。另一方面,要自定义虚拟机(Virtual Machine),请单击下一步(Next)并逐步完成各个步骤。
6. 您将在Hyper-V 管理器(Hyper-V Manager)窗口的右侧面板中找到新的虚拟机。打开或关闭、关闭、设置等的选项也将出现在那里。
受到推崇的:(Recommended:)
这就是您可以启用虚拟化并在 Windows 10 PC 上创建虚拟机的(enable virtualization and create a virtual machine on Windows 10 PC)方法。如果您在理解任何步骤时遇到困难,请在下方评论,我们会尽快回复您(ASAP)。
How to Enable Virtualization on Windows 10?
There are several things that make Windows 10 the best Windows version there has ever been. One such feature is the support for hardware virtualizatiоn and therefore, the аbility to create virtual machines. To thosе unaware and in layman’s terms, virtualization is the creation of a virtuаl instance of something (the list includes аn оperating system, stоrage deviсe, network servеr, etc.) on the same set оf hardware. Creating a virtual mаchine allows usеrs to test beta applications in an isolated environment, use and eаsily ѕwitch between two different operating systems, etc.
Although virtualization is a feature that most users have no use for, it is disabled by default on Windows. One needs to manually enable it from the BIOS menu and then install Windows’ virtualization software (Hyper-V). In this article, we will be covering all the little details of enabling virtualization on Windows 10 and also show you how to create a virtual machine.
How to Enable Virtualization on Windows 10
Requisites for Virtualization
Hardware virtualization was first introduced in Windows 8 and has since evolved to include a greater number of features such as enhanced session mode, high fidelity graphics, USB redirection, Linux secure boot, etc. in Windows 10. Although, better and more virtualization features also demand a more powerful system. Below is a list of prerequisites your computer needs to possess in order for you to create and run a virtual machine.
1. Hyper-V is only available on Windows 10 Pro, Enterprise, and Education versions. If you have Windows 10 Home and wish to create a virtual machine, you will need to upgrade to the Pro version. (If you are unsure about your Windows version, type winver in the start search bar or run command box and press enter.)
2. Your computer should be running on a 64-bit processor that supports SLAT (Secondary Level Address Translation). To check for the same, open the System Information application and review the System Type & Hyper-V Second Level Address Translation Extensions entries.
3. A minimum of 4gb of system RAM should be installed, although, having more than that would make for a much smoother experience.
4. There should also be enough free storage space to install the desired OS on the virtual machine.
Check if Virtualization is enabled in BIOS/UEFI
Virtualization technology may be already enabled on your computer. To check if that is indeed the case, follow the below steps.
1. Search for Command Prompt or Powershell (either of them works) in the search bar and click on Open.
2. Type systeminfo.exe and press enter to execute the command. It may take a few seconds for the window to gather all the system information and display it for you.
3. Scroll through the displayed information and try to locate the Hyper-V Requirements section. Check the status for Virtualization Enabled in Firmware. It should, as obvious, read Yes if Virtualization is enabled.
Another way to check if virtualization is enabled is to open Windows Task Manager (Ctrl + Shift + Esc) and in the Performance tab, check its status (Ensure the computer’s CPU is selected on the left). If virtualization isn’t enabled, first enable it from the BIOS menu and then install Hyper-V to create virtual machines.
Enable Virtualization in BIOS/UEFI
BIOS, the software that is responsible for making sure your computer boots on properly, also handles a number of other advanced features. As you might have guessed, BIOS also contains the settings to enable virtualization technology on your Windows 10 computer. To enable Hyper-V and manage your virtual machines, you will need first to enable virtualization in the BIOS menu.
Now, BIOS software differs from manufacturer to manufacturer, and also the mode of entry (BIOS key) to the BIOS menu is different for each. The easiest way to enter BIOS is to press one of the following keys repeatedly (F1, F2, F3, F10, F12, Esc, or Delete key) when the computer boots. If you do not know the BIOS key specific to your computer, follow the below guide instead and enable virtualization on Windows 10 PC:
1. Open Windows Settings by pressing the hotkey combination of Windows key + I and click on Update and Security.
2. Using the left navigation menu, move to the Recovery settings page.
3. Here, click on the Restart now button under the Advanced startup section.
4. On the Advanced startup screen, click on Troubleshoot and enter Advanced Options.
5. Now, click on UEFI Firmware Settings and reboot.
6. The precise location of Virtualization or Virtual Technology settings will be different for each manufacturer. In the BIOS/UEFI menu, look for the Advanced or Configuration tab, and under it, enable virtualization.
3 Ways to Enable Hyper-V in Windows 10
Microsoft’s native hypervisor software is called Hyper-V, and it lets you create and manage virtual computer environments, also known as virtual machines on a single physical server. Hyper-V can run operating systems virtually, along with hard drives and network switches. Advanced users can even use Hyper-V to virtualize servers.
While Hyper-V is built-in on all supported PCs, it needs to be enabled manually. There are exactly 3 ways to install Hyper-V on Windows 10, all of which are explained in detail below.
Method 1: Enable Hyper-V From the Control Panel
This is the easiest & most straightforward method as you have a graphical user interface at your disposal. You merely need to navigate your way to the required destination and tick a box.
1. Press Windows key + R to launch the Run command box, type control or control panel in it, and click on OK to open the same.
2. Look for Programs and Features in the list of All Control Panel items and click on it. You can change the icon size to small or large to make looking for the item easier.
3. In the Programs and Features window, click on the Turn Windows features on or off hyperlink present on the left.
4. Finally, enable Virtualization by ticking the box next to Hyper-V and click on OK.
5. Windows will automatically start downloading and configuring all the files required to create a virtual machine on your computer. Once the download process completes, you will be requested to Restart.
Click on Restart now to reboot your PC immediately or click on Don’t restart and restart manually at a later time as per your convenience. Virtualization will only be enabled after the reboot, so do not forget to perform one.
Method 2: Enable Hyper-V using Command Prompt
A single command is all you need to enable and configure Hyper-V from the Command Prompt.
1. Type Command Prompt in the Start search bar (Windows key + S), right-click on the search result, and select Run as Administrator.
Note: Click on Yes in the User Account Control pop-up that appears requesting permission to allow the program to make changes to the system.
2. In the now elevated Command Prompt window, type the below command and press enter to execute it.
Dism /online /Get-Features | find “Microsoft-Hyper-V”
3. You will now receive a list of all available Hyper-V related commands. To install all Hyper-V features, execute the command
Dism /online /Enable-Feature /FeatureName:Microsoft-Hyper-V-All
4. All Hyper-V features will now be installed, enabled, and configured for your use. To complete the process, a computer restart is required. Press Y and hit enter to restart from the command prompt itself.
Method 3: Enable Hyper-V using Powershell
Similar to the previous method, you only need to execute a single command in an elevated Powershell window to install all Hyper-V features.
1. Similar to Command Prompt, Powershell also needs to be launched with administrative privileges to enable Hyper-V. Press Windows key + X (or right-click on the Start button) and select Windows Powershell (Admin) from the power user menu.
2. To obtain a list of all available Hyper-V commands and features, execute
Get-WindowsOptionalFeature -Online | Where-Object {$_.FeatureName -like “Hyper-V“}
3. Execute the first command in the list to install and enable all Hyper-V features. The entire command line for the same is
Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
4. Press Y & hit enter to restart your PC and enable Hyper-V.
How to create a Virtual Machine using Hyper-V?
Now that you have enabled virtualization and set up Hyper-V on Windows 10, it is time to put the technology to use and create a virtual machine. There are multiple ways to create a virtual machine (Hyper-V Manager, PowerShell, and Hyper-V Quick Create), but the easiest one is by using the Hyper-V Manager application.
1. Open Control Panel using your preferred method and click on Administrative Tools. You can also open the same (Windows Administrative Tools) directly through the search bar.
2. In the following explorer window, double-click on Hyper-V Manager.
3. A Hyper-V manager window will open soon. On the left, you will find the name of your computer, select it to proceed.
4. Now, click on Action present at the top and select New, followed by Virtual Machine.
5. If you want to create a Virtual Machine with the most basic configuration, directly click on the Finish button in the New Virtual Machine Wizard window. On the other hand, to customize the Virtual Machine, click on Next and go through the individual steps one by one.
6. You will find the new virtual machine on the right panel of the Hyper-V Manager window. Options to turn it on or off, shut down, settings, etc. will also be present there.
Recommended:
So that is how you can enable virtualization and create a virtual machine on Windows 10 PC. If you are having a hard time understanding any of the steps, comment down below, and we will get back to you ASAP.