OpenWrt running on VMware

限于喜欢 提交于 2019-12-04 06:13:07
如何在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文件,或者简单的双击它。玩得愉快~
  • 标签
    易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
    该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!