| Both sides previous revision Previous revision | Next revisionBoth sides next revision |
| inbox:howto:setting_up_openwrt_to_serve_archlinux_netboot [2023/02/15 18:13] – Clarifying tobixen | inbox:howto:setting_up_openwrt_to_serve_archlinux_netboot [2023/02/15 18:16] – The code markup tags should not be used for inline code blocks tobixen |
|---|
| (Obviously, my openwrt device has local IPv4-adress 192.168.1.1. Note that [[docs:guide-user:services:tftp.pxe-server]] section 3 specifies that some devices may need some extra code in the boot-section) | (Obviously, my openwrt device has local IPv4-adress 192.168.1.1. Note that [[docs:guide-user:services:tftp.pxe-server]] section 3 specifies that some devices may need some extra code in the boot-section) |
| |
| It's needed to do <code>/etc/init.d/dnsmasq restart</code> to let the changes take effect. And that's all. Considering all the mess one needs to get through to set up a working DHCP and TFTP on a Linux server, this is very easy. | It's needed to do ''/etc/init.d/dnsmasq restart'' to let the changes take effect. And that's all. Considering all the mess one needs to get through to set up a working DHCP and TFTP on a Linux server, this is very easy. |
| |
| ===== Obtaining the archlinux.pxe file ===== | ===== Obtaining the archlinux.pxe file ===== |
| The Archlinux wiki has a page https://wiki.archlinux.org/title/Netboot describing how to boot Archlinux from the Internet. It reads "Netboot images are small (< 1 MiB) images that can be used to download the latest Arch Linux release on the fly upon system boot" and points to the download page https://archlinux.org/releng/netboot/. It also says "You need sufficient memory (probably 1.5GiB or even more) to store and run the live system, otherwise you may get a kernel panic on boot". If you have less memory than that, there are certainly smaller images that can be loaded - check up https://netboot.xyz | The Archlinux wiki has a page https://wiki.archlinux.org/title/Netboot describing how to boot Archlinux from the Internet. It reads "Netboot images are small (< 1 MiB) images that can be used to download the latest Arch Linux release on the fly upon system boot" and points to the download page https://archlinux.org/releng/netboot/. It also says "You need sufficient memory (probably 1.5GiB or even more) to store and run the live system, otherwise you may get a kernel panic on boot". If you have less memory than that, there are certainly smaller images that can be loaded - check up https://netboot.xyz |
| |
| Run <code>df -h</code> to check if there is enough disk space. On my device, I can see that <code>/</code> is an overlay file system consisting of a 4 MB ROM system that is 100% full, and an overlay file system with 8 MB free space on the overlay partition - so the netboot image will fit. If you want to use an external USB-device then read [[docs:guide-user:services:tftp.pxe-server]] on how to do that. | Run ''df -h'' to check if there is enough disk space. On my device, I can see that ''/'' is an overlay file system consisting of a 4 MB ROM system that is 100% full, and an overlay file system with 8 MB free space on the overlay partition - so the netboot image will fit. If you want to use an external USB-device then read [[docs:guide-user:services:tftp.pxe-server]] on how to do that. |
| |
| I've specified above that tftp will find images through /tftp, so we need to create this: | I've specified above that tftp will find images through /tftp, so we need to create this: |