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.
x86/64 in the 'Model' field.img file
Note: EFI Firmware does 'not' work with OpenWRT in this setup.
[vm_name][datastore]Other 4.x or later Linux (64-bit)ESXi 6.7 U2 virtual machine[LAN_portgroup], Type: VMXNET 3[WAN_portgroup], Type: VMXNET 3
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.
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
openwrt-esxi.vmdk to ESXi using WinSCP → Preferably into the VM’s directoryMake sure SSH and ESXi Shell services are enabled on ESXi. Then run:
vmkfstools -i openwrt-esxi.vmdk openwrt.vmdk -d thin
openwrt.vmdk to the VM via Paravirtual SCSI controllerStart the VM and launch the console. Run:
ip a s dev eth1 ip a s dev br-lan
eth1 should get a DHCP IP (WAN) → If not, swap the NIC portgroups in VM settingsbr-lan has static IP: 192.168.1.1 → This is the address for OpenWRT’s web interfaceRun:
ping -c 5 8.8.8.8
Run:
opkg update
opkg install open-vm-tools
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'
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'