Skip to content
View in the app

A better way to browse. Learn more.

Unraid

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

PCIe Passtrough "None Available"

Featured Replies

  • Replies 87
  • Views 8.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • Stop vm, Edit xml and change to XML view via the slider top right    Make a copy of the XML before changing. Creating diagnostics will have a copy of the xml in it also.  

  • Yes you can edit here /usr/local/emhttp/plugins/dynamix.vm.manager/include/libvirt_helpers.php   Around line 766 you could do this   if (in_array($arrMatch['id'], $arrBlacklistID

  • Thank You very much. This is working for me!

Posted Images

I tested proxmox and the pcie coral card appears??
It’s a shame that it’s so complicated on unraid

  • Community Expert
2 hours ago, sapphireone said:

I tested proxmox and the pcie coral card appears??
It’s a shame that it’s so complicated on unraid

Can you run this command so you get this output. I will then check to see if it can be added as a valid type.

 

root@computenode:~# lspci -m -nn -s 03:00.0
03:00.0 "VGA compatible controller [0300]" "Intel Corporation [8086]" "DG2 [Arc A770] [56a0]" -r08 -p00 "Intel Corporation [8086]" "Device [1020]"

Okay I restart the machine

Edited by sapphireone

5 hours ago, SimonF said:

Can you run this command so you get this output. I will then check to see if it can be added as a valid type.

It's already been posted in a comment on the first page of this thread:

 

yes I saw that but it doesn't work or is it just me who doesn't know how to do it very well??

do you think this will work??

 

    <driver name='vfio'/> 
    <source>
    <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    <source> 
    </hostdev>
 

 

  • Community Expert
12 minutes ago, sapphireone said:

do you think this will work??

 

    <driver name='vfio'/> 
    <source>
    <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    <source> 
    </hostdev>
 

 

Would need to be

 

<hostdev mode='subsystem' type='pci' managed='yes'>

<driver name='vfio'/>

<source>

<address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>

</source>

</hostdev>

It does not work

 

<?xml version='1.0' encoding='UTF-8'?>
<domain type='kvm'>
  <name>Linux</name>
  <uuid>bb16ddac-d277-68e8-2020-87e29e70d5f1</uuid>
  <description>Homeassistant</description>
  <metadata>
    <vmtemplate xmlns="unraid" name="Linux" icon="linux.png" os="linux"/>
  </metadata>
  <memory unit='KiB'>8388608</memory>
  <currentMemory unit='KiB'>8388608</currentMemory>
  <memoryBacking>
    <nosharepages/>
  </memoryBacking>
  <vcpu placement='static'>4</vcpu>
  <cputune>
    <vcpupin vcpu='0' cpuset='0'/>
    <vcpupin vcpu='1' cpuset='1'/>
    <vcpupin vcpu='2' cpuset='2'/>
    <vcpupin vcpu='3' cpuset='3'/>
  </cputune>
  <os>
    <type arch='x86_64' machine='pc-q35-7.1'>hvm</type>
    <loader readonly='yes' type='pflash'>/usr/share/qemu/ovmf-x64/OVMF_CODE-pure-efi.fd</loader>
    <nvram>/etc/libvirt/qemu/nvram/bb16ddac-d277-68e8-2020-87e29e70d5f1_VARS-pure-efi.fd</nvram>
  </os>
  <features>
    <acpi/>
    <apic/>
  </features>
  <cpu mode='host-passthrough' check='none' migratable='on'>
    <topology sockets='1' dies='1' cores='2' threads='2'/>
    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/mnt/disk1/domains/homeassistant/haos_ova-10.5.qcow2'/>
      <target dev='hdc' bus='virtio'/>
      <serial>vdisk1</serial>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    </disk>
    <controller type='usb' index='0' model='ich9-ehci1'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x7'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci1'>
      <master startport='0'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0' multifunction='on'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci2'>
      <master startport='2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x1'/>
    </controller>
    <controller type='usb' index='0' model='ich9-uhci3'>
      <master startport='4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x2'/>
    </controller>
    <controller type='sata' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x1f' function='0x2'/>
    </controller>
    <controller type='pci' index='0' model='pcie-root'/>
    <controller type='pci' index='1' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='1' port='0x10'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0' multifunction='on'/>
    </controller>
    <controller type='pci' index='2' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='2' port='0x11'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x1'/>
    </controller>
    <controller type='pci' index='3' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='3' port='0x12'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x2'/>
    </controller>
    <controller type='pci' index='4' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='4' port='0x13'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x3'/>
    </controller>
    <controller type='pci' index='5' model='pcie-root-port'>
      <model name='pcie-root-port'/>
      <target chassis='5' port='0x14'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x4'/>
    </controller>
    <controller type='virtio-serial' index='0'>
      <address type='pci' domain='0x0000' bus='0x02' slot='0x00' function='0x0'/>
    </controller>
    <interface type='bridge'>
      <mac address='52:54:00:0a:a7:4f'/>
      <source bridge='br0'/>
      <model type='virtio-net'/>
      <address type='pci' domain='0x0000' bus='0x01' slot='0x00' function='0x0'/>
    </interface>
    <serial type='pty'>
      <target type='isa-serial' port='0'>
        <model name='isa-serial'/>
      </target>
    </serial>
    <console type='pty'>
      <target type='serial' port='0'/>
    </console>
    <channel type='unix'>
      <target type='virtio' name='org.qemu.guest_agent.0'/>
      <address type='virtio-serial' controller='0' bus='0' port='1'/>
    </channel>
    <input type='tablet' bus='usb'>
      <address type='usb' bus='0' port='3'/>
    </input>
    <input type='mouse' bus='ps2'/>
    <input type='keyboard' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' websocket='-1' listen='0.0.0.0' keymap='fr'>
      <listen type='address' address='0.0.0.0'/>
    </graphics>
    <audio id='1' type='none'/>
    <video>
      <model type='qxl' ram='65536' vram='65536' vgamem='16384' heads='1' primary='yes'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x0'/>
    </video>
    <hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source startupPolicy='optional'>
        <vendor id='0x1a86'/>
        <product id='0x55d4'/>
      </source>
      <address type='usb' bus='0' port='1'/>
    </hostdev>
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source startupPolicy='optional'>
        <vendor id='0x2357'/>
        <product id='0x0604'/>
      </source>
      <address type='usb' bus='0' port='2'/>
    </hostdev>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    </memballoon>
  </devices>
</domain>
 

I saw that this address is used

 

 

    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/mnt/disk1/domains/homeassistant/haos_ova-10.5.qcow2'/>
      <target dev='hdc' bus='virtio'/>
      <serial>vdisk1</serial>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  

  • Community Expert
5 minutes ago, sapphireone said:

I saw that this address is used

 

 

    <cache mode='passthrough'/>
    <feature policy='require' name='topoext'/>
  </cpu>
  <clock offset='utc'>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='hpet' present='no'/>
  </clock>
  <on_poweroff>destroy</on_poweroff>
  <on_reboot>restart</on_reboot>
  <on_crash>restart</on_crash>
  <devices>
    <emulator>/usr/local/sbin/qemu</emulator>
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='writeback'/>
      <source file='/mnt/disk1/domains/homeassistant/haos_ova-10.5.qcow2'/>
      <target dev='hdc' bus='virtio'/>
      <serial>vdisk1</serial>
      <boot order='1'/>
      <address type='pci' domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
  

That is the address as it will be seen in the VM. For the TPU it will be address below. Do you have any errors in the VM log or pop ups? Is the TPU bound to vfio in the system devices on the tools menu?

 

<hostdev mode='subsystem' type='pci' managed='yes'>
      <driver name='vfio'/>
      <source>
        <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
      </source>
      <address type='pci' domain='0x0000' bus='0x05' slot='0x00' function='0x0'/>
    </hostdev>

I don't have any error it happens but in the creation of the vm it is not in other pci

😞

for info in vm manager I didn't check anything

vm manger.png

  • Community Expert
11 minutes ago, sapphireone said:

😞

It will not appear in the list, You might need to add back if you make changes in the gui.

 

I have made a PR to allow this to be seen in the next release.

 

Once you have added in the XML. Start the VM and it should be available in HA.

I hope the next unraid version will be much more

Edited by sapphireone

    <hostdev mode='subsystem' type='pci' managed='yes'>
    <driver name='vfio'/> 
    <source>
    <address domain='0x0000' bus='0x03' slot='0x00' function='0x0'/>
    <address domain='0x0000' bus='0x04' slot='0x00' function='0x0'/>
    <source> 
    </hostdev>





 

Edited by sapphireone

no boot

I come back, I spent too much time to make this pci card from Google Coral work on unraid so I switched to proxmox no problem it all recognizes its problem is I emulated unraid which coexists and it works very well

  • 3 weeks later...

sollution for me was: in the terminal type: cd /usr/local/emhttp/plugins/dynamix.vm.manager/include  then: nano libvirt_helpers.php

 

now look for this line:         $arrBlacklistClassIDregex = '/^(05|06|08|0a|0b|0c05)/';    and remove : 08|

 

save the file and now the coral is visable

sollution for me was:

 

In the terminal type: cd /usr/local/emhttp/plugins/dynamix.vm.manager/include 

then: nano libvirt_helpers.php

 

now look for this line:         $arrBlacklistClassIDregex = '/^(05|06|08|0a|0b|0c05)/';    and remove : 08|

 

save the file and now the coral is visable in the list to add to your VM.

 

 

  • 4 weeks later...

Hi,

Just wanted to say a great thanks to K Niesten for his solution.

I have been trying during three hours to make it works under home assistant as a vm.

Still, I had to struggle again in home assistant to make it recognize coral.

I have to uninstall frigate, install the regular version and it recognize it but what a pain....

 

  • Community Expert
51 minutes ago, spourt38 said:

Hi,

Just wanted to say a great thanks to K Niesten for his solution.

I have been trying during three hours to make it works under home assistant as a vm.

Still, I had to struggle again in home assistant to make it recognize coral.

I have to uninstall frigate, install the regular version and it recognize it but what a pain....

 

Which Unraid OS version are you running? as should work on 6.12.5rc1

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.