虚拟机VMvare 上跑 X86 OpenWRT

编译方法和  OpenWRT backfire 编译方法 是一样的。
 
装 Luci web UI :
1. ./scripts/feeds update packages luci
2. ./scripts/feeds install -a -p luci
经过这个步骤,在 make menuconfig 里就有 LuCI 相关选项。
 
X86 XPVM相关配置:
1. make menucofig 里选 X86
   Target System (x86)  —> (X) x86  
 
2. 配目标文件系统为 EXT2
   Target Images  —>  [*] ext2 
   Target Images  —>  [*]   Build VMware image files (VMDK)  
   这样就后面编译时产生可以直接在 VM 上用的虚拟硬盘。
 
3. 配 Web UI :
   1) Base system  —> <*> uci……………. Utility for the Unified Configuration Interfa
    2) LuCI  —>  Components  —>
    — luci-admin-full….. LuCI Administration – full-featured for full
   <*> luci-app-ddns……………………… Dynamic DNS configuratio
   <*> luci-app-firewall……………. Firewall and Portforwarding app
    luci-admin-full….. LuCI Administration – full-featured for ful   
   <*> luci-app-ntpc……. NTP time synchronisation client configuratiox
   <*> luci-app-samba……………….. Network Shares – Samba SMB/CIFx
    3) Network  —>
   <*> uhttpd…………………… uHTTPd – tiny, single threaded HTTP server —>
   <*>   uhttpd-mod-lua… uHTTPd – tiny, single threaded HTTP server (Lua plugin)
 
   4) make V=99 编译,时间有点长,完后,在 bin/x86/ 就是最后编译出来的文件了。
 
   5) 拷贝  bin/x86/ ,我的全部路径是 /home/longjindong/openwrt/trunk/bin/x86/ 中的 “openwrt-x86-generic-combined-ext2.vmdk”到 XP 电脑上;
 
XP VM 安装运行 OpenWRT:
1. 创建一个虚拟机
   打开 VMware –> New –> Virtual Machine … –>  下一步 –> 下一步 –> linux 、Other Linux 2.6.x kernel –> 下一步 –> 这里Vm名和路径可以自己指定 –> 下一步 –> 网络默认“Use bridged networking” –> 下一步 –> 这里的硬盘大小用默认,反证一会要被删掉 –> 完成;这样在 VMware Workstatio 里有“Other Linux 2.6.x kernel”的虚拟机了。
 
2. 加载 OpenWRT 虚拟盘并启动
   1) 删创建虚拟机时的虚拟盘
   右击 “Other Linux 2.6.x kernel” — > Setting –> Hard Disk –> Remoe;
    2) 加载 OpenWRT 虚拟盘
   “Other Linux 2.6.x kernel” — > Settin –> Add  –> Hard Disk –> Next –> Use an existing virtual disk –> Browse ,选前面 “openwrt-x86-generic-combined-ext2.vmdk” –> Finish.
    3) 点 run 按钮就可以开始运行 OpenWRT。
 
补  允
   这里 vmdk (虚拟硬盘) 也可以从 OpenWRT 管网上下载现成的,也可从管网上下openwrt-x86-ext2.image,然后制作 vmdk,制作方法如下:
    第一种方法,在 linux 里:
   qemu-img convert -f raw openwrt-x86-ext2.image -O vmdk openwrt-x86-ext2.vmdk
 
   第二种方法,在已经安装 VMware 的系统 windows 命令行里:
   VBoxManage convertfromraw –format VMDK openwrt-x86-ext2.image openwrt-x86-2.6-ext2.vmdk

转自:http://blog.micro-studios.com/?p=3891
  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值