首先将编译完成后的安装文件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。