Skip to content

Configure gxemul and run OpenBSD luna88k on FreeBSD

Kai Nacke edited this page Dec 27, 2023 · 1 revision

gxemul runs best on the *BSD operating systems. I use FreeBSD 14. My configuration uses the tap device on the FreeBSD side.

  • Install package gxemul: pkg install gxemul
  • Add the following lines to /etc/rc.conf:
   cloned_interfaces="bridge0 tap0"
   autobridge_interfaces="bridge0"
   autobridge_bridge0="tap0 em0"
   ifconfig_bridge0="DHCP"
  • Add the following line to /etc/sysctl.conf
   net.link.tap.up_on_open=1
net(
        tapdev("/dev/tap0")
)
machine(
        type("luna88k")
        subtype("luna-88k")
        disk("liveimage-luna88k-raw-20231016.img")
        load("boot")
)
  • You can then start OpenBSD with the command:
  gxemul @ lunam88k.cfg
  • Login to OpenBSD
    • Enable sshd by comment out the line sshd_flags=NO in file rc.conf.local
    • Configure network by changing the content of file /etc/hostname.le0 to inet autoconf

You are now able to boot OpenBSD/lunam88k and ssh into it.

Clone this wiki locally