From nobody Mon Feb 12 09:13:53 2024 X-Original-To: freebsd-virtualization@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TYJgY57kXz59P3c for ; Mon, 12 Feb 2024 09:14:33 +0000 (UTC) (envelope-from marietto2008@gmail.com) Received: from mail-ej1-x62c.google.com (mail-ej1-x62c.google.com [IPv6:2a00:1450:4864:20::62c]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "GTS CA 1D4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TYJgX2NSBz4GY2 for ; Mon, 12 Feb 2024 09:14:32 +0000 (UTC) (envelope-from marietto2008@gmail.com) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmail.com header.s=20230601 header.b=fCaRkvqd; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (mx1.freebsd.org: domain of marietto2008@gmail.com designates 2a00:1450:4864:20::62c as permitted sender) smtp.mailfrom=marietto2008@gmail.com Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-a28a6cef709so389418666b.1 for ; Mon, 12 Feb 2024 01:14:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1707729271; x=1708334071; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=acIZ9XA9Jvv9Ug4Xrn49LHb1v9nYDYtYhvXcxBOdaEI=; b=fCaRkvqdCAMi4TGguYH5hktS+oszVj+HV89a5EGJwfaR0OCLf4jd1C9Rmvt7ZHDTLT vR3oA8PW0fCgdnF5C+dso3e+iS1iogMnZOdhtm4cjdhUi0ilbxx82pQSzOdIDLnKO9SJ kVj53aKWUi6cR4zEzrikel0umo6ZTsgzMNINtAgZra5QPGf0gZF3aHevv5nPMtQ+85a5 ohUjxHw1mdLB84F/OxIyRmQdvm799DhhT2mReDq/tnW7jcG7AXv/srZFtMUbW7o+EiBr WqCxGVFAwzgOmeGEadQB05JCrxXD1T4B9liIF/oCplocDeD5rS2Kh66KAlDiXmXNpYde RokQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1707729271; x=1708334071; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=acIZ9XA9Jvv9Ug4Xrn49LHb1v9nYDYtYhvXcxBOdaEI=; b=S2L+9RHvQFKjDQKGpT8GiBdh+mq146lQSJLVegLyX1Yr0fGIiPYayjZPby6rz0otCi 9gTgBJS5veS5C9H9R6teU/yXcLrSwMtKt15IAVoBqhvZkuo6wdKkrZbmAIDxU8arPSUy aCXe/knvZ3gRv3lbW9+G2jc3xmtFq0XiOrq6braBn7stsSUxDhbSmy/9jdDW2JwTy/Fk SxcBzFzz5e2pKHmoisRIF1CkoiPzIPJvQGCBzD7J3M6uGQnkgARJdPaWPHH17dP4R+4J mMOt85FdL98EYg6jwHzTUiFJFaFJdBjvTLvTjeRajmEEATMIjOGfQtGhmOpTwxXyb6kl zYOA== X-Gm-Message-State: AOJu0Yw6XVdlFW0p/krRu/D1sodb+s8oHUHi/Fw/4nJC71vZFTBhF5Gz AtiW6GEcX6Gyh4ary+j1ORhLxZEKSYUEBKw4+Trl+Hmg3sBrc0mmSryzBwYo6p3pUM8XGK1Ofgl 7uq8CSBpwIVUPu7v6bey0Op4Y4TC1oJYvXtwMfg== X-Google-Smtp-Source: AGHT+IF1gBgI9HfvEk+YmaEzKtJItfzK34Bf4wZzpHs+SRWff1Odv76WM91KA6yOFVz7+TCInqJU6835vrpQeL4eJHY= X-Received: by 2002:a17:906:b218:b0:a3c:8f4c:b1d with SMTP id p24-20020a170906b21800b00a3c8f4c0b1dmr1912874ejz.63.1707729270396; Mon, 12 Feb 2024 01:14:30 -0800 (PST) List-Id: Discussion List-Archive: https://lists.freebsd.org/archives/freebsd-virtualization List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-virtualization@freebsd.org X-BeenThere: freebsd-virtualization@freebsd.org MIME-Version: 1.0 References: In-Reply-To: From: Mario Marietto Date: Mon, 12 Feb 2024 10:13:53 +0100 Message-ID: Subject: Re: OpenBSD vm troubles To: Odhiambo Washington Cc: FreeBSD virtualization Content-Type: multipart/alternative; boundary="00000000000088dc3306112bb4ba" X-Spamd-Bar: -- X-Spamd-Result: default: False [-3.00 / 15.00]; HTTP_TO_IP(1.00)[]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.998]; DMARC_POLICY_ALLOW(-0.50)[gmail.com,none]; R_SPF_ALLOW(-0.20)[+ip6:2a00:1450:4000::/36]; R_DKIM_ALLOW(-0.20)[gmail.com:s=20230601]; MIME_GOOD(-0.10)[multipart/alternative,text/plain]; RCVD_TLS_LAST(0.00)[]; RCPT_COUNT_TWO(0.00)[2]; FREEMAIL_FROM(0.00)[gmail.com]; MIME_TRACE(0.00)[0:+,1:+,2:~]; FREEMAIL_TO(0.00)[gmail.com]; FREEMAIL_ENVFROM(0.00)[gmail.com]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; FROM_HAS_DN(0.00)[]; MISSING_XM_UA(0.00)[]; PREVIOUSLY_DELIVERED(0.00)[freebsd-virtualization@freebsd.org]; TO_MATCH_ENVRCPT_SOME(0.00)[]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmail.com:+]; MID_RHS_MATCH_FROMTLD(0.00)[]; ASN(0.00)[asn:15169, ipnet:2a00:1450::/32, country:US]; MLMMJ_DEST(0.00)[freebsd-virtualization@freebsd.org]; DWL_DNSWL_NONE(0.00)[gmail.com:dkim]; RCVD_COUNT_ONE(0.00)[1]; RCVD_IN_DNSWL_NONE(0.00)[2a00:1450:4864:20::62c:from] X-Rspamd-Queue-Id: 4TYJgX2NSBz4GY2 --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 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
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,boot= index=3D1 \
-s 2,ahci-hd,/mnt/zroot2/zroot2/OS/BSD/openbsd74.img \
-s 3,fbuf,tcp=3D0.0.0.0:5915,w=3D16= 00,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,ta= p15 \
It produced this error :

Assertion failed: (error =3D=3D 0), fu= nction modify_bar_registration, file /usr/src/usr.sbin/bhyve/pci_emu= l.c, line 637.

probably a bug with the virtio-dri= ver and bhyve on openbsd.

On Sun, Feb 11, 2024 at 7:59=E2= =80=AFAM Odhiambo Washington <odhi= ambo@gmail.com> wrote:
I am not sure what it is that I am doing wro= ng, 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/.is= o/miniroot74.img \
-s 4,virtio-blk,/usr/local/bhyve-vms/OpenBSD/openbsd7= 4.img \
-s 5,virtio-net,tap1 \
-s 8,hda,play=3D/dev/dsp,rec=3D/dev/ds= p \
-s 20,virtio-rnd \
-s 29,fbuf,tcp=3D0.0.0.0:5901,w=3D1680,h=3D1050,wait \
-s 30,xhc= i,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 3= 049M 128K 16M 3M 1024M]
disk: hd0 hd1*
>> OpenBSD/amd64 BOOTX64= 3.65
boot>
cannot open hd0a:/etc/random.seed: No such file or dir= ectory
booting hd0a:/bsd: 17163596read text
=C2=A0failed(0). will try= /bsd
boot>
cannot open hd0a:/etc/random.seed: No such file or dir= ectory
booting hd0a:/bsd: 17163596read text
=C2=A0failed(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
= =C2=A0In=C2=A0an Internet failur= e case, the #1 suspect is a constant: DNS.
"Oh, the cruft.&quo= t;,=C2=A0egrep -v '^$|^.*#'= =C2=A0=C2=AF\_(=E3=83=84)_/=C2=AF=C2=A0:-)
[How to ask smart questions:=C2=A0http://www.catb.org/~esr/faqs/smart-questions.html]


--
Mario.
--00000000000088dc3306112bb4ba--