Enable Hyper-V to create virtual machines on Windows 10.
Hyper-V can be enabled in many ways including using the Windows 10 control panel, PowerShell (my favorite) or using the Deployment Imaging Servicing and Management tool (DISM). This documents walks through each option.
Note: Hyper-V is built into Windows as an optional feature -- there is no Hyper-V download or installable component.
Check Requirements
- Windows 10 Enterprise, Professional, or Education
- 64-bit Processor with Second Level Address Translation (SLAT).
- CPU support for VM Monitor Mode Extension (VT-c on Intel CPU's).
- Minimum of 4 GB memory.
The Hyper-V role cannot be installed on Windows 10 Home.
Upgrade from Windows 10 Home edition to Windows 10 Professional by opening up Settings > Update and Security > Activation.
For more information and troubleshooting, see Windows 10 Hyper-V System Requirements.
Install Hyper-V
Hyper-V is built into Windows as an optional feature -- there is no Hyper-V download or installable component. There are several ways to enable the built-in Hyper-V role.
Enable Hyper-V using PowerShell
- Open a PowerShell console as Administrator.
- Run the following command:
PowerShellCopy
Enable-WindowsOptionalFeature -Online -FeatureName:Microsoft-Hyper-V -All
If the command couldn't be found, make sure you're running PowerShell as Administrator.
When the installation has completed you need to reboot the computer.
Enable Hyper-V with CMD and DISM
The Deployment Image Servicing and Management tool (DISM) helps configure Windows and Windows images. Among its many applications, DISM can enable Windows features while the operating system is running.
To enable the Hyper-V role using DISM:
- Open up a PowerShell or CMD session as Administrator.
- Type the following command:
PowerShellCopy
DISM /Online /Enable-Feature /All /FeatureName:Microsoft-Hyper-V
For more information about DISM, see the DISM Technical Reference.
Manually enable the Hyper-V role
- Right click on the Windows button and select 'Programs and Features'.
- Select Turn Windows Features on or off.
- Select Hyper-V and click OK.
When the installation has completed you are prompted to restart your computer.
From: https://docs.microsoft.com/en-us/virtualization/hyper-v-on-windows/quick-start/enable-hyper-v
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 提示词工程——AI应用必不可少的技术
· Open-Sora 2.0 重磅开源!
· 周边上新:园子的第一款马克杯温暖上架
2016-09-20 Windows service无法删除怎么办?
2007-09-20 《The C++ Standard Library》第41页 不要误解了这段话
2007-09-20 《The C++ Standard Library》第45页 用const修饰auto_ptr的注意事项
2007-09-20 《The C++ Standard Library》第42页 一段很难理解的话
2007-09-20 《The C++ Standard Library》第39页 make_pair的作用