OpenWRT on ESXi
This guide is primarily made for Windows, but Linux users can surely adapt
Tested and confirmed working on ESXi 6.7 U3 (Build 14320388) using ‘ESXi 6.7 U2 virtual machine’ compatibility level and OpenWrt 24.10.2.
It may work on later versions of ESXi and/or OpenWrt, but this configuration is verified.
Preparation
- Download an x86/64 OpenWRT image: → https://firmware-selector.openwrt.org/ → Type
x86/64in the'Model' field - Unzip the downloaded file to extract the
.imgfile - Required tools:
- qemu-img – for resizing and converting disk images
- WinSCP – for transferring files to ESXi
- SSH-capable terminal (e.g. PuTTY, WinCRT, or Windows Terminal) → Windows SSH guide
Create VM in ESXi (BIOS Firmware Only)
Note: EFI Firmware does 'not' work with OpenWRT in this setup.
- Name:
[vm_name] - Datastore:
[datastore] - Guest OS:
Other 4.x or later Linux (64-bit) - Compatibility:
ESXi 6.7 U2 virtual machine - vCPUs: 2
- Memory: 256 MB
- Network Adapters:
- Adapter 1:
[LAN_portgroup], Type: VMXNET 3 - Adapter 2:
[WAN_portgroup], Type: VMXNET 3
- SCSI Controller: VMware Paravirtual
Required: Remove the suggested Disk (You will add one later).
Optional: Remove USB controller, CD-ROM drive, and SATA controller from VM hardware — they’re not needed for OpenWRT and simplify the configuration.
Disk Preparation (on Windows)
Run the following commands:
qemu-img resize -f raw openwrt.img 128M qemu-img convert -f raw -O vmdk -o adapter_type=lsilogic openwrt.img openwrt-esxi.vmdk
- Copy
openwrt-esxi.vmdkto ESXi using WinSCP → Preferably into the VM’s directory
Disk Import (on ESXi via SSH)
Make sure SSH and ESXi Shell services are enabled on ESXi. Then run:
vmkfstools -i openwrt-esxi.vmdk openwrt.vmdk -d thin
- Attach
openwrt.vmdkto the VM via Paravirtual SCSI controller
Boot & Network Check
Start the VM and launch the console. Run:
ip a s dev eth1 ip a s dev br-lan
eth1should get a DHCP IP (WAN) → If not, swap the NIC portgroups in VM settingsbr-lanhas static IP:192.168.1.1→ This is the address for OpenWRT’s web interface
Connectivity Test
Run:
ping -c 5 8.8.8.8
- If you get replies, internet is working
- If not, troubleshoot your network config
Install VMware Tools
Run:
opkg update
opkg install open-vm-tools
Final Step
You should now be ready to access the OpenWrt configuration pages with your favourite browser at http://192.168.1.1
Default login: no password — just click 'Login'
DONE – ENJOY :-)
Feedback
Suggestions, corrections, or improvements are always welcome.
If you’ve tested this guide on ESXi 6.7 U3, or other versions, and have tips to enhance it, I’d love to hear from you.
Feel free to send feedback to: 'thevancouverman(at)hotmail(dot)com'