This HowTo explains how to get OpenWrt running on VMware. This only works with Kamikaze (X86 [2.6]), the old stable version (WhiteRussian) is not supported. This has been tested on a Windows XP and Linux host-system.
You can access via VMware, or via serial: On a Windows host-system the virtual serial console is accessible e.g. using PuTTY connected to \\.\pipe\com_1 @ 115200 8n1 (N.B.: I do not know if the baud rate of 115200 is still correct). You can also ssh to openwrt (run 'passwd' beforehand in the vmware, Usually you need to run "udhcpc -i eth0" to get an IP from your local network)
The 8.09 Kamikaze builds don't include the kmod-e1000 package which results in booting without the eth0 and eth1 interfaces (some versions of VMWare use the kmod-pcnet32 module, also not installed). You can build your own image to include it or you can create a second hard disk image with the additional packages you wish to install:
dd if=/dev/zero of=disk.img bs=1M count=1
(creates a 1 'M'egabyte image)
mount -o loop -t ext2 disk.img mnt.img
cp kmod-e1000_xxxx.ipk mnt.img/
qemu-img convert -f raw disk.img -O vmdk disk.vmdk
ide0:1.fileName = "disk.vmdk" ide0:1.deviceType = "disk" ide0:1.mode = "persistent" ide0:1.redo = "" ide0:1.startConnected = "TRUE" ide0:1.writeThrough = "TRUE" ide0:1.autodetect = "TRUE"
mkdir /mnt/hdb && mount -t ext2 /dev/hdb /mnt/hdb
opkg install /dev/hdb/kmod-e1000_xxxx.ipkg
To build your own Kamikaze VMware image you need a OpenWrt development environment (with qemu-img (part of the qemu package on Debian and Ubuntu) installed on the Linux host-system to convert the image):
qemu-img convert -f raw openwrt-x86-2.6-ext2.image -O vmdk openwrt-x86-2.6-ext2.vmdk
(you need qemu-img (part of the qemu package on Debian and Ubuntu)
The openwrt-x86-2.6-ext2.vmx file can also simply be downloaded from above. Anyway, it was creating at http://www.easyvmx.com with the following settings:
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"
Save the file to openwrt-x86-2.6-ext2.vmx in the same folder as your VMware vmdk image file.
When you've done all that open the vmx file with VMWare Player (or simply double click on it) and have fun.
Please use this forum thread to get help.