Sunday, November 15, 2020

Re: OpenBSD 6.8 (release) guest (qemu/kvm) on Linux 5.9 host (amd64) fails with protection fault trap

On 15/11/2020 18:20, Gabriel Garcia wrote:
> Hi,
>
> I would like to run OpenBSD as stated on the subject - I have been able,
> however, to run it successfully with "-cpu Opteron_G2-v1", but I would
> rather use "-cpu host" instead. Also note that on an Intel host, OpenBSD
> appears to work successfully on the same Linux base.
>

Not sure if this answers your question, but this is how I boot OpenBSD
6.6 (...yes!) on kvm/qemu:

#!/bin/sh
qemu-system-x86_64 \
-drive if=virtio,file=/home/oc/VM/img/openbsd.image,index=0,media=disk \
-M q35,accel=kvm -m 250M -cpu host,-kvmclock-stable-bit -smp $(nproc) \
-nic user,hostfwd=tcp:127.0.0.1:5556-:22,model=virtio-net-pci \
-daemonize -display none -vga none \
-serial mon:telnet:127.0.0.1:6666,server,nowait \
-pidfile /home/oc/VM/pid/openbsd-pid

telnet 127.0.0.1 6666


(pay attention to "-kvmclock-stable-bit" otherwise it will crash into a
ddb debug shell)


--
Ottavio Caruso

No comments:

Post a Comment