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>

next in thread | previous in thread | raw e-mail | index | archive | help
--00000000000088dc3306112bb4ba
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Try this :

bhyve -S -c sockets=3D4,cores=3D2,threads=3D2 -m 8G -w -H -A \
-s 0,hostbridge \
-s
1,ahci-hd,/home/marietto/Desktop/Files/OS/BSD/ISO/install74.img,bootindex=
=3D1
\
-s 2,ahci-hd,/mnt/zroot2/zroot2/OS/BSD/openbsd74.img \
-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D1600,h=3D950 \
-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 =3D=3D 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=E2=80=AFAM Odhiambo Washington <odhiambo@gmail=
.com>
wrote:

> I am not sure what it is that I am doing wrong, but I am unable to instal=
l
> 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=3D/dev/dsp,rec=3D/dev/dsp \
> -s 20,virtio-rnd \
> -s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1680,h=3D1050,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 '^$|^.*#' =C2=AF\_(=E3=83=84)_/=C2=AF :-)
> [How to ask smart questions:
> http://www.catb.org/~esr/faqs/smart-questions.html]
>


--=20
Mario.

--00000000000088dc3306112bb4ba
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Try this :</div><div><br></div><div><span style=3D"fo=
nt-family:monospace"><span style=3D"color:rgb(0,0,0);background-color:rgb(2=
55,255,255)">bhyve -S -c sockets=3D4,cores=3D2,threads=3D2 -m 8G -w -H -A \
</span><br>-s 0,hostbridge \
<br>-s 1,ahci-hd,/home/marietto/Desktop/Files/OS/BSD/ISO/install74.img,boot=
index=3D1 \
<br>-s 2,ahci-hd,/mnt/zroot2/zroot2/OS/BSD/openbsd74.img \
<br>-s 3,fbuf,tcp=3D<a href=3D"http://0.0.0.0:5915">0.0.0.0:5915</a>,w=3D16=
00,h=3D950 \
<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=3D"font-family:monospace"><br></span></div><div><span sty=
le=3D"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=3D"font-family:monospace"><span style=
=3D"color:rgb(0,0,0);background-color:rgb(255,255,255)">-s 10,virtio-net,ta=
p15 \</span><br></span></div><div><span style=3D"font-family:monospace"><br=
></span></div><div><span style=3D"font-family:monospace"><span style=3D"col=
or:rgb(0,0,0);background-color:rgb(255,255,255)">It produced this error :</=
span></span></div><div><span style=3D"font-family:monospace"><span style=3D=
"color:rgb(0,0,0);background-color:rgb(255,255,255)"><br></span></span></di=
v><div><span style=3D"font-family:monospace"><span style=3D"color:rgb(0,0,0=
);background-color:rgb(255,255,255)">Assertion failed: (error =3D=3D 0), fu=
nction modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_e</span>mu=
l.c, line 637.<br>
</span></div><div><span style=3D"font-family:monospace"><br></span></div><d=
iv><span style=3D"font-family:monospace">probably a bug with the virtio-dri=
ver and bhyve on openbsd.<br></span></div></div><br><div class=3D"gmail_quo=
te"><div dir=3D"ltr" class=3D"gmail_attr">On Sun, Feb 11, 2024 at 7:59=E2=
=80=AFAM Odhiambo Washington &lt;<a href=3D"mailto:odhiambo@gmail.com">odhi=
ambo@gmail.com</a>&gt; wrote:<br></div><blockquote class=3D"gmail_quote" st=
yle=3D"margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padd=
ing-left:1ex"><div dir=3D"ltr">I am not sure what it is that I am doing wro=
ng, 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/.is=
o/miniroot74.img \<br>-s 4,virtio-blk,/usr/local/bhyve-vms/OpenBSD/openbsd7=
4.img \<br>-s 5,virtio-net,tap1 \<br>-s 8,hda,play=3D/dev/dsp,rec=3D/dev/ds=
p \<br>-s 20,virtio-rnd \<br>-s 29,fbuf,tcp=3D<a href=3D"http://0.0.0.0:590=
1" target=3D"_blank">0.0.0.0:5901</a>,w=3D1680,h=3D1050,wait \<br>-s 30,xhc=
i,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><d=
iv>I end up with:</div><div>```</div><div>probing: pc0 com0 com1 mem[640K 3=
049M 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 dir=
ectory<br>booting hd0a:/bsd: 17163596read text<br>=C2=A0failed(0). will try=
 /bsd<br>boot&gt;<br>cannot open hd0a:/etc/random.seed: No such file or dir=
ectory<br>booting hd0a:/bsd: 17163596read text<br>=C2=A0failed(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 cl=
ear=3D"all"><div><br></div><span class=3D"gmail_signature_prefix">-- </span=
><br><div dir=3D"ltr" class=3D"gmail_signature"><div dir=3D"ltr"><div dir=
=3D"ltr"><div>Best regards,<br>Odhiambo WASHINGTON,<br>Nairobi,KE<br>+254 7=
 3200 0004/+254 7 2274 3223</div><div><span style=3D"color:rgb(34,34,34)">=
=C2=A0In=C2=A0</span><span style=3D"color:rgb(34,34,34)">an Internet failur=
e case, the #1 suspect is a constant: DNS.</span><br>&quot;<span style=3D"f=
ont-size:12.8px">Oh, the cruft.</span><span style=3D"font-size:12.8px">&quo=
t;,=C2=A0</span><span style=3D"font-size:12.8px">egrep -v &#39;^$|^.*#&#39;=
=C2=A0</span><span style=3D"background-color:rgb(34,34,34);color:rgb(238,23=
8,238);font-family:&quot;Lucida Console&quot;,Consolas,&quot;Courier New&qu=
ot;,monospace;font-size:13.6px">=C2=AF\_(=E3=83=84)_/=C2=AF</span><span sty=
le=3D"font-size:12.8px">=C2=A0:-)</span></div><div><span style=3D"font-size=
:12.8px">[How to ask smart questions:=C2=A0</span><span style=3D"font-size:=
12.8px"><a href=3D"http://www.catb.org/~esr/faqs/smart-questions.html" targ=
et=3D"_blank">http://www.catb.org/~esr/faqs/smart-questions.html</a>]</span=
></div></div></div></div></div></div>
</blockquote></div><br clear=3D"all"><br><span class=3D"gmail_signature_pre=
fix">-- </span><br><div dir=3D"ltr" class=3D"gmail_signature">Mario.<br></d=
iv>

--00000000000088dc3306112bb4ba--



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