Re: OpenBSD vm troubles

From: Mario Marietto <marietto2008_at_gmail.com>
Date: Mon, 12 Feb 2024 09:13:53 UTC
Try this :

bhyve -S -c sockets=4,cores=2,threads=2 -m 8G -w -H -A \
-s 0,hostbridge \
-s
1,ahci-hd,/home/marietto/Desktop/Files/OS/BSD/ISO/install74.img,bootindex=1
\
-s 2,ahci-hd,/mnt/zroot2/zroot2/OS/BSD/openbsd74.img \
-s 3,fbuf,tcp=0.0.0.0:5915,w=1600,h=950 \
-s 31,lpc \
-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
vm15 < /dev/null & sleep 2 && vncviewer 0:15

the installer starts,but you will not have the network interface.
Unfortunately,when I add this parameter :

-s 10,virtio-net,tap15 \

It produced this error :

Assertion failed: (error == 0), function modify_bar_registration, file
/usr/src/usr.sbin/bhyve/pci_emul.c, line 637.

probably a bug with the virtio-driver and bhyve on openbsd.

On Sun, Feb 11, 2024 at 7:59 AM Odhiambo Washington <odhiambo@gmail.com>
wrote:

> I am not sure what it is that I am doing wrong, but I am unable to install
> OpenBSD.
>
> Here is how I am invoking the installer:
> ```
> bhyve -A -D -H -P -S -u -w -c 8 -m 4G \
> -s 0,hostbridge \
> -s 3,ahci-hd,/usr/local/bhyve-vms/.iso/miniroot74.img \
> -s 4,virtio-blk,/usr/local/bhyve-vms/OpenBSD/openbsd74.img \
> -s 5,virtio-net,tap1 \
> -s 8,hda,play=/dev/dsp,rec=/dev/dsp \
> -s 20,virtio-rnd \
> -s 29,fbuf,tcp=0.0.0.0:5901,w=1680,h=1050,wait \
> -s 30,xhci,tablet \
> -s 31,lpc -l com1,stdio \
> -l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \
> openbsd74
> ```
>
> I end up with:
> ```
> probing: pc0 com0 com1 mem[640K 3049M 128K 16M 3M 1024M]
> disk: hd0 hd1*
> >> OpenBSD/amd64 BOOTX64 3.65
> boot>
> cannot open hd0a:/etc/random.seed: No such file or directory
> booting hd0a:/bsd: 17163596read text
>  failed(0). will try /bsd
> boot>
> cannot open hd0a:/etc/random.seed: No such file or directory
> booting hd0a:/bsd: 17163596read text
>  failed(0). will try /bsd
> Turning timeout off.
> boot>
> ```
> Not sure what I need to do for the installer to run.
>
>
>
> --
> Best regards,
> Odhiambo WASHINGTON,
> Nairobi,KE
> +254 7 3200 0004/+254 7 2274 3223
>  In an Internet failure case, the #1 suspect is a constant: DNS.
> "Oh, the cruft.", egrep -v '^$|^.*#' ¯\_(ツ)_/¯ :-)
> [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
>


-- 
Mario.