Ubuntu22.04下virtualBox7.0.6安装openwrt 22.3详细步骤

  今天,我们要讲的是Ubuntu 22.04环境下,在virtualBox 7.0.6中安装OpenWRT 22.03.3软件路由系统的过程,不涉及网络设备及相关路由的设置。

  1. 下载OpenWRT x86 镜像文件 ext4-combined img
    我们采用的是ext4-combined镜像,而不是squashfs,之后可根据需要对ext4分区进行扩展,combined-squashfs是传统的openwrt布局,因其无法对root文件系统和分区进行改写,不利于需求跟进。物理机操作的话,可能涉及uefi启动的问题,可以查阅网上的相关物理机安装镜像的制作方法,这里不赘述。

  2. 解压缩镜像文件
    下载之后,我们获得一个openwrt-22.03.3-x86-64-generic-ext4-combined.img.gz压缩文件,必须对它进行解压处理。

gzip -df openwrt-22.03.3-x86-64-generic-ext4-combined.img.gz
  1. 将OpenWRT镜像文件转换成VDI
    步骤2压缩后得到openwrt-22.03.3-x86-64-generic-ext4-combined.img镜像文件,我们还要将它转换成virtualbox可以使用的分区镜像文件。
 

猜你喜欢

转载自blog.csdn.net/weixin_37885187/article/details/129345068