Modern day OpenBSD has qemu-ga as a package on its own. This introduces that:
https://undeadly.org/cgi?action=article;sid=20200514073852
But there has been more work since. It still revolves around this simple conf tweak:
agent: 1,type=isa
$ cat /etc/qemu/qemu-ga.conf
[general]
daemonize = 1
pidfile = /var/run/qemu-ga.pid
verbose = 1
method = isa-serial
path = /dev/cua01
statedir = /var/run
This config works for me on an OpenBSD 7.0 amd64 guest.
Note it does presume 'serial0: ' exists, so the next com port is for the guest agent:
...
isa0 at pcib0
isadma0 at isa0
fdc0 at isa0 port 0x3f0/6 irq 6 drq 2
com0 at isa0 port 0x3f8/8 irq 4: ns16550a, 16 byte fifo
com0: console
com1 at isa0 port 0x2f8/8 irq 3: ns16550a, 16 byte fifo
...
I know this is a very big delay from your earlier posts, and perhaps you've discovered this in the interum, but .. in case not ..