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.

***GUIDE*** Passing Through Network Controllers to unRAID 6 Virtual Machines

Featured Replies

Just used this to finally setup my dual port NIC in Sophos UTM firewall.  Took me a bit of searching, but remember that some images/isos/vms won't support memory ballooning, so you won't be able to have different initial/max memory settings (they'll need to be the same value). 

  • Replies 197
  • Views 196.3k
  • Created
  • Last Reply

Top Posters In This Topic

Most Popular Posts

  • gfjardim
    gfjardim

    A easier method of discovering the right card to passthrough is running:   #!/bin/bash for ETH in $(find /sys/devices/ -type d -iname "eth[0-9]"); do   port=$(basename $ETH);   export $(cat $ETH

  • I’ll write up a quick guide when I finish work. Sent from my iPhone using Tapatalk

  • L0rdRaiden
    L0rdRaiden

    I have followed the 3rd method in this video to bypass one of my nics. I have a pcie network card with 2 nics i350   This is the iommu group IOMMU group 6:

Posted Images

  • Author

Just used this to finally setup my dual port NIC in Sophos UTM firewall.  Took me a bit of searching, but remember that some images/isos/vms won't support memory ballooning, so you won't be able to have different initial/max memory settings (they'll need to be the same value).

 

This is correct.  For Windows, the VirtIO memory balloon driver can be added, but note that if you are passing through a PCI device, you will not be able to take advantage of it (a limitation of PCI device assignment using VFIO, but one that is well worth it).  For non-Windows based guests, if they do not have the Linux virtio memory balloon driver as a part of their kernel, you won't be able to use it either.

  • 4 weeks later...

I had some questions about this guide.

 

In the guide, there is a step about adding a line:

 

pci-stub.ids=8086:153b

 

to the syslinux.cfg

 

I assume this line is "black listing" the device from unraid/hypervisor to make sure it is available to VMs.

 

Edit: I saw in another post another user had this question as well. This guide is about network controllers which are sort of special compared to many devices in that unraid will grab them. Thus this command is needed to explicitly prevent that from happening. I suppose you might want it for SATA controllers...USB controllers? as well. But things like video and sound cards it should not be needed since unraid never tries to control them in the first place.

 

Is this necessary? I've read other guides:

https://lime-technology.com/forum/index.php?topic=38259.msg368555#msg368555

CHBMB that seem to suggest nothing being added to the syslinux.cfg or go file (where is the go file located btw) and it worked just editing the XML.

 

I have devices that have "dependent" devices, like PCI devices behind a bridge or PCI-e cards that actually are PCI devices attached behind a bridge chip on board. Do I simply have to add all these devices to the XML together or does this complicate matters?

 

Related question, when logged in with PuTTy to the server can you edit the syslinux.cfg or other files directly on the flash drive safely? What command should I use to do that. I apologize I am a linux noob.

  • 2 months later...

is it possible to set 2 different nics to 2 vms, if yes, how should I change the syslinux.cfg file?

is it possible to set 2 different nics to 2 vms, if yes, how should I change the syslinux.cfg file?

 

It is possible, although I haven't tried....

 

Here's the relevant bit of my syslinux.cfg (I'm passing through a dual-NIC and a USB bus) obviously you'll need to find your own values.

 

append pci-stub.ids=8086:105e,8086:1e26 initrd=/bzroot

 

I'm not sure whether I could pass each port from the dual-NIC to different VMs, but from reading your post that doesn't sound like what you're planning.

 

It is possible, although I haven't tried....

 

Here's the relevant bit of my syslinux.cfg (I'm passing through a dual-NIC and a USB bus) obviously you'll need to find your own values.

 

append pci-stub.ids=8086:105e,8086:1e26 initrd=/bzroot

 

I'm not sure whether I could pass each port from the dual-NIC to different VMs, but from reading your post that doesn't sound like what you're planning.

 

How about setting one of them to the vms and the other one to the unraid server, because I got the "one or more network protocols are missing" error on either one of the vms when I only use eth0. If I assign eth1 to vm1, the error appears on vm2, vice versa.

 

It is possible, although I haven't tried....

 

Here's the relevant bit of my syslinux.cfg (I'm passing through a dual-NIC and a USB bus) obviously you'll need to find your own values.

 

append pci-stub.ids=8086:105e,8086:1e26 initrd=/bzroot

 

I'm not sure whether I could pass each port from the dual-NIC to different VMs, but from reading your post that doesn't sound like what you're planning.

 

How about setting one of them to the vms and the other one to the unraid server, because I got the "one or more network protocols are missing" error on either one of the vms when I only use eth0. If I assign eth1 to vm1, the error appears on vm2, vice versa.

 

The syslinux bit essentially removes the NICs from Unraid to be used solely by VMs... I'm quite confused now.

 

I thought you had two different NICs and you wanted to passthrough one to one VM and the other to another VM....

 

I think if you posted a bit more info on your config it might help clear things up and exact details of your hardware..

 

It is possible, although I haven't tried....

 

Here's the relevant bit of my syslinux.cfg (I'm passing through a dual-NIC and a USB bus) obviously you'll need to find your own values.

 

append pci-stub.ids=8086:105e,8086:1e26 initrd=/bzroot

 

I'm not sure whether I could pass each port from the dual-NIC to different VMs, but from reading your post that doesn't sound like what you're planning.

 

How about setting one of them to the vms and the other one to the unraid server, because I got the "one or more network protocols are missing" error on either one of the vms when I only use eth0. If I assign eth1 to vm1, the error appears on vm2, vice versa.

 

The syslinux bit essentially removes the NICs from Unraid to be used solely by VMs... I'm quite confused now.

 

I thought you had two different NICs and you wanted to passthrough one to one VM and the other to another VM....

 

I think if you posted a bit more info on your config it might help clear things up and exact details of your hardware..

 

Sorry for the confusion, my motherboard is ASUS Z97 Sabertooth Mark S (which have two lan ports, does this count as two nics or one? one of them is realtek and the other one is intel)

 

Could I assign the realtek one to vm1, and intel one to vm2? Or do I need another one for the unraid server itself?

You need one for Unraid, that leaves one, whether you'll be succesful passing through that I couldn't say. 

 

Is there a reason why you want to passthrough rather than just creating a bridge?

The reason that I want to passthrough is that I get the "one or more network protocols are missing" error, and just want to see if passthrough would solve this problem.

The reason that I want to passthrough is that I get the "one or more network protocols are missing" error, and just want to see if passthrough would solve this problem.

Which software did you install on the VM?

The reason that I want to passthrough is that I get the "one or more network protocols are missing" error, and just want to see if passthrough would solve this problem.

Which software did you install on the VM?

 

Windows 10 on both of them.

League of Legend and some basic stuffs, thats all

No firewall or anti-virus? A quick Google search showed that the error was caused by firewalls or anti-virus software.

No firewall or anti-virus? A quick Google search showed that the error was caused by firewalls or anti-virus software.

 

none at all, as I know problems could happen with them.

Have you tried different versions of the netkvm drivers from the virtio download page?

Hmm...... haven't tried this, I am trying this, hope it works.

No luck, I have still got that error, I might just get another nic in the next few days to try.

I've been using an Intel Dual NIC with no problems fwiw

 

I have no idea why this happens, hope the new nic would solve this problem. And also, I was looking for pcie nic earlier, some of them says server nic, and the others without the word 'server', should I get the one with 'server' or not?

I'm not sure tbh, but I remember researching the model I bought to ensure good Linux compatibility before I bought it, although I'm not sure how important that is when using for passthrough I figure it's still a good attribute for a NIC to possess.

have u got any nic suggestions? (something cost about $30?)

 

have u got any nic suggestions? (something cost about $30?)

 

eBay, something Intel and PCIe

So it would be ok as long as the nic is Intel and pcie?

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.