OpenWrt running on VMware
如何在Vmware上运行Openwrt。只有Kamikaze的X86[2.6]以上版本能正常工做,不支持老的稳定版本(WhiteRussian)。已经在Windows XP和Linux主机上测试了该方法。 使用一个预编译 的版本。 e.g. using PuTTY connected to \\.\pipe\com_1 @ 115200 8n1 DIY 建立你的镜像 为了创建你本身的Kamikaze VMware镜像,你须要一个OpenWrt 开发环境 (还须要qume-img 来转换镜像格式): (译者注:ubuntu用户能够使用: sudo apt-get install qemu) check out with 'svn co https://svn.openwrt.org/openwrt/trunk/' (or download the stable kamikaze release) 运行make menuconfig,并选择 Target System (x86 [2.6]) Target Profile (VMware image) Target Images [ ] jffs2 ←- N [ ] squashfs ←- N (115200) Serial port baud rate (128) Filesystem part size (in MB) ext2 Build VMware image files (VMDK). Requires qemu-img Kernel Modules Network Devices kmod-e1000 (Vmware须要这个网络接口) 运行'make' 创建x86镜像(将会出如今bin/x86/openwrt-x86-2.6-ext2.image ) qemu-img convert -f raw openwrt-x86-ext2.image -O vmdk openwrt-x86-ext2.vmdk 创建VMware配置文件 Basic Configuration Virtual Machine Name: OpenWrt Kamikaze (x86-2.6) Select GuestOS: Generic Linux 2.6.x Memory Size: 128 MB Network Configuration Ethernet0: Enabled: checked Connection Type: Bridged VirtualDevice Intel(R) Pro/1000 Ethernet1: Enabled: checked Connection Type: Bridged VirtualDevice Intel(R) Pro/1000 Disk Configuration SCSI: Disable SCSI IDE0:Master: Enabled: checked File Name / Floppy Device: openwrt-x86-2.6-ext2.vmdk Start Connected: checked WriteThru: checked Autodetect Name: checked Other Configuration Options VMWare Tools: Don't Remind to Install VMWare Tools Startup Hints: Hide Startup Hints USB : Disable USB LPT1: Disable LPT1 Soundcard: No soundcard support Logging: Disable Logging You have to make a few changes to the generated vmx file: +serial0.fileType = "pipe" -serial0.fileName = "COM1" +serial0.fileName = "\\.\pipe\com_1" +serial0.pipe.endPoint = "server" +floppy0.present = "FALSE" 将这个配置保存为openwrt-x86-2.6-ext2.vmx 并和镜像文件保存在同一目录下。 完成这些以后,能够使用VMware打开这个vmx文件,或者简单的双击它。玩得愉快~
欢迎关注本站公众号,获取更多信息