TrueNAS Fragen & VM & GPU passthrough

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Hallo,

ich bin neu im thema trueNAS , und benötige nicht nur ein NAS sondern auch eine VM - nun zu meiner eigentlichen frage :

ist es möglich die igpu vom ryzen 5 5600G irgendwie in trueNAS durchzuschleifen so das ich sie für eine windows vm nutzen kann ? wenn ja wie ?



meine hardware :

CPU > AMD Ryzen 7 5600G


BOARD > MSI MPG B550 Gaming Plus


RAM > 1x Kingston FURY Beast 32GB Dual-Kit DDR4-3200 CL16 (2x 16gb)


M² SSD > 2x Western Digital Black SN770 NVMe (1TB)


SATA SSD > 1x Samsung 850 EVO (500gb)


HDD > 2x Seagate IronWolf NAS HDD ST8000VN004 (8TB)


grüße :)
 

bic

Contributor
Joined
Dec 7, 2021
Messages
184
Dazu muss die Hardware passen und der Hypervisior Gpu Passthrough unterstützen, so wie z.B. Microsoft Hyper-V, Citrix XenServer und VMware ESXi. Quemu/KVM (truenas scale) kann, bzw. sollte das allerdings auch können, hierfür ist dann jedoch ein wenig Handarbeit angesagt.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Selbst bhyve (TrueNAS CORE) kann das, es hängt aber uanhängig vom Hypervisor von der PCIe-Topologie ab. IOMMU groups und dieses Zeug. Zwei Geräte, die sich eine Gruppe teilen, können nicht unabhängig voneinander einmal per passthrough in die VM gelegt werden und einmal im Hypervisor verbleiben.

Wenn sich also die GPU eine Gruppe mit einem für den Betrieb wesentlichen anderen System teilt, dann klappts nicht.

TrueNAS CORE installieren und einmal pciconf -lv ausführen und den Output hier posten. Analog für SCALE aber für Linux kenne ich den Befehl nicht.
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
TrueNAS CORE installieren und einmal pciconf -lv ausführen und den Output hier posten. Analog für SCALE aber für Linux kenne ich den Befehl nicht.

danke erst mal für eure hilfe - zufällig eine idee wie ich den kram weg bekomme ? :

2Uoj7ci.png


das schmeißt mich nach ~1 minute oder so komplett aus TrueNAS , wenn ich das gefixt habe würde ich das ganze mit pciconf -lv log kopieren mal machen :)
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Code:
root@truenas[~]# pciconf -lv
hostb0@pci0:0:0:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1630 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne Root Complex'
    class      = bridge
    subclass   = HOST-PCI
amdiommu0@pci0:0:0:2:   class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1631 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne IOMMU'
    class      = base peripheral
    subclass   = IOMMU
hostb1@pci0:0:1:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1632 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
hostb2@pci0:0:2:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1632 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:2:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1634 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib4@pci0:0:2:2:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1634 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb3@pci0:0:8:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1632 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib5@pci0:0:8:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1635 subvendor=0x7c56 subdevice=0x1462
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir Internal PCIe GPP Bridge to Bus'
    class      = bridge
    subclass   = PCI-PCI
intsmb0@pci0:0:20:0:    class=0x0c0500 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790b subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH SMBus Controller'
    class      = serial bus
    subclass   = SMBus
isab0@pci0:0:20:3:      class=0x060100 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790e subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH LPC Bridge'
    class      = bridge
    subclass   = PCI-ISA
hostb4@pci0:0:24:0:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166a subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:1:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166b subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:2:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166c subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb7@pci0:0:24:3:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166d subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb8@pci0:0:24:4:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166e subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb9@pci0:0:24:5:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166f subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb10@pci0:0:24:6:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1670 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb11@pci0:0:24:7:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1671 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
xhci0@pci0:22:0:0:      class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x43ee subvendor=0x1b21 subdevice=0x1142
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = serial bus
    subclass   = USB
ahci0@pci0:22:0:1:      class=0x010601 rev=0x00 hdr=0x00 vendor=0x1022 device=0x43eb subvendor=0x1b21 subdevice=0x1062
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = mass storage
    subclass   = SATA
pcib2@pci0:22:0:2:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x43e9 subvendor=0x1b21 subdevice=0x0201
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:32:0:0:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x43ea subvendor=0x1b21 subdevice=0x3308
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = PCI-PCI
nvme0@pci0:33:0:0:      class=0x010802 rev=0x00 hdr=0x00 vendor=0x15b7 device=0x5006 subvendor=0x15b7 subdevice=0x5006
    vendor     = 'Sandisk Corp'
    device     = 'WD Black SN750 / PC SN730 NVMe SSD'
    class      = mass storage
    subclass   = NVM
nvme1@pci0:34:0:0:      class=0x010802 rev=0x00 hdr=0x00 vendor=0x15b7 device=0x5006 subvendor=0x15b7 subdevice=0x5006
    vendor     = 'Sandisk Corp'
    device     = 'WD Black SN750 / PC SN730 NVMe SSD'
    class      = mass storage
    subclass   = NVM
vgapci0@pci0:48:0:0:    class=0x030000 rev=0xc9 hdr=0x00 vendor=0x1002 device=0x1638 subvendor=0x1002 subdevice=0x1636
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Cezanne'
    class      = display
    subclass   = VGA
none0@pci0:48:0:1:      class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x1637 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Renoir Radeon High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
none1@pci0:48:0:2:      class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15df subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 10h-1fh) Platform Security Processor'
    class      = encrypt/decrypt
xhci1@pci0:48:0:3:      class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1639 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne USB 3.1'
    class      = serial bus
    subclass   = USB
xhci2@pci0:48:0:4:      class=
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Benutz keinen USB-Ethernet-Adapter. Wird sowieso nicht unterstützt. Hat das Mainboard kein Netzwerk on board?

Und dann wenn das Netz stabil ist, benutz SSH und poste hier Text und bitte keine Fotos vom Bildschirm.
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Benutz keinen USB-Ethernet-Adapter. Wird sowieso nicht unterstützt. Hat das Mainboard kein Netzwerk on board?
hat es aber nur 1gbit , daher der 2.5gbit usb adapter ... (unraid proxmox und co unterstützen den eigentlich , selbst synology schluckt den)
Und dann wenn das Netz stabil ist, benutz SSH und poste hier Text und bitte keine Fotos vom Bildschirm.

weiter oben hab ich den log direkt als code gepostet :)
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Ich seh da nur nicht wirklich eine GPU. Also nicht als separates PCIe Device. Irgendwas mit VGA, aber das teilt sich die Group 48 mit jeder Menge anderem Zeug. Sieht also eher schlecht aus.
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
ich hatte im start-posting ja auch geschrieben "ist es möglich die igpu vom ryzen 5 5600G irgendwie in trueNAS durchzuschleifen so das ich sie für eine windows vm nutzen kann ?" + meine hardware , ich dachte damit ist klar das ich keine dedizierte grafikkarte habe. :)
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Und ich wollte im Output von pciconf -lv für dich nachgucken, ob die iGPU von so einem Ryzen ein separates PCIe-Gerät ist, was ich ja auch getan habe. Woher soll ich es sonst wissen, ich habe keine Systeme mit so etwas?

Also nicht spekulieren sondern nachgucken. Haben wir getan, Antwort leider negativ.
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Also nicht spekulieren sondern nachgucken. Haben wir getan, Antwort leider negativ.

yes ,

ich habe mir nun doch eine einfache gpu bestellt - meinst du mit einer dedizierten gpu ist das ganze "einfacher" ? (es ist eine ASUS AMD Radeon RX 6400).

generell ist es schwer passende guides zu finden oder überhaupt ein Anhaltspunkt wie man vorgehen muss.
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Wozu brauchst du denn eine GPU in deiner Windows-VM? Kannst die doch per RDP bedienen ...
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Ich seh da nur nicht wirklich eine GPU. Also nicht als separates PCIe Device. Irgendwas mit VGA, aber das teilt sich die Group 48 mit jeder Menge anderem Zeug. Sieht also eher schlecht aus.

kannst du bitte nun noch mal schauen ob es besser aussieht - das ist mit rx 6400

Code:
Last login: Mon Feb 19 13:47:56 on pts/1
FreeBSD 13.1-RELEASE-p9 n245429-296d095698e TRUENAS

        TrueNAS (c) 2009-2023, iXsystems, Inc.
        All rights reserved.
        TrueNAS code is released under the modified BSD license with some
        files copyrighted by (c) iXsystems, Inc.

        For more information, documentation, help or support, go here:
        http://truenas.com
Welcome to TrueNAS

Warning: the supported mechanisms for making configuration changes
are the TrueNAS WebUI and API exclusively. ALL OTHERS ARE
NOT SUPPORTED AND WILL RESULT IN UNDEFINED BEHAVIOR AND MAY
RESULT IN SYSTEM FAILURE.

root@truenas[~]# pciconf -lv
hostb0@pci0:0:0:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1630 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne Root Complex'
    class      = bridge
    subclass   = HOST-PCI
amdiommu0@pci0:0:0:2:   class=0x080600 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1631 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne IOMMU'
    class      = base peripheral
    subclass   = IOMMU
hostb1@pci0:0:1:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1632 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib1@pci0:0:1:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1633 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb2@pci0:0:2:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1632 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib4@pci0:0:2:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1634 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
pcib7@pci0:0:2:2:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1634 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne PCIe GPP Bridge'
    class      = bridge
    subclass   = PCI-PCI
hostb3@pci0:0:8:0:      class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1632 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir PCIe Dummy Host Bridge'
    class      = bridge
    subclass   = HOST-PCI
pcib8@pci0:0:8:1:       class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x1635 subvendor=0x7c56 subdevice=0x1462
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir Internal PCIe GPP Bridge to Bus'
    class      = bridge
    subclass   = PCI-PCI
intsmb0@pci0:0:20:0:    class=0x0c0500 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790b subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH SMBus Controller'
    class      = serial bus
    subclass   = SMBus
isab0@pci0:0:20:3:      class=0x060100 rev=0x51 hdr=0x00 vendor=0x1022 device=0x790e subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'FCH LPC Bridge'
    class      = bridge
    subclass   = PCI-ISA
hostb4@pci0:0:24:0:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166a subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb5@pci0:0:24:1:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166b subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb6@pci0:0:24:2:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166c subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb7@pci0:0:24:3:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166d subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb8@pci0:0:24:4:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166e subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb9@pci0:0:24:5:     class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x166f subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb10@pci0:0:24:6:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1670 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
hostb11@pci0:0:24:7:    class=0x060000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1671 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = HOST-PCI
pcib2@pci0:16:0:0:      class=0x060400 rev=0xc7 hdr=0x01 vendor=0x1002 device=0x1478 subvendor=0x0000 subdevice=0x0000
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 10 XL Upstream Port of PCI Express Switch'
    class      = bridge
    subclass   = PCI-PCI
pcib3@pci0:17:0:0:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1002 device=0x1479 subvendor=0x1002 subdevice=0x1479
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 10 XL Downstream Port of PCI Express Switch'
    class      = bridge
    subclass   = PCI-PCI
vgapci0@pci0:18:0:0:    class=0x030000 rev=0xc7 hdr=0x00 vendor=0x1002 device=0x743f subvendor=0x1043 subdevice=0x05dd
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    class      = display
    subclass   = VGA
none0@pci0:18:0:1:      class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab28 subvendor=0x1002 subdevice=0xab28
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]'
    class      = multimedia
    subclass   = HDA
xhci0@pci0:22:0:0:      class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x43ee subvendor=0x1b21 subdevice=0x1142
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = serial bus
    subclass   = USB
ahci0@pci0:22:0:1:      class=0x010601 rev=0x00 hdr=0x00 vendor=0x1022 device=0x43eb subvendor=0x1b21 subdevice=0x1062
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = mass storage
    subclass   = SATA
pcib5@pci0:22:0:2:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x43e9 subvendor=0x1b21 subdevice=0x0201
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = PCI-PCI
pcib6@pci0:32:0:0:      class=0x060400 rev=0x00 hdr=0x01 vendor=0x1022 device=0x43ea subvendor=0x1b21 subdevice=0x3308
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    class      = bridge
    subclass   = PCI-PCI
nvme0@pci0:33:0:0:      class=0x010802 rev=0x00 hdr=0x00 vendor=0x15b7 device=0x5006 subvendor=0x15b7 subdevice=0x5006
    vendor     = 'Sandisk Corp'
    device     = 'WD Black SN750 / PC SN730 NVMe SSD'
    class      = mass storage
    subclass   = NVM
nvme1@pci0:34:0:0:      class=0x010802 rev=0x00 hdr=0x00 vendor=0x15b7 device=0x5006 subvendor=0x15b7 subdevice=0x5006
    vendor     = 'Sandisk Corp'
    device     = 'WD Black SN750 / PC SN730 NVMe SSD'
    class      = mass storage
    subclass   = NVM
vgapci1@pci0:48:0:0:    class=0x030000 rev=0xc9 hdr=0x00 vendor=0x1002 device=0x1638 subvendor=0x1002 subdevice=0x1636
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Cezanne'
    class      = display
    subclass   = VGA
none1@pci0:48:0:1:      class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0x1637 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Renoir Radeon High Definition Audio Controller'
    class      = multimedia
    subclass   = HDA
none2@pci0:48:0:2:      class=0x108000 rev=0x00 hdr=0x00 vendor=0x1022 device=0x15df subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Family 17h (Models 10h-1fh) Platform Security Processor'
    class      = encrypt/decrypt
xhci1@pci0:48:0:3:      class=0x0c0330 rev=0x00 hdr=0x00 vendor=0x1022 device=0x1639 subvendor=0x1462 subdevice=0x7c56
    vendor     = 'Advanced Micro Devices, Inc. [AMD]'
    device     = 'Renoir/Cezanne USB 3.1'
    class      = serial bus
    subclass   = U
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Code:
vgapci0@pci0:18:0:0:    class=0x030000 rev=0xc7 hdr=0x00 vendor=0x1002 device=0x743f subvendor=0x1043 subdevice=0x05dd
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    class      = display
    subclass   = VGA
none0@pci0:18:0:1:      class=0x040300 rev=0x00 hdr=0x00 vendor=0x1002 device=0xab28 subvendor=0x1002 subdevice=0xab28
    vendor     = 'Advanced Micro Devices, Inc. [AMD/ATI]'
    device     = 'Navi 21 HDMI Audio [Radeon RX 6800/6800 XT / 6900 XT]'
    class      = multimedia
    subclass   = HDA


Leg zwei Tunables (System > Tunables) an:

Type: loader
Name: vmm_load
Value: YES

Type: loader
Name: pptdevs
Value: 18/0/0 18/0/1

und reboote dein NAS. Dann solltest du eine VM anlegen und die Karte als PCI-Device hinzufügen können.
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Leg zwei Tunables (System > Tunables) an und reboote dein NAS. Dann solltest du eine VM anlegen und die Karte als PCI-Device hinzufügen können.

die tunables hab ich erfolgreich angelegt , und eine vm auch , hab nun versucht die geräte hinzuzufügen allerdings bekomm ich folgende meldungen

bRMhr8w.png


Code:
Fehler: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 139, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1240, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/service.py", line 496, in create
    rv = await self.middleware._call(
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1240, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 981, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 2096, in do_create
    data = await self.validate_device(data)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 2391, in validate_device
    raise verrors
middlewared.service_exception.ValidationErrors: [EINVAL] attribute.pptdev: IOMMU support is required.

 
Last edited:

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Guck mal im BIOS Setup, ob du die IOMMU an oder aus knipsen kannst und dass sie auch eingeschaltet ist. Manchmal heißt das auch VT-d. Guckst du hier:

Wenn das nicht vorhanden ist oder nicht hilft, hast du Pech mit deiner Hardware. Kannst dann höchstens TN SCALE ausprobieren, das basiert auf Linux, vielleicht ist es da anders.
 

xST4R

Dabbler
Joined
Feb 19, 2024
Messages
21
Guck mal im BIOS Setup, ob du die IOMMU an oder aus knipsen kannst und dass sie auch eingeschaltet ist. Manchmal heißt das auch VT-d. Guckst du hier:

Wenn das nicht vorhanden ist oder nicht hilft, hast du Pech mit deiner Hardware. Kannst dann höchstens TN SCALE ausprobieren, das basiert auf Linux, vielleicht ist es da anders.

das problem scheint gerade ein anderes zu sein , ich bekomm überall fehlermeldungen mit python

zb wenn ich auf plugins klicke kommt das :

Code:
Fehler: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 355, in run
    await self.future
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 393, in __run_body
    rv = await self.middleware.run_in_thread(self.method, *([self] + args))
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1159, in run_in_thread
    return await self.run_in_executor(self.thread_pool_executor, method, *args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1156, in run_in_executor
    return await loop.run_in_executor(pool, functools.partial(method, *args, **kwargs))
  File "/usr/local/lib/python3.9/concurrent/futures/thread.py", line 58, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 985, in nf
    return f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/jail_freebsd.py", line 372, in available
    return self.middleware.call_sync('plugin.available_impl', options).wait_sync(raise_error=True)
  File "/usr/local/lib/python3.9/site-packages/middlewared/job.py", line 326, in wait_sync
    raise CallError(self.error)
middlewared.service_exception.CallError: [EFAULT] Cmd('git') failed due to: exit code(128)
  cmdline: git clone -v https://github.com/freenas/iocage-ix-plugins.git /mnt/test/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git
  stderr: 'Cloning into '/mnt/test/iocage/.plugins/github_com_freenas_iocage-ix-plugins_git'...
fatal: unable to access 'https://github.com/freenas/iocage-ix-plugins.git/': Could not resolve host: github.com


wenn ich die geräte hinzufügen möchte kommt das :

Code:
Fehler: Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 139, in call_method
    result = await self.middleware._call(message['method'], serviceobj, methodobj, params, app=self)
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1240, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/service.py", line 496, in create
    rv = await self.middleware._call(
  File "/usr/local/lib/python3.9/site-packages/middlewared/main.py", line 1240, in _call
    return await methodobj(*prepared_call.args)
  File "/usr/local/lib/python3.9/site-packages/middlewared/schema.py", line 981, in nf
    return await f(*args, **kwargs)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 2096, in do_create
    data = await self.validate_device(data)
  File "/usr/local/lib/python3.9/site-packages/middlewared/plugins/vm.py", line 2391, in validate_device
    raise verrors
middlewared.service_exception.ValidationErrors: [EINVAL] attribute.pptdev: IOMMU support is required.


oder wenn ich auf updaten von truenas klicke kommt das :

937PPHu.png


im bios war ich gerade auch schon und hab geschaut ob iommu aktiviert ist ->


KJS9olJ.png


K8ewB4x.png


das sollte alles ja soweit passen oder ? das verwirrt mich gerade alles etwas
 

Patrick M. Hausen

Hall of Famer
Joined
Nov 25, 2013
Messages
7,776
Beim Klicken auf Plugins kommt doch das: Could not resolve host: github.com

Du hast also dein Netzwerk, speziell deinen DNS-Server unter Network > Global Settings nicht richtig konfiguriert. Das ist alles. Hat nichts mit dem PCI zu tun.

Die Update-Funktion sagt genau dasselbe. Dein Netzwerk ist vergurkt. Du musst unter Interfaces eine IP-Adresse einstellen, das hast du wohl, sonst wäre das UI nicht erreichbar. Und unter Global Settings einen Defaultgateway und einen DNS-Server. Das ist beides der Router, den alle anderen Geräte im Netz auch benutzen.


Die andere Meldung hatten wir ebenfalls schon. Und das ist wirklich "rocket science", PCI passthrough ist nichts, was aktuell selbstverständlich ist oder mit jedem Mainboard oder mit jedem Betriebssystem einfach so funktioniert. Dann geht es zumindest mit deiner Hardware und TN CORE eben nicht. Wie gesagt, probier noch TN SCALE, wenn es damit auch nicht geht, dann ist das eben so, dann würdest du andere Hardware brauchen.

Ich hab hier auch 4 Mini-PCs von Shuttle mit "irgendwas AMD mit Grafik drin" und die können weder Passthrough noch nested virtualisation. Ist dann halt die falsche Hardware dafür. Ich hab TN CORE, TN SCALE, ESXi und Proxmox probiert - nada mit diesen speziellen Maschinen.

Gruß
Patrick
 
Top