On 7/5/25 2:23 PM, Marc Chantreux wrote:
hello,
As I have hardware no more to run an openBSD box, I would like to run a
VM from qemu host (debian 13).
qemu-img create ocean.qcow2 2G
set https://cdn.openbsd.org/pub/OpenBSD/7.7/amd64/miniroot77.img
wget $1
qemu-system-amd64 -hda ${1##*/} -hdb ocean.qcow2 -nographic
# also tried with install77.iso
# qemu-system-amd64 -cdrom install77.iso -hda ocean.qcow2 -nographic
I get this:
----------------------------------------------------------------------
SeaBIOS (version 1.16.3-debian-1.16.3-2)
Booting from Hard Disk...
Using drive 0, partition 3.
Loading......
probing: pc0 com0 mem[639K 126M a20=on]
disk: fd0 hd0+ hd1+*
OpenBSD/amd64 BOOT 3.67
boot>
cannot open hd0a:/etc/random.seed: No such file or directory
booting hd0a:/bsd: 4232111+1745920+3887480+0+716800 [109+483816+334631]=0xae2100
entry point at 0xffffffff8100100
----------------------------------------------------------------------
I first tried to see if there was a way to fix it but nothing seems to
be mounted. Found nothing in the FAQ and not much but dead end posts
from google. now I'm not even sure were to ask for help as it seems to
be really related to the relation between openbsd and qemu.
anyone to help me on this?
regards
marc
Other people may have mentioned this...
Something in the environment is bad.
The kernel doesn't see a machine it can work with.
Check the qemu settings/configuration (double check x86/amd64).
Check what BIOS image qemu is handing to the kernel.
Check to be sure the memory assigned is at least (say) 512MB.
The suggestion to use virtio is very good. Many people use those drivers.
hth
geoff steckel