此教程适用于希望快速启动一个干净的系统的人群

准备

  • VMware workstation
  • 一个系统镜像或封装好的vmdk文件

一、将img镜像转换为vmdk(可以选择跳过,直接使用作者打包并配置好的vmdk)

这里需要借助StarWind V2V Converter工具

1、打开StarWind V2V Converter

打开后选择local file

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_62b8a81d2d2ba3734f7507dd2016f6e2.png

2、选取下载好的debian镜像

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_3215678bd0e01f17750a639af335ea7b.png

选择好后点击next

3、选择local file并继续下一步

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_fb46a79a649269d742739565af7516e1.png

4、选择需要转换的格式

VMware选VMDK

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_70ec8b9a4ba1944478168baf6b96c0b2.png

5、根据需求选择镜像类型

  • 第一个是动态分配
  • 第二个是固定大小分配

没有特殊需求第一个即可

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_84508284ae370e9e7e3fbbc2c593eb67.png

6、选择好转换后保存镜像的位置

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_4fd3715a0537dafc2001a5f91f62e904.png

7、完成镜像转换

二、启动虚拟机实例

1、配置虚拟机参数

如有其他需求可自行配置

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_7e9c2a9fa0772e11a695c35bb1dee2a7.png

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_70ece60a1251e170d42d6236bbc0f1ee.png

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_040b528dd1f64fef76c1f54eff16d8d2.png

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_96c33f8439daf0ff8c43aeac380b6bb3.png

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_f26f86eb2d9a711e55ab7d992dd63ae2.png

  • 磁盘可以随便设置(待会需要删掉)

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_dc782ef30000da5abaf8d9e1c95eec96.png

重点

编辑虚拟机设置

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_c852d0932acbdbc937d5a0b0bde7f71f.png

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_22ec78c8397806a21ce8bf25a811ea99.png

选择并移除刚才创建的硬盘然后把转换好的vmdk加入到虚拟机里
  • 打开资源管理器(打开虚拟机文件位置)

删掉原来的硬盘文件,这里是Debian.vmdk

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_59d1fb458d0cd6862aecd1cbbc687019.png

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_1b04d505e6fccd139a8affc1bf189562.png

  • 然后将转换后的vmdk复制到文件夹里

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_8e8e4c0cae829ab9823bb53358d2d982.png

  • 然后返回VMware,打开编辑虚拟机,点下面的添加

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_db139e21e1804a70da5bf5c4879ed2b1.png

  • 选择硬盘后点击下一步

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_a4e3a76cd37f00e4bbb6ac8f9682fd8b.png

  • 这里选择使用现有的虚拟磁盘

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_78d09a0b4ed07472e67e89960299b438.png

  • 选择刚才复制进去的虚拟磁盘

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_08a9cbec7364d3034207c81584da3051.png

这里随意

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_d696b469077e13631235bfc0cd4e7063.png

  • 然后选择扩展磁盘

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_156436b3c8bf12db96e7554dfcae75e0.png

开启并配置虚拟机

如果顺利则会看到下面的界面,进入虚拟机后按回车键即可登录

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_e1bdfc652d9b0d33c9bccd51ef6f3582.png

用户名:root

密码:abcd@1234

网络

输入ip add即可查看IP

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_2ce70afeebbc3b3808fedb8c7d5f4ca9.png

此镜像启动之后自动通过dhcp获取IP

如果不显示IP,点击:

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_44582e907a1a7357d520fd029fd0dec0.png

编辑网络配置开启dhcp

https://github.hqycloud.top/https://raw.githubusercontent.com/hqycloud/blog-images/main/hexo-images/24/7/image_cc72380568f10fc32141fa92820b0b0e.png

资源链接

镜像来源于nodeseek论坛上的大佬精简

打包好的镜像