关于 OpenWrt
我用的是 https://www.right.com.cn/forum/thread-3708606-1-1.html 。下载地址可以在该文章中找到
注意:下载那个文件名中不包含“efi”的版本

具体步骤
- 将下载文件解压,然后使用 StarWind V2V Converter 转换成可以在 esxi 上使用的镜像,步骤略
- 将转换后的文件上传至 esxi ,然后创建虚拟机,步骤略

启动虚拟机前,将硬盘大小改成所需大小,然后保存,再启动虚拟机

系统 -> 软件包,刷新列表

安装 cfdisk

使用 xshell 或其他ssh工具连接到路由器

执行命令 cfdisk,按上下方向键移到 Free space,然后按 enter 键

输入磁盘大小,如:45G,然后按 enter 键

在 primary 上按 enter 键

按左右方向键移动到 Write

输入:yes,然后按 enter 键

按左右方向键移动到Quit,然后按 enter 键

提示:Syncing disks.

再执行命令 cfdisk,确认一下刚刚添加的磁盘名称。一般来说应该是:/dev/sda3

执行命令格式化磁盘:mkfs.ext4 /dev/sda3

挂载:mount -t ext4 /dev/sda3 /mnt/sda3

确认一下:ls /mnt/sda3

迁移文件:
cd /overlay
cp -r /overlay/* /mnt/sda3
ls /mnt/sda3

进入openwrt后台,系统 -> 挂载点,添加

启用,uuid选对应大小的磁盘,挂载点选“作为外部…”,然后保存应用

然后在 系统 -> 挂载点 这一页也保存应用

重启一下路由器

然后在系统 -> 磁盘管理 ,设备选/dev/sda3,文件系统选auto,挂断点填写/overlay,点击挂载

最后,系统 -> 软件包,查看可用空间

参考文章
https://www.vediotalk.com/archives/13889
https://blog.csdn.net/misisippi68/article/details/105431455
发表回复