The sysutils/qobsd port
qobsd-0.0.0pl20261122 – manage OpenBSD VMs under QEMU for multiple architectures (cvsweb github mirror)
Description
manage OpenBSD VMs under QEMU for multiple architecturesWWW: https://github.com/catap/qobsd
Readme
+-------------------------------------------------------------------------------
| Running ${PKGSTEM} on OpenBSD
+-------------------------------------------------------------------------------
Running a guest with SSH forwarding
===================================
The package provides a qobsd_ service and login class for each
supported guest architecture. This example installs an HPPA snapshot
in /var/vm/hppa.qcow2.
# su -c qobsd_hppa -s /bin/sh _vmd ${LOCALBASE}/bin/qobsd \
-d /var/vm -m -s hppa
After installation, enable and start qobsd_hppa with SSH forwarded
from 127.0.0.1:2201 to the guest.
# rcctl enable qobsd_hppa
# rcctl set qobsd_hppa flags -p 2201 hppa
# rcctl start qobsd_hppa
Connect using an account on the guest.
$ ssh -p 2201 user@127.0.0.1
On the host, attach to the guest's console with tmux.
$ doas -u _vmd tmux -N -S /var/vm/qobsd_hppa.sock attach-session
To connect through somehost.home.arpa, add these entries to
~/.ssh/config on the client. The qobsd account in the guest must
authorize the bundled public key.
Host qobsd-hppa.somehost.home.arpa
HostKeyAlias qobsd-hppa.somehost.home.arpa
Port 2201
Host qobsd-*.somehost.home.arpa
ProxyJump somehost.home.arpa
HostName 127.0.0.1
User qobsd
IdentityFile /usr/local/share/examples/qobsd/qobsd_ed25519.pem
Connect using the host alias.
$ ssh qobsd-hppa.somehost.home.arpa
Running three HPPA guests
=========================
Run the installer with -f hppa_2.qcow2 -H qobsd-hppa-2 and then with
-f hppa_3.qcow2 -H qobsd-hppa-3, placing both options before hppa.
Use the same names if the installer asks for a hostname. Each service
needs a link and a matching login class. To add an SSH port, set the
full argument list, including the disk and hostname.
# ln -s ${RCDIR}/qobsd ${RCDIR}/qobsd_hppa_2
# ln -s ${RCDIR}/qobsd ${RCDIR}/qobsd_hppa_3
# sed 's/^qobsd_hppa:/qobsd_hppa_2:/' \
${LOCALBASE}/share/examples/login.conf.d/qobsd_hppa \
> ${SYSCONFDIR}/login.conf.d/qobsd_hppa_2
# sed 's/^qobsd_hppa:/qobsd_hppa_3:/' \
${LOCALBASE}/share/examples/login.conf.d/qobsd_hppa \
> ${SYSCONFDIR}/login.conf.d/qobsd_hppa_3
# rcctl enable qobsd_hppa_2 qobsd_hppa_3
# rcctl set qobsd_hppa_2 flags -f hppa_2.qcow2 \
-H qobsd-hppa-2 -p 2202 hppa
# rcctl set qobsd_hppa_3 flags -f hppa_3.qcow2 \
-H qobsd-hppa-3 -p 2203 hppa
# rcctl start qobsd_hppa_2 qobsd_hppa_3
Connect to 127.0.0.1 on ports 2201, 2202, and 2203.
Maintainer
Kirill A. Korinsky
Categories
Run dependencies
Files
- /etc/login.conf.d/qobsd
- /etc/login.conf.d/qobsd_amd64
- /etc/login.conf.d/qobsd_arm64
- /etc/login.conf.d/qobsd_armv7
- /etc/login.conf.d/qobsd_hppa
- /etc/login.conf.d/qobsd_i386
- /etc/login.conf.d/qobsd_macppc
- /etc/login.conf.d/qobsd_octeon
- /etc/login.conf.d/qobsd_powerpc64
- /etc/login.conf.d/qobsd_riscv64
- /etc/login.conf.d/qobsd_sparc64
- /etc/rc.d/qobsd
- /etc/rc.d/qobsd_amd64
- /etc/rc.d/qobsd_arm64
- /etc/rc.d/qobsd_armv7
- /etc/rc.d/qobsd_hppa
- /etc/rc.d/qobsd_i386
- /etc/rc.d/qobsd_macppc
- /etc/rc.d/qobsd_octeon
- /etc/rc.d/qobsd_powerpc64
- /etc/rc.d/qobsd_riscv64
- /etc/rc.d/qobsd_sparc64
- /usr/local/bin/qobsd
- /usr/local/man/man1/qobsd.1
- /usr/local/share/doc/pkg-readmes/qobsd
- /usr/local/share/examples/login.conf.d/qobsd
- /usr/local/share/examples/login.conf.d/qobsd_amd64
- /usr/local/share/examples/login.conf.d/qobsd_arm64
- /usr/local/share/examples/login.conf.d/qobsd_armv7
- /usr/local/share/examples/login.conf.d/qobsd_hppa
- /usr/local/share/examples/login.conf.d/qobsd_i386
- /usr/local/share/examples/login.conf.d/qobsd_macppc
- /usr/local/share/examples/login.conf.d/qobsd_octeon
- /usr/local/share/examples/login.conf.d/qobsd_powerpc64
- /usr/local/share/examples/login.conf.d/qobsd_riscv64
- /usr/local/share/examples/login.conf.d/qobsd_sparc64
- /usr/local/share/examples/qobsd/
- /usr/local/share/examples/qobsd/disklabel
- /usr/local/share/examples/qobsd/install.conf
- /usr/local/share/examples/qobsd/qobsd_ed25519.pem
- /usr/local/share/examples/qobsd/qobsd_ed25519.pub
- /usr/local/share/examples/qobsd/site.perms
- /usr/local/share/examples/qobsd/site/
- /usr/local/share/examples/qobsd/site/etc/
- /usr/local/share/examples/qobsd/site/etc/doas.conf
- /usr/local/share/examples/qobsd/site/etc/mk.conf
- /usr/local/share/examples/qobsd/site/install.site
- /usr/local/share/examples/qobsd/u-boot-octeon3-qobsd-boot.pflash
- /usr/local/share/examples/qobsd/u-boot-octeon3-qobsd-install.pflash
- /usr/local/share/qobsd/
- /usr/local/share/qobsd/dummy-httpd.sh
- /usr/local/share/qobsd/openbios-ppc-qobsd-ba2f9b9.elf
- /usr/local/share/qobsd/openbios-sparc64-qobsd-daa1b25.elf
- /var/vm/