-
Go to OpenWRT release page, select the latest release stable release, then
targets
->x86
->64
. Right-clickgeneric-ext4-combined.img.gz
(not the "efi"!) and copy the link. -
On the Proxmox host, download the archive and unpack it:
wget *paste link here*
gunzip openwrt-*.img.gz
- 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
- Create a new VM in Proxmox. Make sure to use:
- No installation media
- SeaBIOS
- No drives
Do not start the VM yet.
- Import the resized OpenWRT image into the new VM (replace VMID and STORAGEID with yours):
qm importdisk VMID openwrt-*.img STORAGEID
-
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.
-
Go to the VM -> Options -> Boot Order, make sure that
virtio0
is at the top and is the only one that is ticked. -
Add whatever networking or other devices you need.
-
You're done! Start the VM and enjoy all the routing.
Hello! I've faced a quite difficult task. I have a x86 machine, I want to setup proxmox and openwrt in it as a vm/ct. Main problem is, I want openwrt to be as gateway router for the network and for the proxmox host (and other virtualised machines). Does anyone know how to correctly setup proxmox and openwrt to work the way I want?