From nobody Wed Oct 16 14:54:41 2024 X-Original-To: freebsd-questions@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 4XTDX52ZXnz5YcSt for ; Wed, 16 Oct 2024 14:54:45 +0000 (UTC) (envelope-from 76nemo76@gmx.ch) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "mout.gmx.net", Issuer "Telekom Security ServerID OV Class 2 CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XTDX41PLlz4WwV for ; Wed, 16 Oct 2024 14:54:44 +0000 (UTC) (envelope-from 76nemo76@gmx.ch) Authentication-Results: mx1.freebsd.org; dkim=pass header.d=gmx.ch header.s=s31663417 header.b="r/dGetHk"; spf=pass (mx1.freebsd.org: domain of 76nemo76@gmx.ch designates 212.227.15.15 as permitted sender) smtp.mailfrom=76nemo76@gmx.ch; dmarc=pass (policy=quarantine) header.from=gmx.ch DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmx.ch; s=s31663417; t=1729090482; x=1729695282; i=76nemo76@gmx.ch; bh=JmsLMewTcmZO9SryUTwCIs87jcqxpXMWxwQolPnYLsc=; h=X-UI-Sender-Class:Date:From:To:Subject:Message-ID:In-Reply-To: References:MIME-Version:Content-Type:Content-Transfer-Encoding:cc: content-transfer-encoding:content-type:date:from:message-id: mime-version:reply-to:subject:to; b=r/dGetHkQGWT3s56br5dYfwhaQ9guZpwacbCWNgMml1B4CTufYY4jUH7US73pI1b TFHg999krv+VkqQ5KLSKT+vpLz+hXazNt6JCMEcG5hOm3rawdY1HyV+HyYNzsISJc eAh4Iu8Ilb6HhbAAsI1aCyjrtKIDWUegOL62lKE4iD908A9xg93PAr6BRVqT2P7KJ zWNE5SsSpLRaQjhmkErZqbQVL3JUBjylX4aFFyM8ufExnzW4mxYfzByS4zhJtamkM Y4QDoSxWcZDloqDLR4+7Pbm/74qCfvXOOQj1TpSdu0cQvLwXDOTeXbudgjrhJYldn NWp/tEGV0jLJYSzPoQ== X-UI-Sender-Class: 724b4f7f-cbec-4199-ad4e-598c01a50d3a Received: from cervin ([85.195.219.136]) by mail.gmx.net (mrgmx004 [212.227.17.190]) with ESMTPSA (Nemesis) id 1Mv2xO-1trg0Y1O5o-013D5X for ; Wed, 16 Oct 2024 16:54:42 +0200 Date: Wed, 16 Oct 2024 16:54:41 +0200 From: Pierre Dupond <76nemo76@gmx.ch> To: FreeBSD Questions Mailing List Subject: Re: Bhyve OpenBSD 7.6 not working any more Message-ID: <20241016165441.4bb53278@cervin> In-Reply-To: <20241016114417.05142a78@cervin> References: <20241016114417.05142a78@cervin> X-Mailer: Claws Mail 4.0.0 (GTK+ 3.24.33; x86_64-pc-linux-gnu) List-Id: User questions List-Archive: https://lists.freebsd.org/archives/freebsd-questions List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-questions@freebsd.org Sender: owner-freebsd-questions@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:FIAMc9jwO2i+iFokjzw+1fgkHGd1BWkFkhtlARPlaXR/LgpIlhO XZZUlG3mIbTc61zAdut8FZcWWpujzy8jFBXjVXMxcpLGgmx0qm2//jBZVgkzj3PYWE1afA9 DyJbNnPJ8BU2aB/GR91WlP7/PdCi6+cFo5ZaShNrvdRo6ZoBKyGvoZbyEBx6htNF8CyV41J ImbiMU3s3MzAV4oKZkcIQ== X-Spam-Flag: NO UI-OutboundReport: notjunk:1;M01:P0:mKjrUrEt4iA=;60ULF02t+dmte3ODPKnp2iS3tap 91/EximlOmEDKL0EdL9nB85tTg/4sRkZm/xK3hs2YJNEuh0AkVCu5ZpuCUCY3eTNqpgEyDHCy tCGmGbcjrDev245H6fLpANzErUDIIoJBO54v6yFW5rJ9o88uFIwoif5UhSXjfbWMWckfdQCNf ViyZkHDLAyA/9EUn0gr5TLi3FF5X6p5cr52d9YvmNbOQhgrZjGHI/hHwNQDSDR5x8FfE0EWo4 S9GZCNHQk7CEOS8ipdZ6RweqZImJWryOZWXCTQD0uj0eGSWK73iKAvq7GWJbbPBQpLGB1rQqw 0LuHkdkZsVene/03yHH/X77A25S1rL31bei1JB1An8XeRaX6NEEMGd/dOIRYu78pvB3IamX3a AW7B0iCYw60QwcVSilHtDiS5LDsW74F4uRK4PuIlRW692lMJ1ELOtDEgHx+It68jTO03SiNG8 R8+k4L72o0pl55is7iFHM3fBhM7RKNpTj+J/sHiWzemdnV2TnYIDLgnb7OcqhnP5tDgObmORl NVaa7YnNwMWgWwqvRpx+fD6Xp38NtQ6wUfwV6h94pgGdQ2sDrG5fRDCZBNpQgf2kmZ5HCsEv+ HPYETm2yPHy7fYhn1XXU4qB8SwKYk9xuZ+fSQI9AYNjirgxaPmgifPWH4AD4SH0palkV5wX97 Me6oubWNeAiP+ENyGlc3yTM3+jZrGv5TX3wY7A9cvOORHf36YtCCwdLW0MJtbUS+b/coQZHVJ fQhAxd4lP/VoKJXYSvHj90BZldpiSeHrrocNozPE3tZSRmEU4LVl77fOkUxhvFn6nQ0jbcEzy HhaHVKlqAqHSOElpz2jug1cQ== X-Spamd-Result: default: False [-3.50 / 15.00]; NEURAL_HAM_LONG(-1.00)[-1.000]; NEURAL_HAM_MEDIUM(-1.00)[-1.000]; NEURAL_HAM_SHORT(-1.00)[-0.996]; DMARC_POLICY_ALLOW(-0.50)[gmx.ch,quarantine]; MID_RHS_NOT_FQDN(0.50)[]; R_SPF_ALLOW(-0.20)[+a:mout.gmx.net]; R_DKIM_ALLOW(-0.20)[gmx.ch:s=s31663417]; RCVD_IN_DNSWL_LOW(-0.10)[212.227.15.15:from]; ONCE_RECEIVED(0.10)[]; MIME_GOOD(-0.10)[text/plain]; MIME_TRACE(0.00)[0:+]; TO_MATCH_ENVRCPT_ALL(0.00)[]; RCPT_COUNT_ONE(0.00)[1]; TO_DN_ALL(0.00)[]; ARC_NA(0.00)[]; RCVD_TLS_ALL(0.00)[]; FROM_HAS_DN(0.00)[]; FREEMAIL_FROM(0.00)[gmx.ch]; MLMMJ_DEST(0.00)[freebsd-questions@freebsd.org]; PREVIOUSLY_DELIVERED(0.00)[freebsd-questions@freebsd.org]; FROM_EQ_ENVFROM(0.00)[]; DKIM_TRACE(0.00)[gmx.ch:+]; RWL_MAILSPIKE_POSSIBLE(0.00)[212.227.15.15:from]; ASN(0.00)[asn:8560, ipnet:212.227.0.0/16, country:DE]; RCVD_VIA_SMTP_AUTH(0.00)[]; RCVD_COUNT_ONE(0.00)[1]; FREEMAIL_ENVFROM(0.00)[gmx.ch] X-Rspamd-Queue-Id: 4XTDX41PLlz4WwV X-Spamd-Bar: --- Hi All, This seems to be OK now. The problem was the misleading messages disp= layed by bhyve when the virtual machine is started. These messages followe= d this mail. The real problem was that the two instructions to be executed at boot prom= pt of the OpenBSD OS ("set tty com0" and "stty com0 115200") have not been typed. These two instructions indicate to the OpenBSD kernel to use a= serial console. The problem with these strange messages (the typography of the message has= not been changed in the log after this mail) is that one can think that the problem is comi= ng from the passthrough of the network cards by the hypervisor bhyve to the v= irtual machine. Best regards =2D-----------------------------------------------------------------------= -----Error messages which don't prevent the correct pass through of the PC= I devices----------------- bhyve: pci_passthru: map_pptdev_mmio failed bhyve: pci_passthru: unmap_pptd= ev_mmio failed = bhyve: pci_passthru: map_pptdev_mmio failed = bhyve: pci_passth= ru: unmap_pptdev_mmio failed = = bhyve: pci_passthru: map_pptdev_mmio failed = = bhy= ve: pci_passthru: unmap_pptdev_d = = = d = = = d = = = d = = = d = = = d = = = d = = = d = = = d = = = d = = bhyve: pci_passthru: unmap_pptdev_mmio failed = = pchb0 at pci0 dev 0 functi= on 0 vendor "AMD", unknown produ ct 0x7432 rev 0x00 bhyve: pci_passthru: map_pptdev_mmio failed bhyve: pci_passthru: unmap_pptd= ev_mmio failed = bhyve: pci_passthru: map_pptdev_mmio failed = bhyve: pci_passth= ru: unmap_pptdev_mmio failed = = em0 at pci0 dev 2 function 0 "Intel I211" rev = 0x03bhyve: pci_passthru: map_ppd bhyve: pci_passthru: unmap_pptdev_mmio failed : msi, address= 00:e0:67:2e:3c:a6 bhyve: pci_passthru: map_pptdev_mmio failed bhyve: pci_passthru: unmap_pptd= ev_mmio failed = bhyve: pci_passthru: map_pptdev_mmio failed = bhyve: pci_passth= ru: unmap_pptdev_mmio failed = = em1 at pci0 dev 3 function 0 "Intel I211" rev = 0x03bhyve: pci_passthru: map_ppd bhyve: pci_passthru: unmap_pptdev_mmio failed : msi, address= 00:e0:67:2e:3c:a7 nvme0 at pci0 dev 4 function 0 unknown vendor 0xfb5d product 0x0a0a rev 0x= 00: msix, NVMe 1.4 =2D-----------------------------------------------------------------------= ---------------------------------End of the messages----------------------= ----------------------------------------------------------------------- On Wed, 16 Oct 2024 11:44:17 +0200 Pierre Dupond <76nemo76@gmx.ch> wrote: > Hi All, > I plan to use OpenBSD 7.6 guest with bhyve on a FreeBSD 14.1 host. = With > the release candidate of OPenBSD 7.6 I was able to pass two network card= s > with PCI passthru to the OpenBSD virtual machine. > > With the production version of OpenBSD 7.6 the PCI passthru does not wor= k any more. Even > worse if I try to install OpenBSD without network card I get the message > produced after this mail. > > The problems arise (with the PCI passthru and without network card) imme= diately > after the message "entry point at...". > > The command used to start bhyve is: > /usr/sbin/bhyve -HPSD -u -s 0:0,amd_hostbridge -s 31,lpc -l com1,stdio = -s 4,nvme,/VM/OpenBSD/obsd.img -c 4 -m 4096M -l bootrom,/usr/local/share/u= efi-firmware/BHYVE_UEFI.fd -s 5:0,ahci-cd,/VM/OpenBSD/install76.iso Router > > Any ideas? > > Thanks for help. > > Best regards, > > --------------------------------------------------------------Error mess= age------------------------------------- > > > probing: pc0 com0 com1 mem[640K 3046M 1M 16M 20K 3M 1024M] > disk: cd0 hd0* > >> OpenBSD/amd64 BOOTX64 3.67 > boot> > cannot open cd0a:/etc/random.seed: No such file or directory > booting cd0a:/7.6/amd64/bsd.rd: 4101039+1721344+3887112+0+704512 [109+46= 5408+318888]=3D0xab0b98 > entry point at 0x1001000 > root@virt2:/VM/OpenBSD # sh: turning off NDELAY mode > root@virt2:/VM/OpenBSD # >