Loading...

开始之前,先劝大家:All in one, All in BOOM
一开始的计划是:ESXi当底层,虚拟机OpenWRT主路由挂个科学上网,简单弄一下

本教程中涉及的环境

ESXi 7.0 Update 3
iKuai8_3.6.5 Build 202206011520
eSir Playground构建的OpenWRT GDQ Spring[2022]-x86_64-generic-squashfs-uefi(我不建议用Spring版本,用Winter!!!Spring版本我都翻车好几次了草)

实操开始

第一次尝试

准备工作

然后就开始嗯造,装ESXi一切都很顺利,然后就是开OpenWRT虚拟机,我用的是eSir Playground的GDQ构建,因为镜像是 .img 格式的,要被ESXi所使用,必须要进行转换,我用的工具:starwindconverter下载链接

下载安装过程可以直接一路下一步,完全没有什么问题,安装好以后打开
StarWind V2V index

StarWind V2V index

这个时候我们需要选择 Local File,在这个界面选择你的镜像:
StarWind V2V Source image

StarWind V2V Source image

然后我们点击“Next”,下一步我们仍然选择 Local File
Select the location of the destination image
Select the location of the destination image

下一步,选择要转换的磁盘类型,我们选择 VMDK
Select destination image format
Select destination image format

这一步 非常关键!!! 必须选择 ESXi Server image 如果选错了就会脑抽,ESXi将 不能 识别你的镜像 (问就是我翻车过)
Select option of VMDK image format 1
Select option of VMDK image format 1

下一步我们选择 ESXi growable image
Select option of VMDK image format 2
Select option of VMDK image format 2

最后选择导出位置,导出镜像文件即可(转换应该是很快的),完成后你就可以退出该工具,打开刚刚的文件夹,你会看到两个文件,请注意,这不是bug,这两个 都要 上传到ESXi,它俩上传完以后会很神奇地“合成”:
Data upload
Data upload

创建虚拟机

话不多说,直接看图
Create new VM

Create new VM

Set name and system
Set name and system

VM Settings 1
VM Settings 1

VM Settings 2
VM Settings 2

VM Finish
VM Finish

至此,一个新的ESXi虚拟机添加完成,现在让我们来添加OpenWRT的硬盘:
Add Storage
Add Storage

Choose Storage
Choose Storage

选择好之后,我们会得到如下图的状况:
Edit VM 1
Edit VM 1

这时候,我们先点击保存(此时还不能开机,我们再次点击编辑配置,更改硬盘大小,我建议20G足矣)
Edit VM 2
Edit VM 2

Edit VM 3
Edit VM 3

设置完成后,我们继续点击保存,这时候已经可以开机了,现在对它进行一些初步设置:
Openwrt Console
Openwrt Console

passwd root #设置一个 root 密码,默认是没有滴 vi /etc/config/network #按“i”键进入编辑模式,将 config interface 'lan'中的option ipaddr '192.168.5.1'更改为你要的内网IP,我这里设置10.0.0.4

今天就先写到这吧,继续填坑冲冲冲

最后修改:2022 年 07 月 16 日
如果觉得我的文章对你有用,请随意赞赏