Jump to content

GPU Pass through to VM in FreeNAS

So I just got an Ubuntu VM running in FreeNAS and I know you can pass a NIC or drives to the VM. Now lets say I want to have a gpu on the VM for some better number crunching power. If i just slapped the gpu in the system then edit the vm and add the gpu as a device would it work or would freenas not even see it as a device to pass to the vm? Any and all help is much appreciated 

Link to comment
Share on other sites

Link to post
Share on other sites

2 minutes ago, Turretgaming said:

So I just got an Ubuntu VM running in FreeNAS and I know you can pass a NIC or drives to the VM. Now lets say I want to have a gpu on the VM for some better number crunching power. If i just slapped the gpu in the system then edit the vm and add the gpu as a device would it work or would freenas not even see it as a device to pass to the vm? Any and all help is much appreciated 

PCI passthrough, as it's called, is handled by the VM itself, assuming you have the new enough hardware to do this.

 

NOTE: I no longer frequent this site. If you really need help, PM/DM me and my e.mail will alert me. 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Radium_Angel said:

PCI passthrough, as it's called, is handled by the VM itself, assuming you have the new enough hardware to do this.

 

the cpu is haswell (4130 i3 but looking to make it a Xeon E3-1231 V3 soon) but the gpu will be a 1060 6gb and if i added it the system and booted up in freenas and started the Ubuntu vm it will just work or do i have to configure anything?

Link to comment
Share on other sites

Link to post
Share on other sites

Noope, won't work.

You need IOMMU to be able to assign gpu's to VM's like you want to do.

Thing is, it's only available on i5's and i7's.

 

I have a 4170 myself and tried gpu passthrough with unraid and it didn't work because the stupid cpu doesn't support iommu...

 

Don't know about the xeon tho.

If you want my attention, quote meh! D: or just stick an @samcool55 in your post :3

Spying on everyone to fight against terrorism is like shooting a mosquito with a cannon

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, samcool55 said:

Noope, won't work.

You need IOMMU to be able to assign gpu's to VM's like you want to do.

Thing is, it's only available on i5's and i7's.

 

I have a 4170 myself and tried gpu passthrough with unraid and it didn't work because the stupid cpu doesn't support iommu...

 

Don't know about the xeon tho.

so an i7 4770k might work as its an i7 on the same platform 

Link to comment
Share on other sites

Link to post
Share on other sites

the xeon has support for vt-d

 

Can you run proxmox or anouther linux based hypervisor, it will work much better here, bhvye supports it, but linux kvm supports it better and will work better here.

 

11 minutes ago, Radium_Angel said:

PCI passthrough, as it's called, is handled by the VM itself, assuming you have the new enough hardware to do this.

 

Its handleded by the hypervisor, the vm just gets the devices.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Turretgaming said:

so an i7 4770k might work as its an i7 on the same platform 

the 4470k has vt-d disabled, its enabled on the xeons, 4790k and 4770

Link to comment
Share on other sites

Link to post
Share on other sites

6 minutes ago, Electronics Wizardy said:

the 4470k has vt-d disabled, its enabled on the xeons, 4790k and 4770

https://en.wikipedia.org/wiki/List_of_IOMMU-supporting_hardware

 

this says the i3 4130 has iommu but the i7 4770k doesnt and the i7 4770 non k does and no mention of the xeon chips but i cant see why that would be disabled as xeons are used for vm work environments all the time.

 

also wats vt-d? 

and this is the mobo im using

https://www.newegg.com/Product/Product.aspx?Item=N82E16813157414

 

so since im running the linux os in a vm on freebsd (freenas) it work? and i was using unraid it would work as its linux talking to linux?

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Turretgaming said:

So I just got an Ubuntu VM running in FreeNAS and I know you can pass a NIC or drives to the VM. Now lets say I want to have a gpu on the VM for some better number crunching power. If i just slapped the gpu in the system then edit the vm and add the gpu as a device would it work or would freenas not even see it as a device to pass to the vm? Any and all help is much appreciated 

Can FreeNAS even utilize a GPU in any meaningful way besides standard video output?

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, dalekphalm said:

Can FreeNAS even utilize a GPU in any meaningful way besides standard video output?

I want to pass the gpu to Ubuntu. I went over it in my main post. the system is running freenas and the vm is Ubuntu and i want to pass a gpu to the Ubuntu vm

Link to comment
Share on other sites

Link to post
Share on other sites

21 minutes ago, Turretgaming said:

I want to pass the gpu to Ubuntu. I went over it in my main post. the system is running freenas and the vm is Ubuntu and i want to pass a gpu to the Ubuntu vm

Oh I see - FreeNAS is your bare metal OS, and Ubuntu is the VM. I misinterpreted what you said as the reverse of that.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

22 minutes ago, dalekphalm said:

Oh I see - FreeNAS is your bare metal OS, and Ubuntu is the VM. I misinterpreted what you said as the reverse of that.

whoops sorry about that. But do you have any idea if it will work or if its even possible?

Link to comment
Share on other sites

Link to post
Share on other sites

22 minutes ago, Turretgaming said:

whoops sorry about that. But do you have any idea if it will work or if its even possible?

No idea - FreeNAS VM Support is kinda crap. The interface sucks and it's more difficult to do than in other systems.

 

I actually run my FreeNAS server as a VM ontop of ESXi - which definitely has PCIe passthrough support.

 

From my very limited research, FreeNAS might not even support GPU passthrough:

The VM subsystem that FreeNAS uses - bhyve - does support GPU passthrough, but I don't know if it's implemented on FreeNAS.

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, dalekphalm said:

No idea - FreeNAS VM Support is kinda crap. The interface sucks and it's more difficult to do than in other systems.

 

I actually run my FreeNAS server as a VM ontop of ESXi - which definitely has PCIe passthrough support.

 

From my very limited research, FreeNAS might not even support GPU passthrough:

The VM subsystem that FreeNAS uses - bhyve - does support GPU passthrough, but I don't know if it's implemented on FreeNAS.

I'm running 12.1 and I just got home and slapped the 1060 6gb in and a quick look showed that the system booted and the VM started but I can't see an option to pass a GPU to it. I think it's cause the mobo is using the 1060 for FreeNAS so after work I'll try to tell the mobo to use on board GPU in my i3 4130 and it should leave the 1060 free for the VM to snag it.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Turretgaming said:

I'm running 12.1 and I just got home and slapped the 1060 6gb in and a quick look showed that the system booted and the VM started but I can't see an option to pass a GPU to it. I think it's cause the mobo is using the 1060 for FreeNAS so after work I'll try to tell the mobo to use on board GPU in my i3 4130 and it should leave the 1060 free for the VM to snag it.

Yes you definitely need to run FreeNAS off of the onboard video. Don't plug anything into the 1060 (at least, unless it's another monitor that will only be used by Ubuntu).

For Sale: Meraki Bundle

 

iPhone Xr 128 GB Product Red - HP Spectre x360 13" (i5 - 8 GB RAM - 256 GB SSD) - HP ZBook 15v G5 15" (i7-8850H - 16 GB RAM - 512 GB SSD - NVIDIA Quadro P600)

 

Link to comment
Share on other sites

Link to post
Share on other sites

20 hours ago, dalekphalm said:

Yes you definitely need to run FreeNAS off of the onboard video. Don't plug anything into the 1060 (at least, unless it's another monitor that will only be used by Ubuntu).

ya tried it that way and still failed. I might backup the zfs file for FreeNAS and load up Ubuntu as the baremetal os and run vmware and pass 2 cores and 10gb ram to freenas and keep the other 2 cores for Ubuntu.

Link to comment
Share on other sites

Link to post
Share on other sites

1 hour ago, Turretgaming said:

ya tried it that way and still failed. I might backup the zfs file for FreeNAS and load up Ubuntu as the baremetal os and run vmware and pass 2 cores and 10gb ram to freenas and keep the other 2 cores for Ubuntu.

why not run proxmox? You get the same zfs filesystem, and a good hypervisor.

 

Don't run vmware on ububntu, just run exsi if you want that.

 

If you want you can probably get it to work in freenas if you want to mess with bhyve, but really its easier to run proxmox here.

Link to comment
Share on other sites

Link to post
Share on other sites

22 minutes ago, Electronics Wizardy said:

why not run proxmox? You get the same zfs filesystem, and a good hypervisor.

 

Don't run vmware on ububntu, just run exsi if you want that.

 

If you want you can probably get it to work in freenas if you want to mess with bhyve, but really its easier to run proxmox here.

i might try that but i need a new cpu but the e3 1240 v3 and e3 1231 v3 or e3 1286 v3 or e3 1245 v3 that i want are all over $300-$500 new or i can find them on ebay for $150-$500 but idk if i can trust ebay. does anyone know where i can get them at a fair price and not have to worry about the quality. My 4130 is currently using all core multiplier of 3.4ghz to pin the cpu at 3.4ghz so i get max performance at all times cause i max out the cpu doing this stuff.

Link to comment
Share on other sites

Link to post
Share on other sites

1 minute ago, Turretgaming said:

i might try that but i need a new cpu but the e3 1240 v3 and e3 1231 v3 or e3 1286 v3 or e3 1245 v3 that i want are all over $300-$500 new or i can find them on ebay for $150-$500 but idk if i can trust ebay. does anyone know where i can get them at a fair price and not have to worry about the quality. My 4130 is currently using all core multiplier of 3.4ghz to pin the cpu at 3.4ghz so i get max performance at all times cause i max out the cpu doing this stuff.

How about just running windows on the host or whatever os you want to run gpu programs with?

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Electronics Wizardy said:

How about just running windows on the host or whatever os you want to run gpu programs with?

that could work but again im limited by the cpu sadly 

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Turretgaming said:

that could work but again im limited by the cpu sadly 

What are you running on there?
 

Id just get something like this if you want a faster cheap cpu .https://www.ebay.com/itm/Intel-Xeon-E3-1220v3-Quad-Core-3-10GHz-SR154-8MB-LGA-1150-CPU-Processor/113611507787?epid=1223020354&hash=item1a73c6084b:g:bMUAAOSwXINcVVBS:rk:2:pf:0

Link to comment
Share on other sites

Link to post
Share on other sites

is it trustworthy though? i havent used ebay before and im worried about getting ripped off

Link to comment
Share on other sites

Link to post
Share on other sites

Link to comment
Share on other sites

Link to post
Share on other sites

9 minutes ago, Turretgaming said:

is it trustworthy though? i havent used ebay before and im worried about getting ripped off

For used stuff its your best source, and you can get a refund if it doesn't come to you. Its pretty good.

 

Id get the e3 1240 v3 there if you want to spend a bit more.

Link to comment
Share on other sites

Link to post
Share on other sites

Just now, Electronics Wizardy said:

For used stuff its your best source, and you can get a refund if it doesn't come to you. Its pretty good.

 

Id get the e3 1240 v3 there if you want to spend a bit more.

ya it has hyper-threading which can be useful

Link to comment
Share on other sites

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×