Jump to content

Basic questions about stubbing


Naldinho

Recommended Posts

I have a VM that has a soundcard, USB card, and a graphics card. These items are not used by any other VM.

 

1) Would I get better performance by stubbing all three?

 

2) Did upgrading to 6.2 change the id of cards?

 

label unRAID OS
  menu default
  kernel /bzimage
  append initrd=/bzroot
  append pci-stub.ids=2109:0812 isolcpus=11,12,13,14,15,27,28,29,30,31 initrd=/bzroot

 

is my current Syslinux but I have no card with id 2109:0812. I haven't changed anything except to upgrade to 6.2.

 

3) If I was to stub all three cards -- is the correct format

 

append pci-stub.ids=XXXX:XXXX  pci-stub.ids=XXXX:XXXX  pci-stub.ids=XXXX:XXXX isolcpus=11,12,13,14,15,27,28,29,30,31 initrd=/bzroot

Link to comment

I had to stub my USB controller that i use to passthrough or two of the usb ports didnt work after restarting a VM even when i restarted the server (I had to shut down the server, turn off the PSU, wait a few seconds and then start the server again to fix the ports). After stubbing the controller i can restart the VM and the ports still work.

USB Controller stubbing tutorial

 

I dont know if you get better performance but it could be possible if an error causes the performance to become really slow, i think its very unlikely through. I think it either works, doesn't work or is extremely slow.

 

IIRC all versions above RC2 or 3 (including 6.2 stable) changed the ids of cards, thats the reason why i am staying on RC2 until i have time to fix any problem that might happen because of the changed ids when updating.

 

This should be the correct format if you want to stub multiple devices:

pci-stub.ids=XXXX:XXXX,XXXX:XXXX,XXXX:XXXX

Link to comment

I had to stub my USB controller that i use to passthrough or two of the usb ports didnt work after restarting a VM even when i restarted the server (I had to shut down the server, turn off the PSU, wait a few seconds and then start the server again to fix the ports). After stubbing the controller i can restart the VM and the ports still work.

USB Controller stubbing tutorial

 

I have that exact issue so good to know stubbing might fix that.

 

Since upgrading to 6.2 my USB card only recognize USB 3.0 devices. It used to recognize older USB devices as it should. Hopefully when I stub it that will get fixed as well.

 

Thank you for the response. I'll stub all three this evening.

Link to comment

Dont forget to turn off the PSU for a few seconds when restarting the server after stubbing the controller!

 

EDIT: I read your other posts and it looks like you cant passthrough the 2.0 ports. Find the IOMMU group of the controller and pass through all other devices in the group (Be careful to not accidentally stub the controller that the unRAID flash drive is using).

Link to comment

This is an add-on card and I'm passing the entire card through and it is the only device in the group

 

04:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller [1b21:1242]

 

/sys/kernel/iommu_groups/16/devices/0000:01:00.0
/sys/kernel/iommu_groups/17/devices/0000:04:00.0
/sys/kernel/iommu_groups/18/devices/0000:05:00.0

 

Your post does raise a question for me -- I'm about to stub everything in a few minutes and see what happens. With the graphics card there are two items in the group -- the graphics card itself and the on-board sound card that I don't use. Do I need to stub both of them since they are part of the same iommu group? Currently I don't pass-through the on-board sound card -- should I?

Link to comment

Stubbing did not fix the USB problem -- I can still only use USB 3.0 devices.

 

01:00.0 Audio device [0403]: Creative Labs SB Recon3D [1102:0012] (rev 01)
04:00.0 USB controller [0c03]: ASMedia Technology Inc. ASM1142 USB 3.1 Host Controller [1b21:1242]
05:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Turks XT [Radeon HD 6670/7670] [1002:6758]
05:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Turks/Whistler HDMI Audio [Radeon HD 6000 Series] [1002:aa90]

 

default /syslinux/menu.c32
menu title Lime Technology
prompt 0
timeout 50
label unRAID OS
  menu default
  kernel /bzimage
  append initrd=/bzroot
  append pci-stub.ids=1b21:1242,1102:0012,1002:6758,1002:aa90 isolcpus=11,12,13,14,15,27,28,29,30,31 initrd=/bzroot
label unRAID OS GUI Mode
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui
label unRAID OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Memtest86+
  kernel /memtest

 

default /syslinux/menu.c32
menu title Lime Technology
prompt 0
timeout 50
label unRAID OS
  menu default
  kernel /bzimage
  append initrd=/bzroot
  append pci-stub.ids=1b21:1242,1102:0012,1002:6758,1002:aa90 isolcpus=11,12,13,14,15,27,28,29,30,31 initrd=/bzroot
label unRAID OS GUI Mode
  kernel /bzimage
  append initrd=/bzroot,/bzroot-gui
label unRAID OS Safe Mode (no plugins, no GUI)
  kernel /bzimage
  append initrd=/bzroot unraidsafemode
label Memtest86+
  kernel /memtest

 

If anyone has any ideas I'd greatly appreciate some help as I've run out of things to try.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...