openwrt webpage

How to run openwrt in Virtualbox

techouse

Openwrt installation in VirtualBox

We will be installing 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.

Prerequisites

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

openwrt_techouse





root user in openwrt

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



openwrt network configuration



Step 1 – first check the ping

ping google.com

Step 2 – cat /etc/config/network

Change IP and add DNS, Gateway.

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

option ipaddr '192.168.1.101'
option gateway '192.168.1.1'
option dns '1.1.1.1'



change IP and add DNS, Gateway.

Now restart network service

service restart network
ping google.com

How to access Web

opkg update
opkg install luci

http://192.168.1.1

openwrt webpage

Leave a Reply

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