Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 12 Feb 2024 10:13:53 +0100
From:      Mario Marietto <marietto2008@gmail.com>
To:        Odhiambo Washington <odhiambo@gmail.com>
Cc:        FreeBSD virtualization <freebsd-virtualization@freebsd.org>
Subject:   Re: OpenBSD vm troubles
Message-ID:  <CA%2B1FSijPBpB82hZyfu5CfQ6iF9yq3zovSXqN%2BBwiYqNxZu%2Bz5w@mail.gmail.com>
In-Reply-To: <CAAdA2WMoU0VuA-GRRga3BmnNjjL0=9U7TQ6vXxkqd7MFLiCwpA@mail.gmail.com>
References:  <CAAdA2WMoU0VuA-GRRga3BmnNjjL0=9U7TQ6vXxkqd7MFLiCwpA@mail.gmail.com>

index | next in thread | previous in thread | raw e-mail

[-- Attachment #1 --]
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.

[-- Attachment #2 --]
<div dir="ltr"><div>Try this :</div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">bhyve -S -c sockets=4,cores=2,threads=2 -m 8G -w -H -A \
</span><br>-s 0,hostbridge \
<br>-s 1,ahci-hd,/home/marietto/Desktop/Files/OS/BSD/ISO/install74.img,bootindex=1 \
<br>-s 2,ahci-hd,/mnt/zroot2/zroot2/OS/BSD/openbsd74.img \
<br>-s 3,fbuf,tcp=<a href="http://0.0.0.0:5915">0.0.0.0:5915</a>,w=1600,h=950 \
<br>-s 31,lpc \
<br>-l bootrom,/usr/local/share/uefi-firmware/BHYVE_BHF_CODE.fd \
<br>vm15 &lt; /dev/null &amp; sleep 2 &amp;&amp; vncviewer 0:15</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">the installer starts,but you will not have the network interface. Unfortunately,when I add this parameter : <br></span></div><div><br></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">-s 10,virtio-net,tap15 \</span><br></span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">It produced this error :</span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></div><div><span style="font-family:monospace"><span style="color:rgb(0,0,0);background-color:rgb(255,255,255)">Assertion failed: (error == 0), function modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_e</span>mul.c, line 637.<br>
</span></div><div><span style="font-family:monospace"><br></span></div><div><span style="font-family:monospace">probably a bug with the virtio-driver and bhyve on openbsd.<br></span></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Feb 11, 2024 at 7:59 AM Odhiambo Washington &lt;<a href="mailto:odhiambo@gmail.com">odhiambo@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I am not sure what it is that I am doing wrong, but I am unable to install OpenBSD.<div><br></div><div>Here is how I am invoking the installer:</div><div>```</div><div>bhyve -A -D -H -P -S -u -w -c 8 -m 4G \<br>-s 0,hostbridge \<br>-s 3,ahci-hd,/usr/local/bhyve-vms/.iso/miniroot74.img \<br>-s 4,virtio-blk,/usr/local/bhyve-vms/OpenBSD/openbsd74.img \<br>-s 5,virtio-net,tap1 \<br>-s 8,hda,play=/dev/dsp,rec=/dev/dsp \<br>-s 20,virtio-rnd \<br>-s 29,fbuf,tcp=<a href="http://0.0.0.0:5901" target="_blank">0.0.0.0:5901</a>,w=1680,h=1050,wait \<br>-s 30,xhci,tablet \<br>-s 31,lpc -l com1,stdio \<br>-l bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd \<br>openbsd74</div><div>```</div><div><br></div><div>I end up with:</div><div>```</div><div>probing: pc0 com0 com1 mem[640K 3049M 128K 16M 3M 1024M]<br>disk: hd0 hd1*<br>&gt;&gt; OpenBSD/amd64 BOOTX64 3.65<br>boot&gt;<br>cannot open hd0a:/etc/random.seed: No such file or directory<br>booting hd0a:/bsd: 17163596read text<br> failed(0). will try /bsd<br>boot&gt;<br>cannot open hd0a:/etc/random.seed: No such file or directory<br>booting hd0a:/bsd: 17163596read text<br> failed(0). will try /bsd<br>Turning timeout off.<br>boot&gt;</div><div>```</div><div>Not sure what I need to do for the installer to run.</div><div><br></div><div><br clear="all"><div><br></div><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div dir="ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7 3200 0004/+254 7 2274 3223</div><div><span style="color:rgb(34,34,34)"> In </span><span style="color:rgb(34,34,34)">an Internet failure case, the #1 suspect is a constant: DNS.</span><br>&quot;<span style="font-size:12.8px">Oh, the cruft.</span><span style="font-size:12.8px">&quot;, </span><span style="font-size:12.8px">egrep -v &#39;^$|^.*#&#39; </span><span style="background-color:rgb(34,34,34);color:rgb(238,238,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&quot;,monospace;font-size:13.6px">¯\_(ツ)_/¯</span><span style="font-size:12.8px"> :-)</span></div><div><span style="font-size:12.8px">[How to ask smart questions: </span><span style="font-size:12.8px"><a href="http://www.catb.org/~esr/faqs/smart-questions.html" target="_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span></div></div></div></div></div></div>;
</blockquote></div><br clear="all"><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature">Mario.<br></div>
help

Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B1FSijPBpB82hZyfu5CfQ6iF9yq3zovSXqN%2BBwiYqNxZu%2Bz5w>