52ll.org
52ll.org

esxi openwrt 扩容 overlay

关于 OpenWrt

我用的是 https://www.right.com.cn/forum/thread-3708606-1-1.html 。下载地址可以在该文章中找到

注意:下载那个文件名中不包含“efi”的版本

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-02-24.png

具体步骤

  • 将下载文件解压,然后使用 StarWind V2V Converter 转换成可以在 esxi 上使用的镜像,步骤略
  • 将转换后的文件上传至 esxi ,然后创建虚拟机,步骤略
https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-08-29-1.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-10-25-1.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-17-03.png

安装 cfdisk

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-18-59.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-20-19.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-20-39.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-22-07.png

在 primary 上按 enter 键

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-22-13.png

按左右方向键移动到 Write

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-22-22.png

输入:yes,然后按 enter 键

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-22-33.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-22-38.png

提示:Syncing disks.

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-30-56.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-29-49.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-32-30.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-33-51.png

确认一下:ls /mnt/sda3

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-34-17.png

迁移文件:

cd /overlay

cp -r /overlay/* /mnt/sda3

ls /mnt/sda3

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-35-33.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-36-44.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-37-10.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-37-26.png

重启一下路由器

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-42-51.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-41-30.png

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

https://52ll.org/wp-content/uploads/2020/08/Snipaste_2020-08-19_22-41-52.png

参考文章

https://www.vediotalk.com/archives/13889

https://blog.csdn.net/misisippi68/article/details/105431455

发表回复

textsms
account_circle
email

52ll.org

esxi openwrt 扩容 overlay
关于 OpenWrt 我用的是 https://www.right.com.cn/forum/thread-3708606-1-1.html 。下载地址可以在该文章中找到 注意:下载那个文件名中不包含“efi”的版本 具体步骤 将下…
扫描二维码继续阅读
2020-08-19