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文件,或者簡單的雙擊它。玩得愉快~
  • 相關文章
    相關標籤/搜索