Enter desired OpenWRT release version (hit enter for latest snapshot)
Modify partition sizes or keep OpenWRT defaults? [y/n] (Y = follow the prompts)
Enter an image filename tag (to uniquely identify your new image)
Optional: Convert OWRT images to VM disk? [y/n] (Y = select a VM format: qcow2, qed, vdi, vhdx or vmdk)
Optional: Permanently bake custom OpenWRT config files into the new OWRT image
When the script completes, new images are located at $(pwd)/openwrt_build_output/firmware_images
, and corresponding VM images at $(pwd)openwrt_build_output/vm
.
Any recent x86 Debian-flavored OS with the sudo package installed. All other image building dependencies are automatically installed on first run. Windows subsystem for Linux users see here: https://openwrt.org/docs/guide-developer/toolchain/wsl
📥 Download the image builder script and make it executable:
chmod +x x86-imagebuilder.sh
🛠️ Customize your package recipie in the CUSTOM_PACKAGES
section. The included list of packages are examples and can be edited. If you have issues building, check the build output for package conflicts.
▶️ Run the script without sudo (it will prompt for sudo) and follow the prompts:
./x86-imagebuilder.sh
VMware ESXi users see here for extra required steps.
It is possible to add a third persistent EXT4 data partition that, unike resized partitions, won't be wiped by sysupgrade.
$(pwd)/openwrt_inject_files
when prompted.