summaryrefslogtreecommitdiff
path: root/posts
diff options
context:
space:
mode:
authorStefan Kreutz <mail@skreutz.com>2022-03-17 11:30:40 +0100
committerStefan Kreutz <mail@skreutz.com>2022-03-17 11:30:40 +0100
commit2746e74bf9a2105a53d92eee8dec1bc5197a868c (patch)
tree77964bd2f57303cdd71bc3b3a2ed576486fc38e3 /posts
parentc3ca2fe0d0341c45132f9835778dae1ea9bd6afa (diff)
downloadblog-2746e74bf9a2105a53d92eee8dec1bc5197a868c.tar
Update qemu post for OpenBSD 7.0
Diffstat (limited to 'posts')
-rw-r--r--posts/autoinstall-openbsd-on-qemu.md20
1 files changed, 20 insertions, 0 deletions
diff --git a/posts/autoinstall-openbsd-on-qemu.md b/posts/autoinstall-openbsd-on-qemu.md
index 9868879..ac1e985 100644
--- a/posts/autoinstall-openbsd-on-qemu.md
+++ b/posts/autoinstall-openbsd-on-qemu.md
@@ -2,6 +2,14 @@
title: Auto-install OpenBSD on QEMU
description: How to perform an unattended installation of OpenBSD on the QEMU virtual machine monitor.
published: 2020-07-22
+updated: 2022-03-17
+---
+
+**Update** 17 March 2022:
+Starting with OpenBSD 7.0, [autoinstall(8)](https://man.openbsd.org/OpenBSD-7.0/autoinstall) no longer respects the *TFTP server name* option used below.
+I've added updated instructions at the end of this post.
+Thanks for reporting the issue, Benjamin.
+
---
I happen to develop a pet project of mine on a Linux desktop, while actually targeting an [OpenBSD](https://www.openbsd.org/) server.
@@ -224,6 +232,18 @@ For example, I use a simple, yet [complete POSIX shell script](/files/autoinstal
In fact, I have written another script to install and test the said pet project of mine as well.
But this is out of scope here.
+## Errata
+
+Starting with OpenBSD 7.0, [autoinstall(8)](https://man.openbsd.org/OpenBSD-7.0/autoinstall) no longer respects the *TFTP server name* option used below.
+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, change the response file to point at 10.0.2.2 instead of 10.0.2.1, and remove the now obsolete TFTP server name option and the guest forwarding from the QEMU invocation.
+
+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 QEMU rejects this as an invalid forwarding rule.
+
+
[^signify-portable]:
We use Adrian Perez' [portable version](https://github.com/aperezdc/signify) of OpenBSD's [signify(1)](https://man.openbsd.org/OpenBSD-6.7/signify) here.
Generated by cgit. See skreutz.com for my tech blog and contact information.