Date: Wed, 17 Jan 2024 15:34:42 +0100 From: "=?utf-8?B?TWljaGFlbCBTbMO4Z2VkYWw=?=" <michael@sloged.al> To: "=?utf-8?B?Q29ydmluIEvDtmhuZQ==?=" <corvink@FreeBSD.org>, "freebsd-virtualization@FreeBSD.org" <freebsd-virtualization@FreeBSD.org> Subject: RE: bhyve intel 530 integrated graphics error Message-ID: <gxES.vxwU1i_rQkOq6efNZIo53Q@LnqoiEWzFkCdGQGdLd2x2eNP34whDFdFmlSjMbuo1-c.xz> In-Reply-To: <gxES.INF-UkyqgUaVu1JPB28uuw@glmCCa_wBUS_ZHQxCPWJ9pppRw7QvPBNov6dIZtuV44.xz> References: <gxES.l1BY6Ym_vUi8D9urxKuWvQ@Zoka9TMijEmnc8h1QEfjMc2pA_dP_RxOrEsZw_uiNe4.xz> <a66487231b4c77dabdd17b4120cc6a5067ae4e97.camel@FreeBSD.org> <gxES.INF-UkyqgUaVu1JPB28uuw@glmCCa_wBUS_ZHQxCPWJ9pppRw7QvPBNov6dIZtuV44.xz>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
The mmap_memseg error was resolved by reducing vm memory to 4G. (Not a viable
solution, but at least it runs)
Best regards,
Michael
From: owner-freebsd-virtualization@freebsd.org
<owner-freebsd-virtualization@freebsd.org> On Behalf Of Michael Sløgedal
Sent: Wednesday, January 17, 2024 1:30 PM
To: Corvin Köhne <corvink@FreeBSD.org>; freebsd-virtualization@FreeBSD.org
Subject: RE: bhyve intel 530 integrated graphics error
Thanks Corvin,
However it’s still not clear to me from D26209 what exactly I need to do, and
what I’ve tried doesn’t work 😊 Any additional advice is appreciated.
1. Dropped the GOP rom for now. Unless I need it for windows loading screen /
windows diagnostics/repair ? GpuZ won’t extract it anyhow.
2. I’ve added the -A option, no visible change
3. BHYVE_CODE.fd – not sure if I’m using it right. I changed the symlink for
BHYVE_UEFI.fd to point to this file. No visible change – except I now have
4 non-working COM ports.
4. I tried passthru on usb, and get the same error that I did with the audio
card (see below)
5. The gfx card initially boots with windows Error 43. When I delete it and
scan for hardware changes it pops back in, without the error, but no
displays detected.
6. I’m using vga/dvi ports without success, haven’t tried displayport. No hdmi
ports. In case that matters.
7. Should I try to update freebsd to 14-STABLE branch and see if that makes a
difference? (If I can figure out how)
# tail /vm/win10ltsc/bhyve.log
pci_fbuf: mmap_memseg failed
Assertion failed: (mr->name == memp->name), function unregister_mem, file /usr/
src/usr.sbin/bhyve/mem.c, line 344.
# tail /vm/win10ltsc/vm-bhyve.log
Jan 17 13:08:48: [primary disk: disk0.img]
Jan 17 13:08:48: [primary disk dev: file]
Jan 17 13:08:48: dynamically allocated port 5900 for vnc connections
Jan 17 13:08:48: booting
Jan 17 13:08:48: [bhyve options: -c 6,sockets=1,cores=3,threads=2 -m 8G -Hwl
bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -A -U
8dff5c4a-b083-11ee-b2cd-78d004259091 -S]
Jan 17 13:08:48: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/
win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 2:0,passthru,0/2/0 -s
20:0,passthru,0/20/0 -s 6:0,fbuf,tcp=0.0.0.0:5900,w=1920,h=1080 -s
7:0,xhci,tablet]
Jan 17 13:08:48: [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]
Jan 17 13:08:48: starting bhyve (run 1)
Jan 17 13:08:50: bhyve exited with status 134
Jan 17 13:08:50: stopped
# pciconf -lv |grep -EC 2 "(USB 3|Audio)"
ppt1@pci0:0:20:0: class=0x0c0330 rev=0x31 hdr=0x00 vendor=0x8086 device=
0xa12f subvendor=0x8086 subdevice=0xa12f
vendor = 'Intel Corporation'
device = '100 Series/C230 Series Chipset Family USB 3.0 xHCI
Controller'
class = serial bus
subclass = USB
--
ppt2@pci0:0:31:3: class=0x040300 rev=0x31 hdr=0x00 vendor=0x8086 device=
0xa170 subvendor=0x8086 subdevice=0xa170
vendor = 'Intel Corporation'
device = '100 Series/C230 Series Chipset Family HD Audio Controller'
class = multimedia
subclass = HDA
From: Corvin Köhne <corvink@FreeBSD.org>
Sent: Wednesday, January 17, 2024 8:19 AM
To: Michael Sløgedal <michael@sloged.al>; freebsd-virtualization@FreeBSD.org
Subject: Re: bhyve intel 530 integrated graphics error
Hi,
unfortunately, GPU passthrough is supported by bhyve but not OVMF. So,
you have to use a patched OVMF. The required patch stack is available
at https://reviews.freebsd.org/D41714. An older version and most
probably still working prebuilt version is available at
https://reviews.freebsd.org/D26209.
On Wed, 2024-01-17 at 01:18 +0100, Michael Sløgedal wrote:
> Hi,
>
> I’ve been trying to collect the necessary info online about how to do
> gpu passthru with integrated intel graphics to win10, but can’t make
> it work.
>
> 1. First tried with just passthru, and after 3-4 reboots, the
> display adapter shows up in win10 guest, but it won’t load properly.
Despite some configuration requirements (e.g. always use slot 2) that's
all you need.
> 2. Tried adding the hd audio device as well, get bluescreen with
> “memory_management” stop code in guest
Shouldn't happen but seems like another issue.
> 3. Tried adding a gop rom from
> https://github.com/patmagauran/i915ovmfPkg - host crashed and got
> error below
A GOP is only required for pre OS graphics (e.g. grub menu).
I highly recommend using the GOP from your host system to avoid damages
or strange issues due to incompatibilities. Unfortunately, it's not
always possible to easily extract the GOP from your host system. Even
Intel recommends to ask your board manufacturer:
https://projectacrn.github.io/3.2/tutorials/gpu-passthru.html#enable-the-gvt-d-gop-driver
Some alternative ways to extract the GOP:
On Windows try GPU-Z:
https://nvidia.custhelp.com/app/answers/detail/a_id/4188/~/extracting-the-geforce-video-bios-rom-file
On Linux try sysfs:
https://pve.proxmox.com/wiki/PCI_Passthrough#The_.27romfile.27_option
>
> I’m at a loss what to try next. Any ideas where I’m going wrong?
>
> # tail /vm/win10ltsc/vm-bhyve.log
> Jan 17 00:49:02: [primary disk: disk0.img]
> Jan 17 00:49:02: [primary disk dev: file]
> Jan 17 00:49:02: dynamically allocated port 5900 for vnc connections
> Jan 17 00:49:02: booting
> Jan 17 00:49:02: [bhyve options: -c 6,sockets=1,cores=3,threads=2 -m
> 8G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s
> 2:0,passthru,0/2/0,rom=/vm/win10ltsc/i915ovmf.rom -U 8dff5c4a-b083-
> 11ee-b2cd-78d004259091 -S]
> Jan 17 00:49:02: [bhyve devices: -s 0,hostbridge -s 31,lpc -s
> 4:0,ahci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s
> 6:0,fbuf,tcp=0.0.0.0:5900,w=1920,h=1080 -s 7:0,xhci,tablet]
> Jan 17 00:49:02: [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]
You have to use the `-A` flag. There's an open PR for vm-bhyve:
https://github.com/churchers/vm-bhyve/pull/525/commits/653d01f5b53c0bd8ce707137f67617536de8b1c0
> Jan 17 00:49:02: starting bhyve (run 1)
> Jan 17 00:49:04: bhyve exited with status 134
> Jan 17 00:49:04: stopped
>
> # tail /vm/win10ltsc/bhyve.log
> pci_fbuf: mmap_memseg failed
> Assertion failed: (mr->name == memp->name), function unregister_mem,
> file /usr/src/usr.sbin/bhyve/mem.c, line 344.
>
> # uname -a
> FreeBSD yellowfellow 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon
> Dec 11 04:56:01 UTC 2023
> root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/G
> ENERIC amd64
--
Kind regards,
Corvin
[-- Attachment #2 --]
<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:"Segoe UI Emoji";
panose-1:2 11 5 2 4 2 4 2 2 3;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#0563C1;
text-decoration:underline;}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{mso-style-priority:34;
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle23
{mso-style-type:personal-reply;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;
mso-ligatures:none;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
@list l0
{mso-list-id:1431390942;
mso-list-template-ids:-1005182070;}
@list l1
{mso-list-id:1829978206;
mso-list-type:hybrid;
mso-list-template-ids:-939515924 67698703 67698713 67698715 67698703 67698713 67698715 67698703 67698713 67698715;}
@list l1:level1
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level2
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level3
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level4
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level5
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level6
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
@list l1:level7
{mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level8
{mso-level-number-format:alpha-lower;
mso-level-tab-stop:none;
mso-level-number-position:left;
text-indent:-.25in;}
@list l1:level9
{mso-level-number-format:roman-lower;
mso-level-tab-stop:none;
mso-level-number-position:right;
text-indent:-9.0pt;}
ol
{margin-bottom:0in;}
ul
{margin-bottom:0in;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>The mmap_memseg error was resolved by reducing vm memory to 4G. (Not a viable solution, but at least it runs)<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Best regards,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Michael<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> owner-freebsd-virtualization@freebsd.org <owner-freebsd-virtualization@freebsd.org> <b>On Behalf Of </b>Michael Sløgedal<br><b>Sent:</b> Wednesday, January 17, 2024 1:30 PM<br><b>To:</b> Corvin Köhne <corvink@FreeBSD.org>; freebsd-virtualization@FreeBSD.org<br><b>Subject:</b> RE: bhyve intel 530 integrated graphics error<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thanks Corvin,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>However it’s still not clear to me from D26209 what exactly I need to do, and what I’ve tried doesn’t work <span style='font-family:"Segoe UI Emoji",sans-serif'>😊</span> Any additional advice is appreciated.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><ol style='margin-top:0in' start=1 type=1><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>Dropped the GOP rom for now. Unless I need it for windows loading screen / windows diagnostics/repair ? GpuZ won’t extract it anyhow.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>I’ve added the -A option, no visible change<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>BHYVE_CODE.fd – not sure if I’m using it right. I changed the symlink for BHYVE_UEFI.fd to point to this file. No visible change – except I now have 4 non-working COM ports.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>I tried passthru on usb, and get the same error that I did with the audio card (see below)<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>The gfx card initially boots with windows Error 43. When I delete it and scan for hardware changes it pops back in, without the error, but no displays detected.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>I’m using vga/dvi ports without success, haven’t tried displayport. No hdmi ports. In case that matters.<o:p></o:p></li><li class=MsoListParagraph style='margin-left:0in;mso-list:l1 level1 lfo3'>Should I try to update freebsd to 14-STABLE branch and see if that makes a difference? (If I can figure out how)<o:p></o:p></li></ol><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># tail /vm/win10ltsc/bhyve.log <o:p></o:p></p><p class=MsoNormal>pci_fbuf: mmap_memseg failed<o:p></o:p></p><p class=MsoNormal>Assertion failed: (mr->name == memp->name), function unregister_mem, file /usr/src/usr.sbin/bhyve/mem.c, line 344.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># tail /vm/win10ltsc/vm-bhyve.log<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: [primary disk: disk0.img]<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: [primary disk dev: file]<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: dynamically allocated port 5900 for vnc connections<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: booting<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: [bhyve options: -c 6,sockets=1,cores=3,threads=2 -m 8G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -A -U 8dff5c4a-b083-11ee-b2cd-78d004259091 -S]<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: [bhyve devices: -s 0,hostbridge -s 31,lpc -s 4:0,ahci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s 2:0,passthru,0/2/0 -s 20:0,passthru,0/20/0 -s 6:0,fbuf,tcp=0.0.0.0:5900,w=1920,h=1080 -s 7:0,xhci,tablet]<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:48: starting bhyve (run 1)<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:50: bhyve exited with status 134<o:p></o:p></p><p class=MsoNormal>Jan 17 13:08:50: stopped<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal># pciconf -lv |grep -EC 2 "(USB 3|Audio)"<o:p></o:p></p><p class=MsoNormal>ppt1@pci0:0:20:0: class=0x0c0330 rev=0x31 hdr=0x00 vendor=0x8086 device=0xa12f subvendor=0x8086 subdevice=0xa12f<o:p></o:p></p><p class=MsoNormal> vendor = 'Intel Corporation'<o:p></o:p></p><p class=MsoNormal> device = '100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller'<o:p></o:p></p><p class=MsoNormal> class = serial bus<o:p></o:p></p><p class=MsoNormal> subclass = USB<o:p></o:p></p><p class=MsoNormal>--<o:p></o:p></p><p class=MsoNormal>ppt2@pci0:0:31:3: class=0x040300 rev=0x31 hdr=0x00 vendor=0x8086 device=0xa170 subvendor=0x8086 subdevice=0xa170<o:p></o:p></p><p class=MsoNormal> vendor = 'Intel Corporation'<o:p></o:p></p><p class=MsoNormal> device = '100 Series/C230 Series Chipset Family HD Audio Controller'<o:p></o:p></p><p class=MsoNormal> class = multimedia<o:p></o:p></p><p class=MsoNormal> subclass = HDA<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b>From:</b> Corvin Köhne <<a href="mailto:corvink@FreeBSD.org">corvink@FreeBSD.org</a>> <br><b>Sent:</b> Wednesday, January 17, 2024 8:19 AM<br><b>To:</b> Michael Sløgedal <<a href="mailto:michael@sloged.al">michael@sloged.al</a>>; <a href="mailto:freebsd-virtualization@FreeBSD.org">freebsd-virtualization@FreeBSD.org</a><br><b>Subject:</b> Re: bhyve intel 530 integrated graphics error<o:p></o:p></p></div></div><p class=MsoNormal><o:p> </o:p></p><pre>Hi,<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>unfortunately, GPU passthrough is supported by bhyve but not OVMF. So,<o:p></o:p></pre><pre>you have to use a patched OVMF. The required patch stack is available<o:p></o:p></pre><pre>at <a href="https://reviews.freebsd.org/D41714">https://reviews.freebsd.org/D41714</a>. An older version and most<o:p></o:p></pre><pre>probably still working prebuilt version is available at<o:p></o:p></pre><pre><a href="https://reviews.freebsd.org/D26209">https://reviews.freebsd.org/D26209</a>.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>On Wed, 2024-01-17 at 01:18 +0100, Michael Sløgedal wrote:<o:p></o:p></pre><pre>> Hi,<o:p></o:p></pre><pre>> <o:p></o:p></pre><pre>> I’ve been trying to collect the necessary info online about how to do<o:p></o:p></pre><pre>> gpu passthru with integrated intel graphics to win10, but can’t make<o:p></o:p></pre><pre>> it work.<o:p></o:p></pre><pre>> <o:p></o:p></pre><pre>> 1. First tried with just passthru, and after 3-4 reboots, the<o:p></o:p></pre><pre>> display adapter shows up in win10 guest, but it won’t load properly.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Despite some configuration requirements (e.g. always use slot 2) that's<o:p></o:p></pre><pre>all you need.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>> 2. Tried adding the hd audio device as well, get bluescreen with<o:p></o:p></pre><pre>> “memory_management” stop code in guest<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Shouldn't happen but seems like another issue.<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>> 3. Tried adding a gop rom from<o:p></o:p></pre><pre>> <a href="https://github.com/patmagauran/i915ovmfPkg">https://github.com/patmagauran/i915ovmfPkg</a> - host crashed and got<o:p></o:p></pre><pre>> error below<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>A GOP is only required for pre OS graphics (e.g. grub menu).<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>I highly recommend using the GOP from your host system to avoid damages<o:p></o:p></pre><pre>or strange issues due to incompatibilities. Unfortunately, it's not<o:p></o:p></pre><pre>always possible to easily extract the GOP from your host system. Even<o:p></o:p></pre><pre>Intel recommends to ask your board manufacturer:<o:p></o:p></pre><pre><a href="https://projectacrn.github.io/3.2/tutorials/gpu-passthru.html#enable-the-gvt-d-gop-driver">https://projectacrn.github.io/3.2/tutorials/gpu-passthru.html#enable-the-gvt-d-gop-driver</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>Some alternative ways to extract the GOP:<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>On Windows try GPU-Z:<o:p></o:p></pre><pre><a href="https://nvidia.custhelp.com/app/answers/detail/a_id/4188/~/extracting-the-geforce-video-bios-rom-file">https://nvidia.custhelp.com/app/answers/detail/a_id/4188/~/extracting-the-geforce-video-bios-rom-file</a><o:p></o:p></pre><pre>On Linux try sysfs:<o:p></o:p></pre><pre><a href="https://pve.proxmox.com/wiki/PCI_Passthrough#The_.27romfile.27_option">https://pve.proxmox.com/wiki/PCI_Passthrough#The_.27romfile.27_option</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>> <o:p></o:p></pre><pre>> I’m at a loss what to try next. Any ideas where I’m going wrong?<o:p></o:p></pre><pre>> <o:p></o:p></pre><pre>> # tail /vm/win10ltsc/vm-bhyve.log <o:p></o:p></pre><pre>> Jan 17 00:49:02: [primary disk: disk0.img]<o:p></o:p></pre><pre>> Jan 17 00:49:02: [primary disk dev: file]<o:p></o:p></pre><pre>> Jan 17 00:49:02: dynamically allocated port 5900 for vnc connections<o:p></o:p></pre><pre>> Jan 17 00:49:02: booting<o:p></o:p></pre><pre>> Jan 17 00:49:02: [bhyve options: -c 6,sockets=1,cores=3,threads=2 -m<o:p></o:p></pre><pre>> 8G -Hwl bootrom,/usr/local/share/uefi-firmware/BHYVE_UEFI.fd -s<o:p></o:p></pre><pre>> 2:0,passthru,0/2/0,rom=/vm/win10ltsc/i915ovmf.rom -U 8dff5c4a-b083-<o:p></o:p></pre><pre>> 11ee-b2cd-78d004259091 -S]<o:p></o:p></pre><pre>> Jan 17 00:49:02: [bhyve devices: -s 0,hostbridge -s 31,lpc -s<o:p></o:p></pre><pre>> 4:0,ahci,hd:/vm/win10ltsc/disk0.img -s 31:6,passthru,0/31/6 -s<o:p></o:p></pre><pre>> 6:0,fbuf,tcp=0.0.0.0:5900,w=1920,h=1080 -s 7:0,xhci,tablet]<o:p></o:p></pre><pre>> Jan 17 00:49:02: [bhyve console: -l com1,/dev/nmdm-win10ltsc.1A]<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>You have to use the `-A` flag. There's an open PR for vm-bhyve:<o:p></o:p></pre><pre><a href="https://github.com/churchers/vm-bhyve/pull/525/commits/653d01f5b53c0bd8ce707137f67617536de8b1c0">https://github.com/churchers/vm-bhyve/pull/525/commits/653d01f5b53c0bd8ce707137f67617536de8b1c0</a><o:p></o:p></pre><pre><o:p> </o:p></pre><pre>> Jan 17 00:49:02: starting bhyve (run 1)<o:p></o:p></pre><pre>> Jan 17 00:49:04: bhyve exited with status 134<o:p></o:p></pre><pre>> Jan 17 00:49:04: stopped<o:p></o:p></pre><pre>> <o:p></o:p></pre><pre>> # tail /vm/win10ltsc/bhyve.log <o:p></o:p></pre><pre>> pci_fbuf: mmap_memseg failed<o:p></o:p></pre><pre>> Assertion failed: (mr->name == memp->name), function unregister_mem,<o:p></o:p></pre><pre>> file /usr/src/usr.sbin/bhyve/mem.c, line 344.<o:p></o:p></pre><pre>> <o:p></o:p></pre><pre>> # uname -a<o:p></o:p></pre><pre>> FreeBSD yellowfellow 14.0-RELEASE-p3 FreeBSD 14.0-RELEASE-p3 #0: Mon<o:p></o:p></pre><pre>> Dec 11 04:56:01 UTC 2023 <o:p></o:p></pre><pre>> <a href="mailto:root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/G">root@amd64-builder.daemonology.net:/usr/obj/usr/src/amd64.amd64/sys/G</a><o:p></o:p></pre><pre>> ENERIC amd64<o:p></o:p></pre><pre><o:p> </o:p></pre><pre>-- <o:p></o:p></pre><pre>Kind regards,<o:p></o:p></pre><pre>Corvin<o:p></o:p></pre></div></body></html>
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?gxES.vxwU1i_rQkOq6efNZIo53Q>
