Windows11 用 HyperV 安装 Ubuntu-16.04 虚拟机

前提VMware需要付费,Hyper-V是windows11装机自带,但其操作系统最“久远”是Ubuntu18.04版本,因此我们需要自己想办法从本地安装。

1. 确保已经开启HyperV

可以参考如下教程 Win11 家庭版/专业版开启Hyper-V

  1. 创建 hyper-v.cmd 文件 并 运行 (注意:显示文件扩展名)
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 /ALL
  1. 启用 Hyper-V:控制面板 -》程序和功能 -》启用或关闭windows功能-》勾选Hyper-V -》 打开 Windows虚拟机监控程序平台 & 虚拟机平台 -》 确定(不需要重新启动)

2. 准备Ubuntu16.04镜像(推荐64位的)

  1. 阿里云开源镜像:链接;【推荐】
  2. Ubuntu官网: 链接

3. HyperV ->快速创建 -> 更改安装源 选刚刚下载的镜像(.iso)文件就好 -> 创建虚拟机1

1. 按提示往下按,如下图的位置选 "Install third party" 2. 这个地方选 “Erase disk and install Ubuntu”

【注】如果按不成功,换个源重新再试试。


  1. 参考视频
    [1]: https://youtu.be/B_tnnDlUuzw?si=MO85fcPdLL1eGcYe ↩︎

相关推荐

最近更新

  1. TCP协议是安全的吗?

    2024-02-01 17:16:02       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-02-01 17:16:02       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-02-01 17:16:02       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-02-01 17:16:02       20 阅读

热门阅读

  1. STM32——智能小车

    2024-02-01 17:16:02       28 阅读
  2. js中类型的值相加或相减的转换

    2024-02-01 17:16:02       30 阅读
  3. KY104 Pre-Post

    2024-02-01 17:16:02       39 阅读
  4. OpenGL着色器对象 Shader Objects

    2024-02-01 17:16:02       33 阅读
  5. Leetcode刷题(三十一)

    2024-02-01 17:16:02       30 阅读
  6. 【笔记ing】Helm-5 Chart模板指南-5 模板函数列表

    2024-02-01 17:16:02       34 阅读
  7. unity 讯飞webapi在线语音合成

    2024-02-01 17:16:02       32 阅读
  8. pip install matplotlib

    2024-02-01 17:16:02       40 阅读