Тёмный

Proxmox 6.1 and 6.2 PCIe Passthrough 

Allen Sampsell
Подписаться 3,4 тыс.
Просмотров 20 тыс.
50% 1

In this video I detail the different changes needed to get GPU passthrough working on Proxmox version 6.1 and the recently released 6.2. If under 6.2 you are getting IOMMU errors when trying to start previously working VMs you'll want to try the suggested changes. Please let me know if you have any questions. And don't forget to hit that SUBSCRIBE button!
Link for the 6.1 fix:
forum.proxmox.com/threads/fix...
Link for the 6.2 fix:
forum.proxmox.com/threads/iom...
Link to Ultimate Beginners Guide to GPU Passthrough (Is not updated for the 6.2 fix above, but great info):
/ the_ultimate_beginners...

Наука

Опубликовано:

 

12 май 2020

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 100   
@merlingt1
@merlingt1 4 года назад
I have been breaking my head for so long trying to get this to work! Thank you!!! Moving unsafe_interrupts to the GRUB did the job. Subscribed!
@AllenSampsell
@AllenSampsell 4 года назад
You're welcome!
@jovaniedelacruz
@jovaniedelacruz 3 года назад
Just started with ProxMox 6.3-2 and moved my previous baremetal FreeNas to a ProxMox VM where I passthrough my boot SSD and passthrough my pcie Sata controller. This was the only guide among forums, reddit, and RU-vid that got me on the right track. Following the IOMMU guide was great but I think it was finally the Grub modifications that allowed my SATA controller + drives to finally become visible to my VM. Was very frustrating because at FreeNas boot I could see my controller device but the drives just wouldn't mount. THANK YOU!
@AllenSampsell
@AllenSampsell 3 года назад
Very glad to have pointed you in the right direction. That’s definitely an interesting setup. Passing the controller through I’ve heard of. But not someone passing through the boot drive as well. Good to know
@dhcpy
@dhcpy 4 года назад
Man, I learned so much from your video. Discovered that bookstack thing, that I'll install for myself and team right away, just noticed proxmox new release and saved me a ton of time breaking the cpu passthrough with and outdated tutorial.
@AllenSampsell
@AllenSampsell 4 года назад
Glad I could help! I love BookStack. MediaWiki has it's place but BookStack is just so easy. :)
@neiion
@neiion 4 года назад
thanks for the info Allen, this worked great for me. also thanks for letting me know about bookstack.
@AllenSampsell
@AllenSampsell 4 года назад
Neil ion glad it helped and bookstack is pretty awesome.
@jacobnoori
@jacobnoori 3 года назад
Thank you! After almost giving up, your suggested modifications got my GPU passthrough working. My advice to anybody else is don't follow any other YT guides to the "T" since at the moment, they're all outdated.
@AllenSampsell
@AllenSampsell 3 года назад
Jacob Noori glad it helped and you’re right any older guides don’t really capture this.
@Hematologic
@Hematologic 3 года назад
This video saved me from abandoning proxmox and just installing my os on bare metal. Thank you so much for sharing this.
@AllenSampsell
@AllenSampsell 3 года назад
Glad it helped. I live Proxmox. But sometimes you gotta work at it LOL.
@NFreund
@NFreund 3 года назад
While the specific line didn't work for my AMD Epyc CPU (apparently it has no IRQ Chip), the rest of that line actually helped me. I had the issue that if Windows loaded the GPU, it just bluescreened (or crashed and stopped). Not it works with the arguments from your line! Thank you very much :)
@AllenSampsell
@AllenSampsell 3 года назад
Nexusband glad it helped. There are lines for AMD in the Ultimate Guide to GPU passthrough and on the Proxmox wiki. But I use intel chips in my R710s so I’ve never had to use anything other than the intel lines.
@yo3isl
@yo3isl 4 года назад
thank you very much. you fixed the issues that I faced on my R710 with my Nvidia GPU. :-)
@AllenSampsell
@AllenSampsell 4 года назад
I'm glad it helped... NVIDIA is a pain. :)
@yo3isl
@yo3isl 4 года назад
yes it is....now i'm trying to resolve the problem with Code 43. and Nvidia Drivers have successfully installed. Any ideas? :-(
@AllenSampsell
@AllenSampsell 4 года назад
@@yo3isl are your settings correct for the VM so that it doesn't know it's a VM? pause right here and look at the settings for args and CPU... ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-_fkKIMF3HZw.html
@yo3isl
@yo3isl 4 года назад
config file is ok, problem seems to be from chipset. root@r710:~# dmesg | grep 'remapping' [ 0.854121] DMAR-IR: This system BIOS has enabled interrupt remapping on a chipset that contains an erratum making that feature unstable. To maintain system stability interrupt remapping is being disabled. Please contact your BIOS vendor for an update. Source: www.suse.com/support/kb/doc/?id=000018235
@AllenSampsell
@AllenSampsell 4 года назад
Mihai Stroescu no I get that error as well. Have you done the second part of the video? What version of Proxmox are you on?
@hrobayo1980
@hrobayo1980 3 года назад
It's awesome, thanks!! it worrksss
@AllenSampsell
@AllenSampsell 3 года назад
Glad it helped you out... :)
@errorlooo8124
@errorlooo8124 4 года назад
Basically if you're on proxmox 6.2 ( not 6.1 ), the way you allow unsafe interrupts had changed and you need to pass a kernel argument (you can do that by editing grub file) instead of using the normal way.
@Brentpn
@Brentpn 4 года назад
allen, thanks for documenting this process on unsafe interrupts for us r710 users!! why are these changes not documented on anything i can find on the proxmox website?
@AllenSampsell
@AllenSampsell 4 года назад
That's a great question but it's probably because it doesn't effect everyone the same way. I mean they stated they were changing to that new kernel. So I'm betting we were supposed to understand any impacts to a non standard configuration.... Which I didn't lol. I did find that answer in the Proxmox forums, and I believe the response was from a Proxmox admin/rep. But it did take some digging. I found it also in a Reddit forum post, but only after I had found it myself and made the video...
@garymccloskey3710
@garymccloskey3710 4 года назад
Can you put the links to the forum posts where you found the information here? The ones for 6.1 and 6.2 that you showed in your video.
@AllenSampsell
@AllenSampsell 3 года назад
Done. They're in the description now. Thanks for asking. I should have credited them all along.
@rabboubou8860
@rabboubou8860 4 года назад
Hello Thanks for the video dear, Can You share your book stage or the page ? Thanks
@AllenSampsell
@AllenSampsell 4 года назад
I have this one saved as well. One of the best out there. www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/
@TheMatthewDMerrill
@TheMatthewDMerrill 4 года назад
How do you get to and open the config file? at 5:07?
@AllenSampsell
@AllenSampsell 4 года назад
It’s right at the top of the screen. On the Proxmox machine the VM config files are located at /etc/pve/qemu-server/ and you can use a terminal shell for the node right in the Proxmox webpage.
@angelshce
@angelshce 4 года назад
what will be better to do a 1 cpu 2 pc , unraid or proxmox?¿
@AllenSampsell
@AllenSampsell 3 года назад
That's a tough question. I think Proxmox is pretty easy, but to be fair, I've never used unraid.
@6KingsUK
@6KingsUK 4 года назад
i think the command line you showed might be wrong for the args when i tried it your way i got an error but this way seemed to work args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=NV43FIX,kvm=off' -machine 'kernel_irqchip=on'
@AllenSampsell
@AllenSampsell 4 года назад
If you're on 6.2 you don't need the kernel_irqchip=on at all...
@idiki
@idiki 3 года назад
will this work on my hardware? motherboard gigabyte z87-d3hp-cf, cpu i5 4690k , gpu gtx1050ti
@AllenSampsell
@AllenSampsell 3 года назад
Дмитрий Диков I don’t think it’s a matter of the hardware. It’s how iommu groups get handled now. So i believe anyone will need to do it this way.
@ericjauregui3089
@ericjauregui3089 2 года назад
I'm having a heck of a time to do a gpu passthrough (GT 1030) with Proxmox 7.1. All the tutorials I find on RU-vid are for 6.1. Can anyone help?
@AllenSampsell
@AllenSampsell 2 года назад
Should be the same concept but unfortunately I’m not on version 7 just yet.
@michaelortega804
@michaelortega804 3 года назад
Hi, i tried adding the vfio_iommu_type1 allow_unsafe_interrupts=1 on the grub for a HBA LSI passthrough , however still having an issue that when copying a big file to a freenas dataset the freenas just stop/crashed, imgur.com/3DBtAEf do you have any idea? using dell T330 8 bays SAS drive. thanks and great videos.
@AllenSampsell
@AllenSampsell 3 года назад
Sorry but that's definitely outside my wheelhouse. So when you added that line you were able to start the VM correctly and pass through the HBA? That's about all I could help with. I don't use an HBA like that in my systems so I have no experience with it.
@michaelortega804
@michaelortega804 3 года назад
@@AllenSampsell yeah, i have a Dell T330 Server with LSI Controller passthrough to a Freenas vm on proxmox, everything works fine until I start putting some load to the freenas (transferring big files) , it just crashed, still investigating what the cause could be. thanks for replying.
@AllenSampsell
@AllenSampsell 3 года назад
Salvador Ortega don’t rule out other distro like Open Media Vault. OMV is Linux based where freenas is BSD I think.
@jonathanking6566
@jonathanking6566 2 года назад
Hey Allen, Have you tried upgrading to Proxmox VE 7.0 yet? If so, do you still get the GPU passthrough or did it break something? I have not purchased a dedicated GPU yet, but I am on the verge of ordering one. I have extremely laggy performance out of 3 servers I have tried (Dell PowerEdge T310, R710, R815). For reference, the R815 has 4 sockets with 12 cores each, 256 GB RAM, and solid state drives. I have noticed in several of your videos you can smoke me on apt/yum upgrades/updates along with new installs on VM's. It is an interesting problem where I haven't got over the hurdle yet. I am still pushing through though. Any advice would be greatly appreciated. Thank you for your time.
@AllenSampsell
@AllenSampsell 2 года назад
I have not upgraded to 7 yet. Just before it came out I had finished a massive project of creating a cluster and having the VMs loaded from a new NAS I built. So it just hasn't felt worth updating just yet. I wanted to give it more time to shake out the bugs. For speed differences it could boil down to the HBA in IT mode i'm using vs you. Or the storage type you're choosing for your VMs. So many variables, you're just gonna have to test everything. Good luck!
@jonathanking6566
@jonathanking6566 2 года назад
@@AllenSampsell Thank you for the fast response Allen! I am definitely going to keep pushing through. As a software developer, it has been extremely valuable. Even though it may be a little slow at the moment, the pros of being able to spin up different VM's and tear them down far outweighs the cons of it. Depending on the environment, I will also use Ubuntu Server Multipass, but it fills a different gap. Your videos have definitely been helpful. I certainly appreciate the time and effort you put into them. Keep the content coming!
@Xgamerz_channel
@Xgamerz_channel 2 года назад
i tried that fix on proxmox 7.0-2/thinkstation D30 to install k4000 on win10 guest, didn't work, i got code 43 is proxmox installed on a host uefi or legacy ?
@AllenSampsell
@AllenSampsell 2 года назад
Code 43 can pop up for several reasons so it's hard to say, and I'm not on 7.0 quite yet. Is your last question about a proxmox host device? I would think that's dependent on your hardware. Not sure it matters but I suppose it might for pcie pass-through. I know not much help. Sorry.
@Xgamerz_channel
@Xgamerz_channel 2 года назад
​@@AllenSampsell thanks for reply, and for tutorial, finally i managed to passthrough quadro k4000 on proxmox7/win10 by just moving gpu to secondary pcie slot, and put in first slot a cheap gpu to load, and for vm file i removed the whole line of args now the issue still remaining for the first pcie, tried to mount that nvs 310 gpu on a second machine, still get code 43, looks need some params to unload it from host for moment i will test a gtx on first slot to see if there any chance with it
@Xgamerz_channel
@Xgamerz_channel 2 года назад
@@AllenSampsell gtx works fine but with args on first pcie slot, nvs still have issue even in other slots
@AllenSampsell
@AllenSampsell 2 года назад
@@Xgamerz_channel ahh so you’re trying to use the GPU that the system is using? I’ve heard it can be done but since I use Dell servers there’s always a built in one for display and then only one slot for a card. So I’ve never tried it. Good luck though. I image you need to blacklist both cards and run Proxmox headless.
@eucalyptux
@eucalyptux 3 года назад
Thanks ! Does the fresh Proxmox 6.3 fix that ?
@AllenSampsell
@AllenSampsell 3 года назад
“Fix” what? If your question is, does 6.3 behave any different than 6.2? I haven’t run into anything yet.
@skotsmith4269
@skotsmith4269 3 года назад
Allen, I had GPU passthrough working in 6.1, updated to 6.2 and it busted. I followed your guide, but still no go. This is a Dell T7500 with an Nvidia GTX 1060. Any suggestions?
@AllenSampsell
@AllenSampsell 3 года назад
What’s the error you’re seeing? Does it boot at all?
@skotsmith4269
@skotsmith4269 3 года назад
@@AllenSampsell On the external monitor, it starts the ProxMox boot screen, then cuts off. I can then go into the console (VNC) and see the GPU is being seen, but not being used. Actually, just got it to work. Had to edit the VMID.conf file to make vga: none and that did it. Your info also may have assisted. :)
@AllenSampsell
@AllenSampsell 3 года назад
@@skotsmith4269 glad it’s working now!
@muhammadchaudhary2666
@muhammadchaudhary2666 4 года назад
no matter what I try, i cant get past " failed to setup container for group 63: Failed to set iommu for container: Operation not permitted TASK ERROR: start failed: QEMU exited with code 1"
@AllenSampsell
@AllenSampsell 4 года назад
Sorry to hear that. Was it working before on that same hardware and the update broke it?
@mrj-rock4074
@mrj-rock4074 3 года назад
I have a dell r720 and i use the update_grub with iommu=on and the os crashes with the read access failed and write access failed will this video help my situation i have a grid k520 graphics card and it fried the gpu telling me it had a fatal crash
@AllenSampsell
@AllenSampsell 3 года назад
There is an entire procedure for enabling iommu as part of the PCIe passthrough. Have you done all of that? Did this work before and now an update has disabled something? It’s hard to help without further details.
@mrj-rock4074
@mrj-rock4074 3 года назад
@@AllenSampsell I followed the guide to activate iommu for proxmox and updated the grub and updated the modules and by default dell r720 has sriov activated and virtualization activated as well, the boot error i get is PTE write access fail, and PTE read access failed, befor i had installed proxmox i had vmware esxi 6.7
@AllenSampsell
@AllenSampsell 3 года назад
@@mrj-rock4074 hmm ok. So I would remove the GPU passthrough and verify that the OS will boot without the passthrough. If you’re still getting errors then you can troubleshoot those. But the error I saw that the video is based on was very clearly related to the fix action. I’m not seeing that with your error.
@mrj-rock4074
@mrj-rock4074 3 года назад
@@AllenSampsell the only way i could get past the boot error was to connect the iso and boot to it then boot to os repair and then it will boot but when i try to select the pci device to give to vm and it tells me iommu is not activated
@AllenSampsell
@AllenSampsell 3 года назад
@@mrj-rock4074 well then yes try moving the unsafe interrupts to the grub like it says in the video. Can’t hurt at this point.
@andrevianadf
@andrevianadf 3 года назад
Hello Allen, Thanks for sharing this good explanation. I'm a new Proxmox User. Which software do you as console? (around 2:42 on this video) I had success on passtrhough my GPU, but I'm strugling with access the windows Console.
@AllenSampsell
@AllenSampsell 3 года назад
Ahh, well I enable RDP or Remote Desktop in the Windows VM I use and connect with a program that handles either RDP or VNC or SSH. It handles quite a few protocols and it's call mRemoteng mremoteng.org/
@cig_in_mouth3786
@cig_in_mouth3786 3 года назад
I tried and failed (2 times) even made bookstack to backtrack my steps. So I downgrade v6.1 it worked but I done noobie mistake sudo full-upgrade -y and boom I stuck again if you can solve that great else I wil do downgrade (backing all vm)
@AllenSampsell
@AllenSampsell 3 года назад
psychoboi well I don’t think full-upgrade in Proxmox is something you should do anyway. I would only upgrade via the web GUI if possible. You may want to save your conf files and your VM files to a NAS or other storage and then reinstall Proxmox to 6.2. You’re gonna have a lot of steps but you should then setup using the method for 6.2 in the video.
@cig_in_mouth3786
@cig_in_mouth3786 3 года назад
Config on (bookstack) and lxc already backed up that is no issue. The main issue is black screen on windows login. > Using uefi boot > Nvidia GTX 1070 (slot 5) (no rom file required) > Hp Dl380 g9 Everything works on v6.1, and I didn't change qemu version (no flags added) (a reddit guide is good enough) but when I installed 6.2 (which is latest) all things f-up (only windows). Hackintosh and Linux still working fine as they should be. I followed some guide which enable msi on GPU the issue is I never able to boot on safe mode so recovery mode with cmd registery editor but I didn't save the change bsod/bootloop occur. I try to explain sorry for long message but reddit didn't helped me they said stay downgraded I think only you can help me
@AllenSampsell
@AllenSampsell 3 года назад
psychoboi for the Windows VM, when you run it under 6.2 what error are you seeing? My VM just wouldn’t start and gave me an iommu group error. Which is why I made the video. If you’re having a different issue I might not be able to help
@cig_in_mouth3786
@cig_in_mouth3786 3 года назад
@@AllenSampsell I solved it finally > Install 6.1 GPU passthrough and with drivers and enable MSI > then edit grub and modules from your video and then full-upgrade. > I learnt if I install custom nvidia drivers it works like a charm thanks for helping me If you tell me that will great help you said "back to remoter" what is that ? Can you tell me about that (hardware/software) thanks
@AllenSampsell
@AllenSampsell 3 года назад
psychoboi glad I could help. And what do you mean by custom Nvidia drivers? The software that I use for RDP/VNC//SSH is called mremoteng. mremoteng.org It’s a great piece of software.
@Deefourteen
@Deefourteen 3 года назад
Thanks for the video. I just get "Error: IOMMU not present" every time I try to start my TrueNAS Core VM in ProxMox 6.2-15 when trying to pass an LSI HBA card. Maybe that is a different issue than your video solves...So far, I haven't been able to solve it.
@Deefourteen
@Deefourteen 3 года назад
Fixed! So turns out it was not enabled in my BIOS/UEFI settings.
@AllenSampsell
@AllenSampsell 3 года назад
@@Deefourteen thanks for the update. And yeah that’s a different error than I was talking about. My first question would have been Have you verified the state of iommu? So your response/fix makes a lot of sense.
@davidhicks8290
@davidhicks8290 4 года назад
Is that GPU Passthrough Tutorial available for me to click on?
@AllenSampsell
@AllenSampsell 4 года назад
My Bookstack? No. But one of the best sources of that info is here www.reddit.com/r/homelab/comments/b5xpua/the_ultimate_beginners_guide_to_gpu_passthrough/
@user-kn4ky9hj3l
@user-kn4ky9hj3l 3 года назад
Could you please explain more on how to block the host machine from loading the driver? Maybe consider making a full tutorial on how to do a NVIDIA PCIe Passthrough on Proxmox 6.2? There's not a lot of resources out there, really appreciate the effort. Thanks a lot.
@AllenSampsell
@AllenSampsell 3 года назад
You mean the guest VM? So that you don't get Code 43? I'll see what I can do...
@user-kn4ky9hj3l
@user-kn4ky9hj3l 3 года назад
@@AllenSampsell Code 43 will appear in which location, cause I don't have any display for the vm neither monitor nor console
@user-kn4ky9hj3l
@user-kn4ky9hj3l 3 года назад
@@AllenSampsell I own a NVIDIA 2080 Super and running it on a AMD platform, after some research and dumping the rom of the graphics card. I found that in a reference link on the pci passthrough page of promox wiki, it said OVMF does not work for type 0 card. And the rom dumping result shows that the card is type 0 which is legacy BIOS but some website said this card does support UEFI. I am so confused now.
@AllenSampsell
@AllenSampsell 3 года назад
留在彼此的身邊 code 43 is what shows up inside the Windows VM when you load Nvidia drivers and their software detects that’s it is a VM. It then disables the GPU with a code 43. Lots of the steps in guides for GPU passthrough are trying to get you up to and around that issue.
@AllenSampsell
@AllenSampsell 3 года назад
留在彼此的身邊 it’s a pretty advanced card I would be surprised if it can’t be done in OVMF where it needs to be. What errors are you seeing? Also, you might take this discussion over to my forum vs doing it here on RU-vid. www.allenscloud.com/forum/
@ralf1273
@ralf1273 3 года назад
i hope it will work, i break my proxmox last time -- DOES NOT FOR ME :-(
@mikeyz8775
@mikeyz8775 3 года назад
Your mic needs foam
@AllenSampsell
@AllenSampsell 3 года назад
lol my mic has foam on it. What I need is to have my server rack not be in the same room right next to my desk where I record. But thanks for the feedback
Далее
Getting The Most Out Of Your Epyc Server With Proxmox!
24:31
Plex on ProxMox Tutorial WITH nVidia Hardware Encoding
26:41
Kettim gul opkegani😋
00:37
Просмотров 1,6 млн
Single GPU Passthrough Tutorial - KVM/VFIO
23:43
Просмотров 128 тыс.
GPU Passthrough Update on Proxmox 5.4-6
43:23
Просмотров 16 тыс.
How to run TrueNAS on Proxmox?
17:36
Просмотров 225 тыс.
Proxmox Tutorials | Enable PCI-E Passthrough (GPU)
13:04
Richard Stallman Talks About Ubuntu
6:10
Просмотров 1,4 млн
Best operating system for Servers in 2024
11:41
Просмотров 41 тыс.
NixOS is Mindblowing
12:02
Просмотров 682 тыс.
Proxmox 6.2
37:22
Просмотров 16 тыс.
Why I am Not Using OPNSense
8:26
Просмотров 78 тыс.
Ноутбук за 20\40\60 тысяч рублей
42:36