一、家庭版是没有 Hyper-V 的,需要单独进行下载安装
使用该脚本进行操作(将下面内容新建为 txt,然后把后缀修改为 bat,双击执行):
pushd "%~dp0" dir /b %SystemRoot%\servicing\Packages\*Hyper-V*.mum >hyper-v.txt for /f %%i in ('findstr /i . hyper-v.txt 2^>nul') do dism /online /norestart /add-package:"%SystemRoot%\servicing\Packages\%%i" del hyper-v.txt Dism /online /enable-feature /featurename:Microsoft-Hyper-V-All /LimitAccess /ALLe /featurename:Microsoft-Hyper-V-All /LimitAccess /ALL
二、在搜索栏中搜索“启用或关闭 Windows 功能”,并打开
- 然后依次勾选如下选项:
- Hyper-V
- Windows 虚拟机监控程序平台
- 适用于 Linux 的 Windows 子系统
- 虚拟机平台
勾选后点击确定,等待 Windows 系统重启。
三、在搜索栏中搜索“Hyper-V 管理器”,并打开
四、点击“Hyper-V 设置”
五、修改一下虚拟机安装的位置
六、去官网上下载 Ubuntu 20.04,网址如下:
Index of /releases/20.04