OpenWrt on VirtualBox


OpenWRT VirtualBox

If you are considering to use OpenWrt on your wireless router and you don’t want to flash it over and over or you just want to check out this Linux version for embedded devices, you can download the test image for VirtualBox from the project’s homepage and play around there.

To make it work just follow these steps:

  • Set the virtual machine with these parameters:

OpenWRT VirtualBox Linux 2.6

OpenWRT VirtualBox MEMORY

OpenWRT VirtualBox Virtual Hard Disk

It doesn’t work, it doesn’t boot!!

If it doesn’t work, for example it stays still for a while and end up with the message “Waiting for root device /dev/sda2″, it’s because image works with an IDE disk and VirtualBox adds it as a SATA device by default:

OpenWRT VirtualBox SATA

To fix it you must delete this disk from the settings and add it again, but to the IDE controller:

OpenWRT VirtualBox IDE

The you will be able to work with your virtualized OpenWrt !!

Reference:


, ,

  1. #1 by Luis Gallardo on 30/07/2011 - 3:00 pm

    @Bobby you have to take in account the eth0 in the router is a bridged interface as well, meaning you have to avoid using the same 192.168.1.1 address if your network uses that as gateway. So, you have to edit the /etc/config/network in OpenWrt as follow:

    config interface lan
    option ifname eth0
    option type bridge
    option proto static
    option ipaddr 192.168.1.20
    option netmask 255.255.255.0

    Then you must to execute:

    ifdown eth0
    ifup eth0
    ifconfig

    The last command is for checking out the changes. To use ssh you must set the root’s password:

    passwd

    Now you will be able to use ssh as follow:

    ssh [email protected]

    To use the web interface type in a browser this:

    http://192.168.1.20/cgi-bin/luci

    Cheers!

  2. #2 by Bobby on 30/07/2011 - 8:36 am

    I enabled bridge mode but can’t ssh to the virtual machine or open the web interface. Is there anything else that need to be configured?

  3. #3 by Luis Gallardo on 20/06/2011 - 3:29 pm

    @Rob yes, you can enable a network adapter in bridge mode to reach the web interface. Cheers!

  4. #4 by Rob on 20/06/2011 - 2:34 am

    Hi, is there a way to use the web interface of openwrt while it is running in virtualbox?

  5. #5 by Luis Gallardo on 22/11/2010 - 10:53 pm

    @Andy you are welcome my friend!!

  6. #6 by Andy on 22/11/2010 - 10:51 pm

    Thank you.

(will not be published)