Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

win10 系统

Ubuntu下载

  1. ubuntu-18.04.2-live-server-amd64.iso,是字符界面,不喜欢可以自己找镜像
  2. 链接: https://pan.baidu.com/s/1VvItsJgZzhcBZ0y3gWtOZw 提取码: buxy

找到Hyper-V

win10

  1. 家庭版需要多一个步骤下载安装Hyper-V,网上是编写脚本bat批处理,这里就不做处理,因为我的电脑不是家庭版,自己百度【win10家庭版安装Hyper-V】

  2. 然后打开控制面板->程序->程序和功能->启用或关闭Windows功能->勾上Hyper-V
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  3. 在win开始->Windows 管理工具->Hyper-V 管理器->点击打开
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

打开Hyper-V管理器

  1. 点击操作->链接到服务器
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  2. 然后发现可以选择本机或者远程计算机,选择本地集手机,确定
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  3. 最后惊喜的发现本机都连接不了
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  4. 其实是服务还没有打开,选择下方的服务打开,也可以选择自动开启
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  5. 最后发现,本机计算机连接上了,以前的虚拟机也有,第一次是肯定没有的
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

新建虚拟机

  1. 点击新建->虚拟机->新建虚拟机向导
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  2. 虚拟机命名,虚拟机存储位置Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  3. 下一步

  4. 选择虚拟机的代数,默认第一代
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  5. 下一步

  6. 选择分配内存,根据需求,还有自己计算机的总内存
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  7. 下一步

  8. 网络选择default switch
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  9. 下一步

  10. 虚拟硬盘的大小可以不使用默认的127G,浪费,40G够了
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  11. 下一步

  12. 选择从可启动的CD/DVD-ROM 安装操作系统©->映像文件(.iso)
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  13. 选择自己想要安装的系统映像,我这里选择安装ubuntu-18.04-live-server-amd64.iso
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  14. 下一步
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  15. 完成
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

  16. 回到主界面,看到新建的虚拟机
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64

安装Ubuntu

  1. 双击打开虚拟机Ubuntu18.04-test
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  2. 点击启动
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  3. 等待
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  4. 出现以下界面,选择English即可,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  5. 默认,选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  6. 看到Install Ubuntu,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  7. 默认,选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  8. 默认,选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  9. 默认,选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  10. 看到Use An Entire Disk,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  11. 默认,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  12. 选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  13. 看到Confirm destructive action,选择下面的Continue,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  14. 填写本人昵称,Ubuntu的主机名,用户名和两个校验密码,选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  15. 按下空格键使得Install OpenSSH server 的前面有个大X,然后选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  16. 选择下面的Done,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  17. 接着就是耐心等待一会
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  18. 看到Please remove the installation medium, then press ENTER: 就是直接按enter键,然后接着等待一会
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  19. 看到这里【OK】Reached target Cloud-init target. 直接按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  20. 然后就看到需要登录的界面,输入之前设置的用户名和密码,按enter键
    Window-10-Hyper-V 安装 ubuntu-18.04.2-live-server-amd64
  21. 完成安装,你可以使用Ubuntu