首先将编译完成后的安装文件openwrt-15.05-x86-generic-combined-ext4.img.gz解压缩。
然后将解压后的img文件复制出来并转换为Virtual支持的vdi文件。
①找到Virtual Box的安装路径,并且找到VBoxManage.exe应用程序。
②运行cmd命令提示符,键入命令:(VBoxManage.exe的路径) convertfromraw -format VDI (*.img映像文件的位置) (转换后vdi文件的位置)
例如:
E:\VirtualBox\VirtualBox\VBoxManage.exe convertfromraw -format VDI f:\openwrt-15.05-x86-generic-combined-ext4.img d:\openwrt15.vdi
生成文件:openwrt15.vdi。
③使用VirtualBox来安装OpenWrt时,
类型选择Linux,版本选择Linux 2.6/3.x/4.x(32-bit)。
选择内存大小,采用默认设置256MB
最后选择"使用已有的虚拟硬盘文件",openwrt