back OpenBSD Proxmox template with QEMU Guest Agent
comp
publication: Outubro 23 2025 08:40
last update: Outubro 23 2025 08:40
Complete the install process and before reboot open a shell. You should
have the installed system mounted at /mnt. Use ed to edit the
files below.
# ed /mnt/etc/rc.firsttime
485
1
/usr/sbin/fw_update
a
/usr/sbin/pkg_add qemu-ga
.
wq
# ed /mnt/etc/rc.conf.local
/mnt/etc/rc.conf.local: No such file or directory
a
qemu_ga_flags=-t /var/run/qemu-ga -f /var/run/qemu-ga/qemu-ga.pid -m isa-serial -p /dev/cua00
pkg_scripts=qemu_ga
.
wq
This will make OpenBSD install qemu-ga package on the first boot and
start the daemon on every boot with the flags recommanded by the package
readme file. Exit the shell and turn off the vm.
Change the Guest Agent configuration at Proxmox (Options->QEMU Guest Agent->Advanced on the web interface) to type ISA. It is equivalent to set following line in the vm configuration file:
agent: 1,type=isa
Convert the vm to template and it is done.
Source:
1. https://cvsweb.openbsd.org/cgi-bin/cvsweb/ports/emulators/qemu/pkg/README-ga?rev=1.1&content-type=text/x-cvsweb-markup
2. https://undeadly.org/cgi?action=article;sid=20200514073852