hello everyone and thank you so much for your help!

On Sat, Jul 05, 2025 at 06:16:08PM -0700, Mike Larkin wrote:
> boot> set tty com0
> boot> boot

that is the thing I missed but I'm really happy I did it because
I took all your feedbacks to achieve the installation with the
procedure below.

regards

--- starting point  ------------------

* Linux 6.12.27-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.27-1 (2025-05-06) 
x86_64 GNU/Linux
* I use no network manager of any kind. just iproute2
* qemu-utils and qemu-system-x86 installed

--- allow qemu to use br0 ------------------

mkdir -p /etc/qemu
echo allow br0 >> /etc/qemu/bridge.conf

--- network setup script ------------------

# eth0 is wired to the internet box (router, dhcp server and port forwarding)
# this is a simplified version of the script I use. feedbacks are
# welcome and I can provide assistance for troubleshouting

# 02:XX:XX:XX:XX:XX is for private mac addrs
# 02:00:00:00:00:00 is the mac addr you will use to setup DHCP static leases
# from your internet box

<<% ip -b -
link add name br0 type bridge
link set br0 address 02:00:00:00:00:00

link set eth0 master br0
link set eth0 up
link set br0  up
%
dhclient br0

--- install OpenBSD ----------------------

wget https://cdn.openbsd.org/pub/OpenBSD/7.7/amd64/miniroot77.img 
qemu-img create -f qcow2 ocean.qcow2 5G

net='
        -net nic,model=virtio
        -net bridge,br=br0
'
ocean=-drive file=ocean.qcow2,if=virtio,format=qcow2
disks="-drive file=iso/miniroot77.img,if=virtio,format=raw $ocean"
qemu='
        qemu-system-amd64
        -enable-kvm
        -nographic
        -m 2G
'
$qemu $net $disks

# when the boot prompt is available, type
# boot> set tty com0
# boot> boot
# answer the questions
# to setup an http source:
# ? to get the list of the sources
# then select the repo by its number

--- run your OpenBSD machine ----------------------
# I do it from a tmux pane so I can watch/use the console

$qemu $net $disks

-- 
Marc Chantreux

Attachment: signature.asc
Description: PGP signature

Reply via email to