Skip to content

Instantly share code, notes, and snippets.

@usoleg
Forked from ch4r13/openwrt-on-proxmox.md
Last active November 24, 2025 09:38
Show Gist options
  • Select an option

  • Save usoleg/5fcd56b8bf7c804de8870a65a02f1213 to your computer and use it in GitHub Desktop.

Select an option

Save usoleg/5fcd56b8bf7c804de8870a65a02f1213 to your computer and use it in GitHub Desktop.
How to set up an OpenWRT VM in Proxmox
  1. Go to OpenWRT release page, select the latest release stable release, then targets -> x86 -> 64. Right-click generic-ext4-combined.img.gz (not the "efi"!) and copy the link.

  2. On the Proxmox host, download the archive and unpack it:

wget *paste link here*
gunzip openwrt-*.img.gz
  1. Resize the image to be the size you want your VM's disk to be (example with 8 GiB):
qemu-img resize -f raw openwrt-*.img 8G
  1. Create a new VM in Proxmox. Make sure to use:
  • No installation media
  • SeaBIOS
  • No drives

Do not start the VM yet.

  1. Import the resized OpenWRT image into the new VM (replace VMID and STORAGEID with yours):
qm importdisk VMID openwrt-*.img STORAGEID

qm disk import 260 /var/lib/vz/template/iso/openwrt-24.10.4-x86-64-generic-ext4-combined.img local-lvm
  1. Go to the VM -> Hardware, select the newly imported disk named "Unused Disk 0", press "Edit", set it to VirtIO with "Discard" and "IO Thread" enabled, then press OK.

  2. Go to the VM -> Options -> Boot Order, make sure that virtio0 is at the top and is the only one that is ticked.

  3. Add whatever networking or other devices you need.

  4. You're done! Start the VM and enjoy all the routing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment