Last active
July 20, 2025 12:23
Revisions
-
subrezon revised this gist
Nov 18, 2024 . 1 changed file with 6 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -21,14 +21,16 @@ qemu-img resize -f raw openwrt-*.img 8G Do not start the VM yet. 5) Import the resized OpenWRT image into the new VM (replace VMID and STORAGEID with yours): ``` qm importdisk VMID openwrt-*.img STORAGEID ``` 6) 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. 7) Go to the VM -> Options -> Boot Order, make sure that ```virtio0``` is at the top and is the only one that is ticked. 8) Add whatever networking or other devices you need. 9) You're done! Start the VM and enjoy all the routing. -
subrezon created this gist
Feb 15, 2023 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ 1) Go to OpenWRT [release page](https://downloads.openwrt.org/releases/), 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 ``` 3) 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 ``` 4) Create a new VM in Proxmox. Make sure to use: * No installation media * SeaBIOS * No drives Do not start the VM yet. 5) Import the resized OpenWRT image into the new VM: ``` qm importdisk *VMID* openwrt-*.img *STORAGEID* ``` 6) 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. 7) Add whatever networking or other devices you need. 8) You're done! Start the VM and enjoy all the routing.