diff options
author | Stefan Kreutz <mail@skreutz.com> | 2023-04-25 10:20:16 +0200 |
---|---|---|
committer | Stefan Kreutz <mail@skreutz.com> | 2023-04-25 10:20:16 +0200 |
commit | 48d0eab5eef7fb9dd30ba817508bf8096ed6368e (patch) | |
tree | 8322335d630a7bda6f4c05d9f2b4773cb1aac95b | |
parent | 981e6c987d6188557a76103afa5388420ee84839 (diff) | |
download | autoinstall-openbsd-on-qemu-dev.tar |
Note problem with TFTP server name optiondev
-rw-r--r-- | README.md | 16 | ||||
-rwxr-xr-x | autoinstall-openbsd-on-qemu | 1 |
2 files changed, 16 insertions, 1 deletions
@@ -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 \ |