Install OpenWRT in VirtualBox VM

Channel:
Subscribers:
14,500
Published on ● Video Link: https://www.youtube.com/watch?v=aCoJp1XKCgA



Duration: 2:31
13,114 views
110


#OpenWRT #VirtualBox #VirtualMachine #Networking

Full steps can be found at https://i12bretro.github.io/tutorials/0114.html

   01. Download OpenWRT x86 Image https://downloads.openwrt.org/releases/19.07.6/targets/x86/64/
   02. Extract the OpenWRT image
   03. Convert OpenWRT Image to VDI
         cd %programfiles%/Oracle/Virtualbox
         vboxmanage.exe convertdd "%userprofile%\downloads\openwrt-19.07.6-x86-64-combined-ext4.img" "%userprofile%\downloads\openwrt.vdi"
   04. Resize the VDI File
         vboxmanage.exe modifyhd --resize 512 "%userprofile%\downloads\openwrt.vdi"
   05. Launch Virtualbox
   06. Create a New VM by selecting Machine ≫ New
         Name: OpenWRT
         Machine Folder: C:\VMs
         Type: Linux
         Version: 2.6 / 3.x / 4.x (64-bit)
         Memory Size: 128 MB
         Hard disk: Do not add a virtual hard disk
   07. Click Create
   08. Move the openwrt.vdi file from downloads into C:\VMs\OpenWRT
   09. Select the VM and Click Settings
   10. Select Storage
   11. Click Add Storage Attachment ≫ Add Hard Disk ≫ Choose existing disk
   12. Click Add and browse to C:\VMs\OpenWRT\openwrt.vdi
   13. Click OK
   14. Select Network
   15. Set Adapter 1 Attached to: Bridged
   16. Click the Adapter 2 tab
   17. Check the Enable Network Adapter box
   18. Set Adapter 2 Attached to: Bridged
   19. Click OK
   20. Make sure the OpenWRT VM is selected and click Start ≫ Normal
   21. Wait for the text to stop scrolling and press Enter
   22. Run the following command to change/set the root password
         passwd
   23. Type a new root password twice to set it
   24. Continue the configuration by running the following commands
         # set the lan ip address
         uci set network.lan.ipaddr='192.168.0.251'
         # restart network services
         service network restart
         # update openwrt packages
         opkg update
         # install the luci web ui
         opkg install luci
   25. Open a web browser and navigate to http://IPofVM, http://192.168.0.251 in the example
   26. At the login screen, enter the username root and the password set above ≫ Click the Login button
   27. Enjoy OpenWRT running in VirtualBox
 
Further reading  https://openwrt.org/docs/guide-user/virtualization/virtualbox-vm
 


### Connect with me and others ###
★ Discord: https://discord.com/invite/EzenvmSHW8
★ Reddit: https://reddit.com/r/i12bretro
★ Twitter: https://twitter.com/i12bretro







Tags:
Can You Virtualize OpenWRT
Free Software
Home Lab
Home Lab Ideas
Homelab
Homelab Ideas
How To
Hypervisor
Install Guide
Linux
Networking
OpenWRT
OpenWRT Virtual Machine
OpenWRT VirtualBox
OpenWRT VM
Router
Tutorial
VM Router
Virtual Machine
Virtual Router
VirtualBox
VirtualBox VM
Virtualization
Virtualize OpenWRT Router
Virtualize OpenWRT
X86
i12bretro