From 48d0eab5eef7fb9dd30ba817508bf8096ed6368e Mon Sep 17 00:00:00 2001 From: Stefan Kreutz Date: Tue, 25 Apr 2023 10:20:16 +0200 Subject: Note problem with TFTP server name option --- README.md | 16 ++++++++++++++++ autoinstall-openbsd-on-qemu | 1 - 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4bf93b5..590090b 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,19 @@ # Auto-install OpenBSD on QEMU See [blog post](https://www.skreutz.com/posts/autoinstall-openbsd-on-qemu/). + +## Errata + +Starting with OpenBSD 7.0, autoinstall(8) no longer respects the TFTP server +name option. Instead, it uses the next-server DHCP option. Thus, the installer +tries to fetch the response file from the QEMU host at +http://10.0.2.2/install.conf. + +To fix that, you can serve the mirror on port 80 instead of 8080 as follows: + + $ python3 -m http.server --directory mirror --bind 127.0.0.1 8080 + $ sudo socat tcp-listen:80,reuseaddr,fork tcp:localhost:8080 + +Of course, binding to port 80 requires root privileges. I think it should be +possible to avoid that using a corresponding guest forwarding from +tcp:10.0.2.2:80 to tcp:10.0.2.2:8080 but I failed to make that work. diff --git a/autoinstall-openbsd-on-qemu b/autoinstall-openbsd-on-qemu index 38692e7..6f90289 100755 --- a/autoinstall-openbsd-on-qemu +++ b/autoinstall-openbsd-on-qemu @@ -215,7 +215,6 @@ do done # Auto-install OpenBSD. -# TODO: Forward host (10.0.2.2) port 80 to host port 8080, and adapt the above check printf "Starting virtual machine ...\\n" qemu-system-x86_64 \ -enable-kvm \ -- cgit v1.2.3