Re: GPU Passthrough on FreeBSD 14.3 (AMD Radeon RX 6900 XT and Windows 10 Pro)
Date: Mon, 25 Aug 2025 16:35:31 UTC
I was able to get a fresh Win 10 Pro VM running through vm-bhyve but no progress. Still same Code 43 error as before. I wasn't able to figure out how to pass the rom=bios.rom through vm-bhyve, I didn't see anything about it in the config.sample file and I also tried to bypass that by adding it in bhyve_options but no go, the VM wouldn't even start if I did that. I see there is a "bhyve_devices" that contains all of the slot devices but I don't see that as an adjustable variable based on the config.sample info. I've pasted my current vm-bhyve template below. My next test is to try the same thing inside a Linux guest to see what happens. ---------------- loader="uefi" cpu="4" cpu_sockets="1" cpu_cores="4" cpu_threads="1" memory="16G" wired_memory="yes" utctime="no" ahci_device_limit="8" disk0_type="nvme" disk0_name="disk0.img" network0_type="e1000" network0_switch="public" passthru0="3/0/0=2:0" passthru1="3/0/1=2:1" #bhyve_options="-s 2:0,passthru,3/0/0,rom=bios.rom" # Using RDP post-install. graphics="no" graphics_port="5900" graphics_listen="0.0.0.0" graphics_res="1920x1080" graphics_wait="yes" xhci_mouse="yes" uuid="535d54b5-81cb-11f0-93a2-98b78501bda8" network0_mac="58:9c:fc:04:5a:eb" ---------------- Jonathan Vasquez PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279 Sent with ProtonMail Secure Email On Monday, August 25th, 2025 at 11:05, Jonathan Vasquez <jon@xyinn.org> wrote: > Unfortunately I don't have an intel machine with an available PCIe slot. However I'm trying another thing which is to passthrough the card to a Linux guest. I need to run more experiments but a preliminary boot of a Linux Mint ISO did show the AMD Radeon RX 6900 XT card in lspci and showed that it was using the amdgpu driver. I then did a basic glxgears and it opened up in my VNC window and showed the FPS counter at over 2000 fps. The only issue I noticed was when shutting down the live CD environment there were amdgpu failure messages where it was failing to write something to it. I'm currently redoing my "basic bhyve script" and moving it over to "vm-bhyve" since it seems a lot of people are using that instead of the more manual approach. This should hopefully help simplify things for debugging. If the card works on Linux via passthrough this would also be useful info and can allow me to see the performance of Cyperpunk 2077, and some other games (even if I'm not getting 100% of the card's performance). > > Jonathan Vasquez > PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279 > Sent with ProtonMail Secure Email > > On Monday, August 25th, 2025 at 11:00, Stephan Althaus <Stephan.Althaus@Duedinghausen.eu> wrote: > >> On 8/25/25 16:56, Jonathan Vasquez wrote: >> >>> Hey Stephan, >>> >>> Yup, I've tried passing both 3/0/0 and 3/0/1 and no go, and I also make sure to reboot the host in between runs due to the amd hardware issue. I don't believe 3/0/1 is necessary though based on the examples by Corvin in his talk. He only passed in 3/0/0 (I'm guessing his card also has a 3/0/1 function that he isn't using since that's the audio channel). >>> >>> Jonathan Vasquez >>> PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279 >>> Sent with ProtonMail Secure Email >>> >>> On Monday, August 25th, 2025 at 10:52, Stephan Althaus [<Stephan.Althaus@Duedinghausen.eu>](mailto:Stephan.Althaus@Duedinghausen.eu) wrote: >>> >>>> On 8/25/25 16:47, Stephan Althaus wrote: >>>> >>>>> On 8/24/25 23:58, Jonathan Vasquez wrote: >>>>> >>>>>> Hey all, >>>>>> >>>>>> I've been experimenting with trying to get my server's dedicated AMD Radeon RX 6900 XT working on a bhyve Windows 10 Pro client for gaming purposes. I've been reading a bunch of blog posts, sites, files, and videos (thanks Corvin) to try and piece things together. I've been able to get the VM to recognize the card, but still stuck on the Code 43 issue (with or without using the vBIOS I've extracted from my dedicated card and also ensuring any options needed to be on in the UEFI settings are enabled). This machine is running on an AMD Ryzen 9 7950X 16-Core Processor, so it's a full AMD setup, no Intel stuff. It technically should be relatively "easy" to get AMD working from what I've read (excluding the known AMD Hardware reset issue). I've documented everything I've done so far, and will be documenting more and simplifying the instructions as I make progress. Please let me know if you see any thing weird or anything I could try based on what I've rewritten. I'll try to give it a go and provide feedback. Thank you! >>>>>> >>>>>> https://xyinn.org/blog/freebsd/freebsd_bhyve_gpu_passthrough_amd >>>>>> >>>>>> Jonathan Vasquez >>>>>> PGP: 34DA 858C 1447 509E C77A D49F FB85 90B7 C4CA 5279 >>>>>> Sent with ProtonMail Secure Email >>>>> >>>>> Hi! >>>>> >>>>> i have a AMD RX6400 GPU setup running on 14.2 with win10 guest, host is a intel system. >>>>> >>>>> i think you have to passthrough the 3/0/1 device as well! >>>>> >>>>> The bios.rom is extracted from this card in place ? >>>>> >>>>> Regards, >>>>> Stephan >>>> >>>> Ah, and be shure to reboot the whole setup, inclusive host, for every new test-case, >>>> at least as long at is not guaranteed that we can live without.. >>>> >>>> Regars, >>>> Stephan >> >> Hi! >> >> My only next assumption would be that this only does not work on AMD host. >> >> You don't have an intel system to test, you would havedone it, if so.. (?) >> >> Stephan