Openwrt installation on VirtualBox

openwrt webpage

Openwrt installation on VirtualBox

We will be installing the latest version of OpenWRT 64 bit in VirtualBox.

In this tutorial, we will be guiding you to install and configure OpenWRT in the Virtualbox machine.

Also guiding you to configure networks for OpenWRT machine.


Before installing OpenWRT, install the VirtualBox machine.

VirtualBox Installation in ubuntu

install VirtualBox from Ubuntu software store

Download and Install OpenWRT in VirtualBox

Download OpenWRT .img from the below link. (I suggest to download the latest one)

[Index of /snapshots/targets/x86/64/]
openwrt image

Now open the terminal and go to the directory where it is downloaded and extract using gunzip command

cd /home/viking/Downloads/
gunzip openwrt-x86-64-generic-ext4-combined-efi.img.gz

After extracting, use below command to convert .img to .vdi format

VBoxManage convertfromraw --format VDI openwrt-*x86-64-combined*.img openwrt.vdi

Now open VirtualBox and start installing OpenWrt.

openwrt in virtualbox

select vdi format image

step3 to install openwrt in virtualbox
Now Configuring Network settings.

Change network from NAT to Bridged Adapter

network configuration in virtualbox

Start OpenWRT virtual machine


root user in openwrt

Now we also need to make changes in OpenWRT network settings as default IP value is defineĀ  – and DNS, gateway are also not defined.

openwrt network configuration

Step 1 – first check the ping


Step 2 – cat /etc/config/network

Change IP and add DNS, Gateway.

Step 3 – Edit – vi /etc/config/network

option ipaddr ''
option gateway ''
option dns ''

change IP and add DNS, Gateway.

Now restart network service

service restart network

How to access Web

opkg update
opkg install luci

openwrt webpage


I love helping beautiful people like you. I love hanging out with my dogs.

You may also like...

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

× How can I help you?