Proxmox 8.0 - PCIe Passthrough Tutorial

Sdílet
Vložit
  • čas přidán 4. 10. 2023
  • Grab yourself a Pint Glass, designed and made in house, at craftcomputing.store
    Virtualization is great, but sometimes you just need access to physical hardware. If only there were a way to allow a virtual machine bare-metal access to PCIe cards in your server. OH WAIT! THERE IS! Whether you need access to a storage controller, graphics card, network card, or any other PCIe device, this is the video for you.
    But first... What am I drinking???
    Sierra Nevada (Chico, CA) Torpedo Imperial IPA (8.6%)
    Written Documentation can be found here: drive.google.com/file/d/1rPTK...
    Links to items below may be affiliate links for which I may be compensated
    Parts from today's build:
    AUDHEID 8-Bay NAS Chassis: amzn.to/47iCsxb
    ERYING i7-11700B 8-Core (Non-ES): s.click.aliexpress.com/e/_Dci...
    Leven DDR4 2x16GB 2666 UDIMM: amzn.to/3OmCnjv
    Flex ATX 1U 500 Watt: amzn.to/3Qw9EeB
    Silicon Power A60 1TB: amzn.to/44XANM1
    ASM1064 8-Bay SATA Controller w/ Cables: amzn.to/3KAqULZ
    Follow me on Mastodon @Craftcomputing@hostux.social
    Support me on Patreon and get access to my exclusive Discord server. Chat with myself and the other hosts on Talking Heads all week long.
    / craftcomputing
  • Věda a technologie

Komentáře • 404

  • @fanaticdavid
    @fanaticdavid Před 8 měsíci +7

    This tutorial series is top notch. Thank you so much, Jeff!

  • @marc3793
    @marc3793 Před 8 měsíci +73

    Proxmox really should just make these options available in the UI.

    • @cjmoss51
      @cjmoss51 Před 6 měsíci +3

      Truly. I just dont think these things occur to them when they are processing feature adds and the like. They can be slow to adope like Debian which is what its based on.

    • @TwiggehTV
      @TwiggehTV Před 5 měsíci +11

      Right? They have MOST of the UI, they just need the initialization bit to be UI-driven aswell.
      A full-feature product like Proxmox should have all of its functions available through its UI, "popping under the hood" with a terminal is an ugly solution, no matter how poweful it might be.

    • @Solkre82
      @Solkre82 Před 4 měsíci +9

      It's stupid easy in ESXi, too bad Broadcom killed it.

    • @manekdubash5022
      @manekdubash5022 Před 3 měsíci +4

      ​@@Solkre82That's where I'm coming from too. Moving from esxi to Proxmox - if my passthrough setup can be replicated in PVE...

    • @Solkre82
      @Solkre82 Před 3 měsíci

      @@manekdubash5022 I'm sure it can, just not as simple. I archived my ESXi 8 ISOs and Keys so I'm not worried about moving for a few years.
      Who knows, Broadcom might decide to do good.. HAHAHAHA my sides hurt!

  • @oddholstensson212
    @oddholstensson212 Před 7 měsíci +22

    Excellent guide.
    Do not forget to deselect Device Manager->Secure Boot Configuration->Attempt secure boot in VM UEFI BIOS when installing TrueNAS. Access it by pressing "Esc" key during boot sequence. Othervise you will get access denied on virtual installation disk.

    • @wirikidor
      @wirikidor Před 2 měsíci +2

      5 months later, this comment just saved me some headache.

    • @maconly34
      @maconly34 Před 16 dny

      @@wirikidor MERCI !!!

  • @DrNoCDN
    @DrNoCDN Před 8 měsíci +5

    Jeff - Just wanted to give an extreme thank you for the quality and content of your videos. I just finished up my TrueNAS Scale build using your guidance and it worked like a charm. I did use an Audheid as well, but the K7 8-bay model. I went with an LSI 9240-8i HBA (flashed P20 9211-8i IT Mode) and the instructions on Proxmox 8 you provided were flawless and easily had my array of 4TB Toshiba N300's available via the HBA in my TrueNAS Scale VM. Lastly, a shout out to your top-notch beer-swillery as I am an avid IPA consumer as well! (cheers)

  • @mistakek
    @mistakek Před 8 měsíci +17

    I've been waiting for this. I already have 2 Erying systems as my Proxmox cluster, after your first video on this, and they've been working perfectly for me, but when you originally said you couldn't get HBA passthrough to work properly, I held off buying a 3rd, as I wanted the 3rd for exactly what you've done in this video, and to have a 3rd node for ceph. Now that I can see you figured it out using a sata card, I'm off to order all the bits for the 3rd node.
    Thank You, and after I order everything, I'll pop into your store to buy some glassware to show some appreciation.

  • @jttech44
    @jttech44 Před 8 měsíci +61

    "Don't virtualize truenas"
    *Chuckles in 4 virtualized truenas servers in production*

    • @CraftComputing
      @CraftComputing  Před 8 měsíci +23

      STOP SAYING TH....
      Wait.... nevermind :-D

    • @sarahjrandomnumbers
      @sarahjrandomnumbers Před měsícem +3

      Just like Stockton Rush always said.
      REAL Men ALWAYS test in production.

    • @jttech44
      @jttech44 Před měsícem

      @@sarahjrandomnumbers Lmao rip

  • @scuzzy2142
    @scuzzy2142 Před 5 měsíci +42

    These tutorials are so much more usefull than Network Chucks and you dont seem like a shill trying to sell me something constantly.

    • @sirdewd2197
      @sirdewd2197 Před 4 měsíci +12

      Network Chuck is only good for ideas not how-to guides. He’s more of a cyber influencer to me.

    • @JamesMowery
      @JamesMowery Před 4 měsíci +5

      This is actually such a good point. I barely/rarely watch Network Chuck anymore. He just feels fake to me now. Almost unwatchable. I haven't seen one of his videos in months.

    • @johndroyson7921
      @johndroyson7921 Před 3 měsíci +5

      seems like a good starting point for newbies or kids. I won't knock him for making the stuff sound exciting but I definitely grew out of his style.

    • @citypavement
      @citypavement Před 15 dny +1

      I can't fucking stand that guy. "Look at my beard! Look, I'm drinking coffee! Buy my sponsored bullshit!"

  • @brycedavey1252
    @brycedavey1252 Před 8 měsíci +1

    Great video, I enjoy your server content a lot when it's this kind of set up.

  • @tormaid42
    @tormaid42 Před 8 měsíci +18

    Wish after so many years there was a simple gui option for this. Appreciate the guide!

  • @snakeychantey8521
    @snakeychantey8521 Před 8 měsíci

    Been searching for this for the past week or so. Love your work Jeff. Cheers

    • @18leines
      @18leines Před 8 měsíci

      Me to, since upgrade failed on my HP Z440 with xeon 2690 and Tesla M40 24G. Cheers

  • @deathpie5000
    @deathpie5000 Před 8 měsíci

    Hey Jeff I'm from Central Oregon been watching you channel for quite a while now, thank you so much for the videos please please more proxmox videos, show any and everything great content :) I'm trying to learn all ins and out of proxmox.

  • @johnwhitney1344
    @johnwhitney1344 Před 8 měsíci +1

    I really like these series on proxmox

  • @ryanmoore1016
    @ryanmoore1016 Před 2 měsíci

    Thank you! Every time i'm stuck on a project in my home lab, you tend to have just the video i need and explain it very well!

  • @ozmosyd
    @ozmosyd Před 8 měsíci

    Exactly what I had been looking for. Thanks for sharing.

  • @henderstech
    @henderstech Před 2 měsíci

    I had to reinstall proxmox for the first time in over a year. This guide was very much needed today. Thanks

  • @iriolavagno4060
    @iriolavagno4060 Před 8 měsíci +1

    Thanks Jeff, you saved me a LOT of frustrating research :-) I just managed to passthrough a couple of network interfaces to a microvm within my NixOS server, and it just took me a couple of hours, I expected to spend all night on it :-D

  • @thatonetimeatbandcamp
    @thatonetimeatbandcamp Před 8 měsíci +66

    As always you're Jeff.. There a situation where you aren't Jeff? like maybe Mike? or Chris?

    • @CraftComputing
      @CraftComputing  Před 8 měsíci +41

      I kind of like being Jeff.

    • @SP-ny1fk
      @SP-ny1fk Před 8 měsíci +9

      @@CraftComputing Yeah it would be weird if you woke up as Patrick from STH.

    • @CraftComputing
      @CraftComputing  Před 8 měsíci +24

      That would be weird. I'd be a whole foot shorter.

    • @jonathanzj620
      @jonathanzj620 Před 8 měsíci +4

      ​@@CraftComputingDepends if you're cosplaying as an admin that day or not

    • @JeffGeerling
      @JeffGeerling Před 8 měsíci +23

      @@CraftComputingme too

  • @MaxVoltageMiningCrypto
    @MaxVoltageMiningCrypto Před 8 měsíci

    Darn it. I should have done this video. I got it working about a month ago. Great information!! So many people discouraged me from doing it as they said it wouldn't work. It works great for me.

  • @iamthesentinel584
    @iamthesentinel584 Před 18 dny

    I just have to say, I spent hours trying to get my GPU to passthrough correctly, and your one comment on Memory Ballooning just fixed it! Thank you so much! I didn't even see anything about that mentioned in any of the official documentation!

  • @darkenaxe
    @darkenaxe Před 4 měsíci

    Impressive to the point and yet full of details tutorial !

  • @Doc_Chronic
    @Doc_Chronic Před 8 měsíci

    Thank you so much for this! Just what I was looking for

  • @SomeDudeUK
    @SomeDudeUK Před 8 měsíci

    Just getting into my own homelab after watching for a while. Got an old ThinkCentre that I'm going to have a tinker with before fully migrating a Windows 11 PC with Plex etc. This video series is great

  • @retrogear
    @retrogear Před 8 měsíci +3

    Thanks Jeff. As always an excellent and succinct guide. Cheers for making the effort! 😊

  • @michaelwaterman3553
    @michaelwaterman3553 Před 8 měsíci

    Thanks Jeff, great tutorial!

  • @brentirwin10
    @brentirwin10 Před 6 měsíci +2

    Thank you for this. I couldn't get hardware transcoding working properly. I turned off ballooning on the VM and BAM! It works. HUZZAH!

  • @chromerims
    @chromerims Před 8 měsíci

    Thank you for the write-up, especially addressing upfront EFI vs legacy boot config for IOMMU (intel_iommu=on).
    Great video 👍
    Kindest regards, neighbours and friends.

  • @TheFrantic5
    @TheFrantic5 Před 8 měsíci +8

    Can we just take a step back and marvel at how now only that this is all possible, but also won't cost a dime in software?

  • @thecameratherapychannel
    @thecameratherapychannel Před 5 měsíci

    Thank you sir! Just by adding a new physical NIC to Truenas, my write speed increased by x3 on my ZFS pool! I had saturated the just one NIC I had on board with a lot of LXC and VMs

  • @greenprotag
    @greenprotag Před 8 měsíci

    Thank you for this update. This is one if the more challenging tasks for me in proxmox and I was only successful through sheer dumb luck the last time I did this.
    The good news? Its still deployed and the only thing I have changed is the GPUs and Storage controller.

  • @AV-th6kn
    @AV-th6kn Před 8 měsíci

    Quality stuff again. Was excited when I saw the thumbnail that finally I will see how to passthrough properly an nvme ssd to a truenas vm. Unfortunately this not happened this time.
    Hope that you will cover that as well somewhen and if you could explain how to get the truenas vm to put the hdd's to sleep, that would be just the cherry on top.
    Cheers Jeff.

  • @DJCarlido
    @DJCarlido Před 8 měsíci +5

    Another little addition to this. It seems that you still need to add ""GRUB_CMDLINE_LINUX_DEFAULT="quiet intel_iommu=on" "" to the etc/default/grub boot cfg file if using the legacy grub boot menu. The legacy grub boot menu is still teh default if installing ext4 onto a single drive.

  • @TheSolidSnakeOil
    @TheSolidSnakeOil Před měsícem

    This has been a life saver. I finally was able to passthrough my 6700 XT for jellyfin hardware encoding.

  • @businessdragoon7164
    @businessdragoon7164 Před 8 měsíci

    My friend I've been struggling with exactly this thx for the vid

  • @Man0fSteell
    @Man0fSteell Před 5 měsíci

    It took some good amount of hours to figure things out - but at the end it was worth it! I'm using GPU passthrough to run some language models locally

  • @bmfairweather
    @bmfairweather Před 8 měsíci

    Good stuff keep up the good work.

  • @munthon
    @munthon Před 8 měsíci

    Thank you one day, one day, I'll do setup like this.

  • @611rain
    @611rain Před 7 měsíci

    Awesome content, Man!

  • @SytheZN
    @SytheZN Před 8 měsíci +3

    For your next tutorial I'd love to see you get some VMs running with their storage hosted on the truenas VM!

  • @ozbusa
    @ozbusa Před 8 měsíci

    Awesome - thanks so much. Exactly what I want to do for a virtual Plex server :-)

  • @Glitch-Vids
    @Glitch-Vids Před 8 měsíci +24

    Hey Jeff, I had issues passing through a GPU with the exact same hardware until I pulled the EFI ROM off the GPU and loaded it within the VM config PCI line. Adding the flag bootrom=“” to the line in the VM config pointed to the rom should do it. I think this is because the GPU gets ignored during the motherboard EFI bootup so the VROM gets set to legacy mode. When trying to pass it into an EFI VM it won’t boot since the VROM doesn’t boot as EFI

    • @IAmbrowniepoints
      @IAmbrowniepoints Před 5 měsíci

      Could you explain a little more on how you got that working? I still can't get GPU passthrough working on my 11900h ES erying mobo.
      Also did you mean "romfile=" ?

    • @rakhanreturns
      @rakhanreturns Před 4 měsíci

      After looking at his documentation, I think you're onto something here.

  • @ahwx
    @ahwx Před 7 měsíci +4

    Hey Jeff, quick tip: you can use the CZcams sections in the timeline to add timings so people can easily skip to where they need help.

    • @TomiWebPro
      @TomiWebPro Před 4 měsíci

      Sponserblock extension allows you to skip ads and see where you should start, try it

  • @lilsammywasapunkrock
    @lilsammywasapunkrock Před 8 měsíci +5

    Been waiting for this. All the pcie passthrough write ups are old and outdated, and the only one that worked for me on prox 7.4 was yours.

    • @CraftComputing
      @CraftComputing  Před 8 měsíci +11

      Tutorials: update-grub
      Proxmox 8.0: "What's a grub?"

    • @lilsammywasapunkrock
      @lilsammywasapunkrock Před 8 měsíci

      ​@@CraftComputingexactly!
      Quickly for clarification sake, q35 means uefi and ifx440 or whatever is bios boot?
      Half the tutorials say to do one or the other, and this is the first time I have heard it mentioned otherwise, unless I just forgot 😅.

    • @danilfun
      @danilfun Před 8 měsíci +1

      @@lilsammywasapunkrock
      Both machine types support bios and uefi.
      The primary difference between q35 and i440fx is that q35 uses PCI-e while i440fx uses the old PCI.
      If I remember correctly, I was able to use PCI-e passthrough with i440fx but only for one device at a time.
      I personally don't see any point in using i440fx in modern systems with modern host operating systems.

    • @CraftComputing
      @CraftComputing  Před 8 měsíci

      ^^^ Bingo

  • @jimmy651
    @jimmy651 Před 6 měsíci

    This is super, thank you so much🍻🍺

  • @julianelpro5513
    @julianelpro5513 Před 6 měsíci

    Fantastic video! I'm considering setting up a Proxmox server for Home Assistant and other services. I'm contemplating running Blue Iris in a virtual machine within Proxmox. What are your thoughts on this? Alternatively, I'm also considering a dedicated NVR. My concern with the VM approach is that I might need to pass through the video card to the VM, which could potentially cause issues with other VMs that require video transcoding or other resources. What's your take on this dilemma? 😁

  • @YannMetalhead
    @YannMetalhead Před 7 měsíci

    Great information!

  • @robertchamberlin2362
    @robertchamberlin2362 Před 7 měsíci

    Perfect video thanks a bunch I got Gpu passthrough working on my dell Precision T3600 with my Gtx 8800 Gpu passthrough

  • @chebert0815
    @chebert0815 Před 8 měsíci

    Thanks Jeff.

  • @bigun89
    @bigun89 Před 8 měsíci

    This exact functionality I got working with an Nvidia P400 in Proxmox v7. I hadn't upgraded to 8 for fear of going through this again. Now I may have to take the dive.

  • @KomradeMikhail
    @KomradeMikhail Před 8 měsíci +2

    Flash vBIOS to force GPU into UEFI mode and disable Legacy mode at boot ?
    Do you need to alter any of those CLI strings depending on chipset connected PCIe lanes vs. direct CPU lanes ?

  • @user-uy4qp1qx3n
    @user-uy4qp1qx3n Před 27 dny

    Thanks for the video.

  • @MatthewHill
    @MatthewHill Před 7 měsíci +6

    FYI, the instructions don't work if you're using GRUB. These instructions appear to be specific to systemd-boot.
    You'll need to look in /etc/default/grub rather than /etc/kernel/cmdline to make the kernel command line changes.

    • @OwO-ek6yd
      @OwO-ek6yd Před 7 měsíci

      You're a damn wizard! :v Thxx Mr Magical Pants!

  • @RealVercas
    @RealVercas Před 8 měsíci +2

    SR-IOV and IOMMU are completely orthogonal features and enabling one will not magically make the other work. SR-IOV simply lets the kernel use a standard way of telling PCI-E devices to split themselves into virtual functions. SR-IOV does not require an IOMMU, and IOMMU does not require SR-IOV.

  • @xXDeltaXxwhotookit
    @xXDeltaXxwhotookit Před 8 měsíci

    After the first video, I took the plunge on new server hardware... one of the AS Media controllers passes through fine, but the other doesn't - so waiting on a LSI HBA to arrive.
    Thanks Jeff... and Thanks Jeff
    It'd be interesting to see a Pt 3 / hear your thoughts on further VMs (Plex for example); installed on Proxmox or through TrueNAS

  • @leviathanpriim3951
    @leviathanpriim3951 Před 8 měsíci

    thanks Jeff

  • @subrezon
    @subrezon Před 8 měsíci +3

    Great video! Waiting for one about SR-IOV, I tried using virtual functions on my Intel I350-T4 NIC and got nowhere with it

  • @zr0dfx
    @zr0dfx Před 8 měsíci

    You ever get PCIE pass through working for the x16 slot? Looking forward to part 4 😊

  •  Před 8 měsíci

    Did you try to plug some hdmi dongle to simulate a screen connected on the card ? I once did need this, to make the gpu passthrough work. With one dongle on the video output of the motherboard and one on the gpu.
    But if i remember well, i did have trouble if the gpu dongle is connected at boot. I finaly did drop the gpu passthrough since i'm not using it so much and it once stopped to work.

  • @brycedavey1252
    @brycedavey1252 Před 8 měsíci

    Hello side question, are you using an Erying mob with proxmox and if so how are you finding it, are the intel E cored working alright? And what one are you using? How was virtualization? Some of thr seem to be a bit dodgy worh vtx.

  • @DarkFiber23
    @DarkFiber23 Před 8 měsíci +1

    Which case are you using for your file server?
    I'm looking to build my first NAS and think it looks great!
    I've already got 10Gb/s fiber networking ready to go. Just need the server now. lol

    • @CraftComputing
      @CraftComputing  Před 8 měsíci +3

      Here's a link to the full build of this server, with a parts list and links in the description: czcams.com/video/NPaDCiyY3Kw/video.html

    • @DarkFiber23
      @DarkFiber23 Před 8 měsíci

      @@CraftComputing Thank you very much for the information!

  • @dustojnikhummer
    @dustojnikhummer Před 8 měsíci

    I'm currently running an ACS override because my IOMMU groups suck. Does your guide deal with that as well? I need to pass a GPU and a storage controller to two different VMs, but I have only one PCIe slot that is totally separated, the other two seem to share groups with some onboard devices (USB, sound cards etc). I know my devices aren't technically separated, but it works.

  • @mikequinn8780
    @mikequinn8780 Před 8 měsíci +3

    Are you planning a video on USB and or PCI passthrough to LXC containers? Something about cgroups and permissions never could get it to work.

  • @roopey
    @roopey Před 6 měsíci

    Jeff - Thanks for this video.
    One thing that almost every tutorial points out is not to pass through the primary (i)gpu and to blacklist kernel modules on the host.
    With my new Intel N305 based Firewall box it just works fine with the igpu. I also didn't blacklist the i915 kernel module as some advice.
    I've tested it for a week now and there is no issue with HW transcoding in Emby. Also no glitches or crashes.
    Not sure if they changed anything on those newer Chipsets or if something in proxmox 8.0 / 8.1 changed.
    Or if it's just never been true from the beginning?

  • @paulladdie1026
    @paulladdie1026 Před 8 měsíci

    Jeff my Nvidia Tesla K80, has two GPU's on it, along with a PCI-E bridge device, do you have to pass thru the PCI-E bridge to allow you to pass thru the two discrete GPU'S ?

  • @ProjectInitiative
    @ProjectInitiative Před 8 měsíci +5

    Great video! I wrote a hookscript a while ago to aid in PCIe passthrough. I found it useful to use specifically with a Ryzen system with no iGPU. It dynamically loads and unloads the kernel and vfio drivers so when say a windows gaming VM is not in use, the Proxmox console will re-attach when the VM stops. Could be useful for other devices too! If anyone is interested let me know, I'll try to point you to the Github gist. I don't think CZcams likes my comment with an actual link. :)

    • @jowdyboy
      @jowdyboy Před 8 měsíci +3

      What's the name of the repo? We'll just search for it.

    • @ccoder4953
      @ccoder4953 Před 8 měsíci

      @@jowdyboyYes, seconded - sounds useful. Any idea if it works with NVidia?

    • @ProjectInitiative
      @ProjectInitiative Před 8 měsíci

      I use it with Nvidia, I've tried to post several comments, but I'm assuming they keep getting flagged.

  • @cldpt
    @cldpt Před 8 měsíci

    a particular reason not to passthrough disks before installing is to make it easier not to mess up the installation drive, so it's good advice indeed

  • @dunknow9486
    @dunknow9486 Před 8 měsíci

    Excellent tutorial on PCI passthrough.
    Could mention on how to passthrough on motherboard SATA and NVME drive?

  • @dualbeardedtech
    @dualbeardedtech Před 8 měsíci +1

    God I wish I was at home right now so I can follow along

  • @anders7317
    @anders7317 Před 8 měsíci

    Hi Jeff. Got this working and super excited. But, I am struggeling when trying to use i.e nVidia Moonlight, since it actually mirrors the main/only connected display, which is locked to some bogus/low resolution. This limits the max available streaming resolution as well. Do you have any good idea on how to solve it? I have read a little bit online, and about some people tend to use SPICE for better resolutions. But it neither can expand to my native resolution which is 3840x1080. This was the only reason for me this actually didn’t work :-(

    • @spyghetti
      @spyghetti Před měsícem +1

      I'm not even close to an expert but to do this on my lenovo nuc I used a 4k 60hz HMDI dummy plug, connected a monitor and the plug set it to two monitors and set the highest resolution the HDMI dummy plug could go matching the device I was connecting to with moonlight.. I might of even just used mirror instead of extend display so that if the primary wasn't plugged in that I still had a desktop.. then after this was set I could manipulate the resolutions up to the max of the plug but I don't know how this would be possible if it were a Tesla card without HDMI or display ports.. I'm sure you already found a workaround. With all that bit rate and wifi or Ethernet needs to be decently fast for lag free and smooth moonlight experience.

    • @anders7317
      @anders7317 Před měsícem

      @@spyghetti Hi, thanks for replying. I found a workaround and got it to work. This should've been mentioned in the video, by Jeff since it is actually important to be able to get around. Maybe this is somehow different with a headless GPU/enterprise level GPUs/server GPUs, than it is with my old 1070. But the solution I found, was to install a dummy display driver of some sort. Different drivers may work, I saw that it is several possibilities out there to choose from. But as long as Windows has some sort of display with a correct "native resolution" it works. :-)

  • @johnpaulsen1849
    @johnpaulsen1849 Před 8 měsíci

    Question, with GPU passthrough I have no issues passing through a primary gpu but i do need to have the vbois in the configuration. Though i am using unRAID.

  • @johnvanwinkle4351
    @johnvanwinkle4351 Před 2 měsíci

    Thanks for the great video! I am hoping to try this on my Dell R720 with a Windows VM.

  • @Grid21
    @Grid21 Před 8 měsíci

    Also quick question, can you pass through Sata ports to a VM? Or does this only work for PCIe hardware?

    • @th3r3v92
      @th3r3v92 Před 8 měsíci +1

      Usually you can pass through the integrated sata controller of your motherboard, but it depends on the exact motherboard/chipset layout whether it will work or not. I have a Kontron ITX system with an integrated i7 CPU, and for me passing through the onboard sata controller works perfectly, but usually the onboard SATA controller shares its lanes/IOMMU group with some other devices, so it could cause some issues depending on the exact layout of your board.

  • @clarkanton9595
    @clarkanton9595 Před 8 měsíci

    Sure this has been asked, but what's the benefit of doing pcie passthrough for ZFS when PVE does ZFS for you and presents it to the VM?

  • @CAMOBAP795
    @CAMOBAP795 Před 8 měsíci

    Thanks for the video:
    Is there some DB with 100% working configuration/hardware for GPU passthrough that definitely works?

  • @ouya_expert
    @ouya_expert Před 3 měsíci

    Not sure if I missed it and it was addressed in the video but my scenario is similar to what's done in the video, 1 VM with TrueNAS passing through the SATA controller to the drives for the sweet sweet ZFS setup and another VM to host all my home server stuff like jellyfin, qbittorrent and elasticsearch.
    In this case, what would be the best way to connect the ZFS pool between one VM to another?

  • @werewolfman007
    @werewolfman007 Před 8 měsíci +2

    Hey Jeff have you ever tried unraid would like to know your point of view on it

  • @DublinV1
    @DublinV1 Před 8 měsíci +3

    Hi Jeff,
    Are there any drawbacks (i.e. Performance) not blacklisting your GPU from the host Proxmox O.S.? Currently I have GPU pass through working but I didn't black list that GPU from the host O.S. and everything seems to be working without issues.
    Thanks!

    • @T3hBeowulf
      @T3hBeowulf Před 8 měsíci

      Same here. I did everything except the Proxmox blacklist and got it working in a Win11 VM.
      I also checked the "PCI Express" box on the pass-through model in Proxmox for the video card. It did not work without this.
      Additionally, my 1070 GTX needed a dummy HDMI plug (or external monitor) to initialize correctly.

    • @ericneo2
      @ericneo2 Před 6 měsíci +1

      If you can convert a video or see apps use cuda without crashing the VM then no, you are completely golden.

  • @panoshountis1516
    @panoshountis1516 Před 7 měsíci

    Awesome video, thank you. Btw, how do I go about it if I want to passthrou a RAID array to a Win Server VM?

  • @JamalIgus-op4sy
    @JamalIgus-op4sy Před 7 měsíci

    searching whole internet include ai nothing worked. THANK YOU SO SO MUCH for this VIDEO!!!!

  • @fousay
    @fousay Před 8 měsíci

    I have a question, does this fix the iommu group? I have issues with the pci slots and mic card on the same group. I am in the process of upgrading the bios on my board but question still stands…

  • @manitoba-op4jx
    @manitoba-op4jx Před 8 měsíci +6

    asrock decided to put all my pcie slots in one group and the three m.2 slots in another. needless to say i'm pissed.

  • @ckwcfm
    @ckwcfm Před 7 měsíci

    Hey Jeff. Do you know if those nvme to sata adapter can do the same? Or it will just appear to be few hard disks?

    • @ericneo2
      @ericneo2 Před 6 měsíci

      Yes they can be passed through. Quite a few people buy a NAS case like a jonsbo n3 and a mini-pc with a laptop cpu like the 5800u, then use a nvme to sata adapter and a breakout cable to the backplane. They then passthrough the nvme slot and all the drives follow. The downside is no ECC memory.

  • @FlameSoulis
    @FlameSoulis Před 8 měsíci

    Curious... could it be possible to set up a server JUST to host drives and directly connect to a TrueNAS VM or otherwise to allow it access to the additional drives?

    • @dustojnikhummer
      @dustojnikhummer Před 8 měsíci

      No, TrueNAS needs the storage controller to access the drives directly.

  • @succubiuseisspin3707
    @succubiuseisspin3707 Před 8 měsíci

    Is the physical disk to VM pass-through feature in Proxmox so much worse for visualizing TrueNAS than PCIe pass through off the storage controller? What EXACTLY would ZFS do differently?

  • @GabrielFoote
    @GabrielFoote Před 3 měsíci

    Thanks

  • @Skyverb
    @Skyverb Před 2 měsíci

    This worked like a charm for me!
    Turned a spare gaming laptop into a remote access gaming server.
    For me the graphics card worked, and I removed the errors on my Nvidia card by not adding the sub features of the card, like usb C, and the audio device as advised in this tutorial. It gives an error saying I added the card twice if I did.

  • @dotanuki3371
    @dotanuki3371 Před 2 měsíci

    I set up VGA passthrough (what we called it then) back in 2013. I ran Xen, had one GPU for a Windows VM, another GPU for a linux VM, and a cheap GPU for console on the host/dom0.
    Back then it was really messy with card and driver support. Nvidia supported it on Quattro, but not on Geforce, so some people took a soldering iron to their geforce cards to get them to identify as Quattro cards. Then it worked. I used AMD, which worked for setting it up, but not taking it back down cleanly, as the driver didn't manage to reset properly. As a result, if I needed to boot any of the VM's, I needed to boot the whole system.
    Still though, I could play windows games in a VM with only a ~2% performance drop, and some charming artifacting in the top left corner, while leaving anything serious to linux, without having to reboot. Though if not for the tinkering in and of itself, I should have done what I recommended on the forums, "just get two computers".

  • @kienanvella
    @kienanvella Před 8 měsíci +7

    Efi booted host, cards don't have efi firmware on them, so the vbios doesn't get mirrored into memory.
    Get a dump of the vbios, and add it as a vbios file in the pci device section of your VM config.

    • @CraftComputing
      @CraftComputing  Před 8 měsíci +3

      DOH! You're probably right.

    • @dozerd42
      @dozerd42 Před 8 měsíci

      I would love an explanation of this comment or further resources. I don't understand efi, vbios, why and how that gets mirrored, or really anything that was said.

    • @kienanvella
      @kienanvella Před 8 měsíci +1

      ​@@dozerd42when a physical system boots, it copies the contents of your video card bios (vbios) into main system memory, into the memory region reserved for communicating with the card.
      Some cards have a uefi firmware in addition or instead of a traditional vbios.
      Without it though, the card won't initialize the display output during boot.
      In this case, the cards didn't initialize during boot at all, so providing the video bios to the VM gives it an opportunity to initialize the card on its own.
      While you can technically usually boot cards without supplying it, what will often happen is that the in memory copy will become overwritten in some cases - like if that memory region is needed for texture storage at some point.
      When that happens it's necessary to reload the vbios from the card, but if you don't supply the vbios separately, sometimes this reload fails, which will hard lock your host.

  • @blastedflavor3604
    @blastedflavor3604 Před 8 měsíci +2

    Man, I ran TrueNAS in a VM for years now. I never ran into issues.

  • @kodream316
    @kodream316 Před 8 měsíci +4

    would be interested in LXC tutorial with GPU passtrough / sharing to it... especially with something like intel NUC with only 1 integrated GPU, or maybe just sharing / passtrough of integrated GPU in general

    • @derekzhu7349
      @derekzhu7349 Před 3 měsíci

      it's not passthrough for lxc, it'd be just using the host gpu directly in a virtual environment. it's the same kernel

  • @NetScalerTrainer
    @NetScalerTrainer Před 8 měsíci

    All of my super micro motherboard support PCI pass through in the bios and it works for network cards, but not for video cards. Video card pass-through is not supported on all of my super micro mother boards.
    Can you check into that?

  • @aardwolf21
    @aardwolf21 Před 8 měsíci

    Is your motherboard shadowing the VBIOS? Google was my friend for creating a VBIOS file that you add to the PCI line in the conf file, oh and had to reset the PCI slot on VM boot with a hookscript. Took days to sort but now I know it's no issue. Probably missed this in the video typing the comment :)

  • @GreedoShot
    @GreedoShot Před měsícem +3

    there is no /etc/kernel/cmdline

  • @itsnotyourfaultboy
    @itsnotyourfaultboy Před 8 měsíci

    I have the same config running for 10 Months now with cron shutting down everything in the night and i had no problems with my truenas vm. So in a Homelab environment its the best option if you want to have proxmox as a hypervisor.

  • @davidfauremusic
    @davidfauremusic Před 3 měsíci +1

    Hi. I am currently investigating the idea of creating a proxmox server to run various things, including MacOs, since i definitely need/want that one for audio. I can't really find a clear answer so i feel like asking you this : is it feasible to have low-latency audio on a VM ? Not remotely, locally of course, through an USB audio interface. I feel like PCI passthrough on a dedicated USB card can give me something viable, but i'm not completely sure. Maybe i can just passthrough my USB controller on the motherboard ? But in the end, will it provide me something useable for realtime audio treatment, as in "i plug my guitar in the audio interface, and i hear it's sound, processed by the computer, on my loudspeakers in real-time with a low latency, under, say, 15/30ms" ? )

  • @nadpro16
    @nadpro16 Před 4 měsíci

    Thank you for explaining why you virtualize your file server. I do it through cli on proxmox and wondered why you would do it through a vm. But HW passthrough of the sata controller makes sense. And I'm even thinking about trying how you do yours now.

  • @asbestinuS
    @asbestinuS Před 8 měsíci

    Can someone help me? At 14:50 you mention the vfio config. You show ####.####,####.#### . Which Hex IDs are those? From the graphics card and the the audio controller? Or the graphics card and the subsystem? Which IDs do you chose? In your written tutorial you don't specify it as well...please? Thank you!

  • @colinstu
    @colinstu Před 5 měsíci

    was there going to be a vid about changing the repo and getting rid of the stock error message?

  • @harry4516
    @harry4516 Před 8 dny

    Thank you for sharing your experience! It was incredibly helpful in getting GPU passthrough to work. However, I needed to make a few adjustments:
    In Proxmox 8, /etc/kernel/cmdline does not exist. Instead, I entered the settings in /etc/default/grub as follows:
    GRUB_CMDLINE_LINUX_DEFAULT="quiet nouveau.modeset=0 intel_iommu=on iommu=pt video=efifb:off pci=realloc vfio-pci.ids=10de:1d01"
    It's important to note the parameters video=efifb:off and pci=realloc, which were not mentioned elsewhere. These are crucial because many motherboards use shadow RAM for PCIe Slot 1, which can hinder GPU passthrough if not configured properly. With this setup, I believe all your GPUs should function correctly. Additionally, I had to blacklist the NVIDIA drivers.

  • @SaifBinAdhed
    @SaifBinAdhed Před 8 měsíci +1

    I was able to passthrough an RTX A2000 with my Eyring i9 12900H motherboard . I populated 2 of the 3 nvme ports though.

  • @timdenis6788
    @timdenis6788 Před 8 měsíci +2

    You definitely CAN passtrough your primary GPU to a VM...
    Running a setup like this for e few years now. The 'disadvantage' is that a monitor to the proxmox is not available any more, and until the VM boots, the screen says 'loading initramfs'.

    • @m.l.9385
      @m.l.9385 Před 7 měsíci

      Yes, definitely - and Proxmox UI is used through SSH from another device anyway as it usually isn't a thing to run the UI on the Proxmox Servers GPU itself anyway.
      It can be handy though to have another means of connecting a GPU to the system if the SSH-interface is messed up - I use a thunderbolt eGPU in such circumstances...