Proxmox 8.0 - PCIe Passthrough Tutorial

Поделиться
HTML-код
  • Опубликовано: 25 дек 2024

Комментарии • 473

  • @oddholstensson212
    @oddholstensson212 Год назад +44

    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 8 месяцев назад +3

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

    • @maconly34
      @maconly34 6 месяцев назад

      @@wirikidor MERCI !!!

    • @alexmoore4926
      @alexmoore4926 5 месяцев назад

      I literally just disabled secure boot and it worked (as now it's just UEFI and no disk space is needed) hopefully that doesn't screw me down the road

    • @elikirkwood4580
      @elikirkwood4580 4 месяца назад

      an hour of headache could've been solved by scrolling down. fml

  • @Skukkix23
    @Skukkix23 Год назад +22

    FOR PEOPLE HAVING THIS ERROR: bdsDxe: failed to Ioad Boot0002 "UEFI QEMU QEMU HARDDISK"
    uncheck the "Pre-Enroll keys" option and it will boot via uefi!
    pls vote this up I googled for 5hrs to find the source of the problem.
    System: asus z590p, 11900k, 64gb kingston 2666.

  • @jttech44
    @jttech44 Год назад +132

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

    • @CraftComputing
      @CraftComputing  Год назад +44

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

    • @sarahjrandomnumbers
      @sarahjrandomnumbers 7 месяцев назад +9

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

    • @jttech44
      @jttech44 7 месяцев назад +1

      @@sarahjrandomnumbers Lmao rip

    • @shinythings7
      @shinythings7 5 месяцев назад +1

      I have been on the fence if I wanted to do truenas on bare metal or virtualize it and this sentence and Jeff's quick explanation on why made me feel a lot better about doing it.

    • @jttech44
      @jttech44 5 месяцев назад +1

      @@shinythings7 you really don't lose much juice virtualizing anything nowadays.

  • @tormaid42
    @tormaid42 Год назад +28

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

  • @mistakek
    @mistakek Год назад +19

    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.

  • @scuzzy2142
    @scuzzy2142 Год назад +53

    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 11 месяцев назад +17

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

    • @JamesMowery
      @JamesMowery 10 месяцев назад +8

      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 10 месяцев назад +8

      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 6 месяцев назад +3

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

    • @Oschar157
      @Oschar157 4 месяца назад

      @@johndroyson7921 he's what got me into networking/homelab. He made it fun and entertaining, but now that I am getting more knowledgable about this stuff, I watch him less and less

  • @iamthesentinel584
    @iamthesentinel584 6 месяцев назад +3

    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!

  • @DrNoCDN
    @DrNoCDN Год назад +6

    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)

  • @marc3793
    @marc3793 Год назад +114

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

    • @cjmoss51
      @cjmoss51 Год назад +4

      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 11 месяцев назад +20

      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 10 месяцев назад +13

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

    • @manekdubash5022
      @manekdubash5022 9 месяцев назад +5

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

    • @Solkre82
      @Solkre82 9 месяцев назад

      @@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!

  • @thatonetimeatbandcamp
    @thatonetimeatbandcamp Год назад +75

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

    • @CraftComputing
      @CraftComputing  Год назад +51

      I kind of like being Jeff.

    • @SP-ny1fk
      @SP-ny1fk Год назад +11

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

    • @CraftComputing
      @CraftComputing  Год назад +27

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

    • @jonathanzj620
      @jonathanzj620 Год назад +4

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

    • @JeffGeerling
      @JeffGeerling Год назад +27

      @@CraftComputingme too

  • @ryanmoore1016
    @ryanmoore1016 8 месяцев назад

    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!

  • @fanaticdavid
    @fanaticdavid Год назад +7

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

  • @rgibson1hrg7a
    @rgibson1hrg7a 9 дней назад

    Thank you for this video, it was very helpful! In particular the comment about memory ballooning not being supported and why was a HUGE help, I had not seen that mentioned anywhere else. Also the need to map the audio as well as video was a helpful point.

  • @brentirwin10
    @brentirwin10 Год назад +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!

  • @henderstech
    @henderstech 8 месяцев назад

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

  • @harry4516
    @harry4516 6 месяцев назад +13

    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.

    • @w33dp0w3r
      @w33dp0w3r 6 месяцев назад

      hey, nice addition indeed ! what about the audio card ? this is my pain... can you give me some hints about that ?thx in advance.

    • @mattp3437
      @mattp3437 4 месяца назад

      "It's important to note the parameters video=efifb:off and pci=realloc, which were not mentioned elsewhere." So where do these parameters get added/edited?

    • @61212323
      @61212323 3 месяца назад

      @@w33dp0w3r if you have GPU passthrough you can use the monitor (HDMI/DP) for audio or pass an USB card (like i did). Some monitor have an audio out port on them, but only only works with HDMI or DP.

    • @airwolf_hd
      @airwolf_hd Месяц назад +1

      For anyone who was confused like me there are 2 bootloaders, GRUB and Systemd-boot.
      /etc/kernel/cmdline only exists with Systemd-boot and this bootloader is used when Proxmox is installed on ZFS.
      Therefore, anyone with UEFI and not booting from ZFS should follow the GRUB instructions.

  • @TheFrantic5
    @TheFrantic5 Год назад +13

    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?

    • @TheDimanoid999
      @TheDimanoid999 Месяц назад

      its possible but at a cost. you'll sacrifice quite a lot in performance. like gpu will be working 50% maybe and nvme drives, connected through m.2 slots at 1/4 of full speed.

  • @DJCarlido
    @DJCarlido Год назад +8

    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.

  • @snakeychantey8521
    @snakeychantey8521 Год назад +1

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

    • @18leines
      @18leines Год назад

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

  • @shawnhaywood4199
    @shawnhaywood4199 5 месяцев назад +1

    Wahoo!! Your directions worked! Thanks. I'm installing Ollama LLM on a VM and want to passthrough the GPU, which worked thanks to you! I'm using an Intel based i7 Dell 3891, GTX 1650, and current Proxmox.

  • @iriolavagno4060
    @iriolavagno4060 Год назад +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

  • @TheSolidSnakeOil
    @TheSolidSnakeOil 7 месяцев назад

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

  • @livtown
    @livtown Год назад +6

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

    • @TomiWebPro
      @TomiWebPro 11 месяцев назад

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

  • @mikequinn8780
    @mikequinn8780 Год назад +4

    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.

  • @Glitch-Vids
    @Glitch-Vids Год назад +25

    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

    • @boredprince
      @boredprince 11 месяцев назад

      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 11 месяцев назад

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

    • @mattp3437
      @mattp3437 4 месяца назад

      @@boredprince bootrom="" seemed to be the wrong parameter and removed the GPU from the hardware. romfile seemed to be accepted but the VM failed to startup. So not sure this is the fix (for me).

    • @jtracy54
      @jtracy54 Месяц назад

      I had to do this too for my system. I think I used a WinPE image + GPU-Z to pull the rom off the card and then in the config for my VM i used the following:
      hostpci0: 09:00,pcie=1,x-vga=1,romfile=GP104_Fixed.rom

  • @AlexJoneses
    @AlexJoneses 4 месяца назад

    Sierra Nevada is one of the best beers out there, hazy little thing is amazing

  • @chromerims
    @chromerims Год назад +1

    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.

  • @johnwhitney1344
    @johnwhitney1344 Год назад +1

    I really like these series on proxmox

  • @MatthewHill
    @MatthewHill Год назад +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 Год назад

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

  • @LAWRENCESYSTEMS
    @LAWRENCESYSTEMS Год назад +3

    This was helpful as I don't run Proxmox and many people have commented on my XCP-NG videos saying how much easier Proxmox handles this VS XCP-NG but in reality they are actually very similar. Both have the need to find the devices and make changes via the command line just to get it working.

  • @brycedavey1252
    @brycedavey1252 Год назад +1

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

  • @RealVercas
    @RealVercas Год назад +3

    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.

  • @MaxVoltageMiningCrypto
    @MaxVoltageMiningCrypto Год назад

    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.

  • @thecameratherapychannel
    @thecameratherapychannel 11 месяцев назад

    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

  • @lilsammywasapunkrock
    @lilsammywasapunkrock Год назад +7

    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  Год назад +12

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

    • @lilsammywasapunkrock
      @lilsammywasapunkrock Год назад +1

      ​@@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 Год назад +2

      @@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  Год назад

      ^^^ Bingo

  • @Jan12700
    @Jan12700 7 месяцев назад +2

    6:55 Did the Path change? I only have install.d, postinst.d and postrm.d in the /etc/kernel directory.

  • @kodream316
    @kodream316 Год назад +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 10 месяцев назад

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

  • @timdenis6788
    @timdenis6788 Год назад +3

    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 Год назад

      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...

  • @GreedoShot
    @GreedoShot 7 месяцев назад +8

    there is no /etc/kernel/cmdline

    • @donjenkins2465
      @donjenkins2465 Месяц назад

      mine toooo... root@pve1:~# ls /etc/kernel/cmdline
      ls: cannot access '/etc/kernel/cmdline': No such file or directory

  • @SomeDudeUK
    @SomeDudeUK Год назад

    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

  • @clausdk6299
    @clausdk6299 Год назад +1

    @CraftComputing
    Cant see the dmesg log in the description? .. and its not attached to the google link??!?!

    • @CraftComputing
      @CraftComputing  Год назад +2

      Heh... funny story. I was working on getting Intel's UHD SR-IOV to work, so I would do a video on QuickSync passthrough, and I nuked my Proxmox install. Hadn't captured the dmesg yet 😂😭

    • @clausdk6299
      @clausdk6299 Год назад

      @@CraftComputing OMG 😭😱 Well I'm sure you tried all the KERNEL parameters there is. Just thought it would be fun to have a look 🤪

    • @RKuntz-hx6hc
      @RKuntz-hx6hc Год назад

      @@CraftComputing There is a possibility that you need to load the graphic bios separatly first befor your passthrough works correctly, if you like to try it again later let me know or if you want more informations. there is some good yt video doc from unraid about this problem.
      i run it like this many years now. currently with 2 different 1060gtx... for booth i needed to dump the gpu-bios and give it the gemu engine as information to load.
      this also fix many issues with the passthrough in combination with the audio device and fixed problems with vm reboots or resets where the card will just hang and freeze in its old stage.
      with the gpu-bios given to qemu/kvm all this problems get solved and the hardware is resettable for the quest, wich solves many problems.

  • @SytheZN
    @SytheZN Год назад +3

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

  • @jafizzle95
    @jafizzle95 2 месяца назад

    I've moved all of my hypervisor duties from Unraid to Proxmox, but I gotta give kudos to Unraid for how easy they make hardware passthrough. A single checkbox to prepare the device for passthrough, reboot, then pass that bish through. Echoing the wishes from other commenters that Proxmox adds the passthrough prep steps to the GUI. There's a thousand different guides for passthrough on Proxmox and 1000 different ways to do it, it's hard to know which is correct or best.

  • @zr0dfx
    @zr0dfx Год назад +1

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

  • @nte0631
    @nte0631 Год назад +1

    Ive followed the isntructions but as soon as I add my HBA as a PCI device being passed through, my VM will just boot loop saying no boot device found. I checked the boot order and made sure it only had the lvm where truenas was installed but it still does this. If I remove the PCI devie, truenas boots fine.

  • @subrezon
    @subrezon Год назад +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

  • @smalltimer4370
    @smalltimer4370 10 месяцев назад +3

    There is no 'cmdline' in /etc/kernel :(

    • @ouya_expert
      @ouya_expert 9 месяцев назад

      I created the /etc/kernel/cmdline file as well as edited GRUB_CMDLINE_LINUX_DEFAULT in /etc/default/grub. Not sure which one ended up making iommu work though

  • @cldpt
    @cldpt Год назад +1

    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

  • @darkenaxe
    @darkenaxe 10 месяцев назад

    Impressive to the point and yet full of details tutorial !

  • @KomradeMikhail
    @KomradeMikhail Год назад +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 ?

  • @Tterragyello
    @Tterragyello 3 месяца назад +1

    6:45 -- systems for pve 8.2, you'll want to modify the grub boot settings at /etc/default/grub, append the same iommu text to the string value assigned to GRUB_CMDLINE_LINUX_DEFAULT. then execute update-grub.

  • @DublinV1
    @DublinV1 Год назад +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 Год назад

      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 Год назад +1

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

  • @Lucas-av7
    @Lucas-av7 Год назад +1

    Unfortunatelly, I'm receiving the error "No /etc/kernel/proxmox-boot-uuids found, skipping ESP sync."

  • @Man0fSteell
    @Man0fSteell 11 месяцев назад

    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

  • @Catge
    @Catge Год назад +1

    I have a 3700x and a p1000. Is it not possible to use this p1000 for plex transcoding since proxmox requires a display?

    • @Catge
      @Catge Год назад

      I do have a quadro k620 that could go into an x1 slot with an adapter. Would this resolve my issue?

  • @werewolfman007
    @werewolfman007 Год назад +2

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

  • @RichardLangis
    @RichardLangis Год назад +1

    It's awesome having a homelab, but not as awesome when you've put the server in a mildly inaccessible spot, headless. Especially when you follow a PCI passthrough tutorial and the system reboots and doesn't come back.

  • @stevanazlen
    @stevanazlen Год назад +1

    At first, adding a GPU to one of my VM's also did not work as you pointed out.
    I made it work by deleting that VM ( Debian 12 ), creating it again from scratch, BUT before the first boot, add PCI device and select your GPU.
    Go through the installation process, and once done, lspci showed my GTX 1060 6G in the list.
    Hope this helps anyone else looking for this.

  • @kienanvella
    @kienanvella Год назад +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  Год назад +3

      DOH! You're probably right.

    • @dozerd42
      @dozerd42 Год назад

      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 Год назад +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.

  • @ozmosyd
    @ozmosyd Год назад

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

  • @w3isserwolf
    @w3isserwolf 10 месяцев назад +1

    Does someone know why i dont have an cmdline file ( /etc/kernel/cmdline ). There is no. i have installed Virtual Environment 8.0.3 and also tried 8.1.2

    • @sstupa1
      @sstupa1 8 месяцев назад

      the same issue in 8.1.10. Where the heck is cmdline?🤔

  • @Tterragyello
    @Tterragyello 3 месяца назад

    12:48 -- This source mentions IQR remapping, which I think actually does allow the primary monitor of the server and a VM to 'share' the GPU. Have not tested it yet.

  • @ozmosyd
    @ozmosyd Год назад

    The Proxmox piece was good but I, Loved, loved, loved ... the beer review. Hopefully peeps understand now why the "Brits" drink "REAL" beer room temp. The way your descibed the experience of tasting the brew was pure class. Now on to the PCIe pass through vid.
    Love ya work chap! Stella job.

  • @gtbarsi1103
    @gtbarsi1103 Год назад +2

    One important thing I ran into installing TruNAS Scale on ProxMox 8.0.4.
    When you add the EFI storage disable Pre-Enroll keys.
    Failure to do so can cause the error: bad shim signature

    • @deanolivas3011
      @deanolivas3011 Год назад +1

      THANK YOU THANK YOU !!!!!! Was pounding my head on the wall trying to figure that one out.....

    • @gtbarsi1103
      @gtbarsi1103 Год назад

      @@deanolivas3011 I was right there doing the same thing 3 nights ago. Gave up came back the next day and after working through a bunch of suggestions ran into this at the bottom of one trunas forum... I figured I would share this with anyone watching the video...

  • @blastedflavor3604
    @blastedflavor3604 Год назад +2

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

  • @josephcwallace
    @josephcwallace 3 месяца назад

    It was kind of funny (and, sadly, very relatable) when you went through process but still had to admit, at the end it may still not work...I appreciate the effort :)

  • @kedu20
    @kedu20 4 месяца назад

    Hi mate at 14:48 when you add the ids doesnt matter if you put it xxxx:xxxx or xxxx.xxxx?

  • @Doc_Chronic
    @Doc_Chronic Год назад

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

  • @Klemorius
    @Klemorius 11 месяцев назад +1

    Just started to follow yout tutorial and already in the begining I encounter an issue, there is no cmdline file in kernel..................................... What I'm supposed to do ?

  • @asbestinuS
    @asbestinuS Год назад

    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!

  • @THEMithrandir09
    @THEMithrandir09 Месяц назад

    I've had ballooning enabled on proxmox 7 and it still worked. I wonder if ballooning knows which areas need to be directly mapped and still works normally.

  • @dozerd42
    @dozerd42 Год назад +1

    12:42 helped me to root cause my problem: Proxmox was using my NVIDIA Quadro P2000 as my primary display source. In the BIOS, I had to go to Advanced -> AMD PBS -> Primary Graphics Adaptor and set it to D-Sub. My mobo has onboard graphics but my CPU does not.

  • @renhoeknl
    @renhoeknl Год назад +3

    I'd like to see more:
    * Sharing an nvidia card between multiple VMs using MIG
    * On a system running ProxMox, using a VM as a gaming desktop on the machine itself

  • @retrogear
    @retrogear Год назад +3

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

  • @godless-greg
    @godless-greg 7 месяцев назад

    I know this is older, but is there a reason you didn't select the PCI Express Option when adding the Passthrough and Primary (for GPU)? (Timestamp 11:00 and 15:50)

  • @ProjectInitiative
    @ProjectInitiative Год назад +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 RUclips likes my comment with an actual link. :)

    • @jowdyboy
      @jowdyboy Год назад +3

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

    • @ccoder4953
      @ccoder4953 Год назад

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

    • @ProjectInitiative
      @ProjectInitiative Год назад

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

    • @98f5
      @98f5 4 месяца назад

      Whats the repo name

  • @jamespadgett5761
    @jamespadgett5761 Год назад +1

    My install of Proxmox on a Dell r530 is EFI but it does not have a file in etc/kernal/cmdline. There is a cmdline in /proc but that cant be edited. Running 8.04.

  • @deathpie5000
    @deathpie5000 Год назад

    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.

  • @alanwparkerap
    @alanwparkerap Год назад +1

    In my proxmox setup all I did was add iommu=on and selected the device on vm. Didn't have to do any of blacklists or anything. Maybe that's your issue.

    • @Darkk6969
      @Darkk6969 Год назад

      Depends on the GPU. On the Enterprise grade video cards like the Nvidia Tesla P4 you have to use their special video drivers to make it work. Open source drivers won't work at all.

  • @bradmorri
    @bradmorri Год назад +10

    1. make sure that the vm uefi is set to efi mode and not csl mode. The EFI should be loading the drivers for the card at boot time. That could stop the GPU from passing through.
    2. If you have two identical GPUs, consider cross flashing the vbios with one from competing AIB with the same specs. The new vbios will change the pcie id for the card without changing the functionality, letting you split up the two cards under iommu

    • @FlaxTheSeedOne
      @FlaxTheSeedOne Год назад +1

      The later isn't needed as they are in different slots they have different buss IDs and thus should never collide with IOMMU. You are still able to assign them to different different VMs

    • @Momi_V
      @Momi_V Год назад

      ​@@FlaxTheSeedOnebut not to use one on the host and one for passthrough

    • @omegatotal
      @omegatotal Год назад

      @@Momi_Vyou dont need to use one for the host. turn on serial console if your cpu doesn't have integrated gpu.

    • @Momi_V
      @Momi_V Год назад

      @@omegatotal I know. But the original comment provides a way to solve the "two identical GPUs" issue (which is inherent to this method of passthrough, not just on Proxmox where serial is an option) that also applies to other virtio passthrough scenarios (like a desktop/workstation virtualization setup). And it's not solved by different slots (which the comment I replied to implied), though I must admit pcie id is not the right term, vendor/device id is a more accurate name

    • @bradmorri
      @bradmorri Год назад

      @@FlaxTheSeedOne I would have thought that too but it contradicts what was said in the video and seems to be a quirk of the Chinese motherboard with mobile cpu

  • @lachaineguitarededavid
    @lachaineguitarededavid 9 месяцев назад +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" ? )

  • @burnbrighter
    @burnbrighter 8 месяцев назад +1

    Three questions: 1. Were any Torpedos harmed in the making of this video? 2. Did you film this fast enough to not get warm beer when you shot this? 3. Your beer glass seems to leaking during the making of this vide - the beer is magically disappearing sequentially throughout the video - what is happening?

  • @ouya_expert
    @ouya_expert 9 месяцев назад

    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?

  • @dunknow9486
    @dunknow9486 Год назад

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

  • @JamalIgus-op4sy
    @JamalIgus-op4sy Год назад

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

  • @Grid21
    @Grid21 Год назад +2

    I am beginning to feel like Proxmox just out performs everything even VMware ESXi which I have used. I think at some point I am gonna build a "virtualization" server, and move my TrueNAS from Bare Metal to Virtual Metal. But since I need a software server more urgently, Proxmox is gonna have to take a back burner, but I'll still watch for the education.

  • @blkspade23
    @blkspade23 8 месяцев назад

    I've found that sometimes using the "All Functions" option is what is actually causing the failure. Just adding the secondary device manually is more compatible.

  • @TedPhillips
    @TedPhillips 5 месяцев назад

    i had nvidia-smi working fine for my quadro but plex wasn't doing hw transcode. after throwing some semi-stale additional virtualization tweaks at the wall, the real thing was that i used my distro's packaged nvidia driver - which didn't auto include libcuda1 and libnvidia-encode1. eventually figured it out from spelunking the plex debug logs, looks like those two extra packages are enough to get the full hw transcode going, but i'll update here if i notice anything else.

  • @StevenDLeary
    @StevenDLeary Месяц назад

    So, somewhat silly question for @craftcomputing and the hive mind. Do you need (or should you use) dummy plugs on each of the graphics cards (pcie or integrated) in virtualized environments like this. Will this help their respective "systems" function better?

  • @panoshountis1516
    @panoshountis1516 Год назад

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

  • @colinstu
    @colinstu 11 месяцев назад

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

  • @greenprotag
    @greenprotag Год назад

    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.

  • @therealsprint
    @therealsprint Год назад +1

    Thanks for this vid, unfornutaly I didn't get it work. I'm using a Dell Optiplex 7050 running an Intel Core I5 - 7500T and booting in EFI. If I put in your commands, I get a message that the system is booted up in EFI but no grub efi amd64 was found.
    Even my /etc/kernel/cmdline file was empty at the first time....? What could be went wrong? I need IOMMU for a VM....

    • @brandonw2294
      @brandonw2294 9 месяцев назад

      Using a Dell Optiplex 7090 and I too am missing a /etc/kernel/cmdline file. Did you ever get this to work?

  • @PrashantKarade-r4x
    @PrashantKarade-r4x 6 месяцев назад

    This is just what I was looking for.
    I am a single home user and running a separate machine for NAS from my Main Workstation makes little sense. Having single power PC with Proxmox with one instance of trueNAS and another for windows / linux OS will make things a lot simpler. I can also offload docker instances from my NAS over to proxmox and manage them independently.
    Just one question though, how's proxmox on PC in terms of power management. Once I shutdown my workstation PC, will the overall power consumption go down to a comparable level of a commercial grade NAS?

  • @patrick970gaming4
    @patrick970gaming4 Год назад

    Every one of these passthrough guides says you can't use the only GPU in the system for passthrough. But I've had it work on my Ryzen 1600 system with a rx460

  • @roopey
    @roopey Год назад

    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?

  • @ElementX32
    @ElementX32 Год назад +1

    I'm trying to learn how to install and implement VM's and ultimately build a homelab, just for self satisfaction and knowledge.

  • @FrostyZoob
    @FrostyZoob 9 месяцев назад +1

    When I first started the TrueNAS vm after creating it, I got the following error(s) at the UEFI boot screen:
    BdsDxe: failed to load Boot0002 "UEFI QEMU QEMU HARDDISK " from [Pci Device Path] : Not Found
    BdsDxe: loading Boot0001 "UEFI QEMU DVD-ROM QM00003 " from [Pci Device Path]
    BdsDxe: failed to load Boot0001 "UEFI QEMU DVD-ROM QM00003 " from [Pci Device Path] : Access Denied
    The fix for this is to disable "Attempt Secure Boot" in the UEFI Bios.
    In order to get to the Bios, I had to let the UEFI boot process fail out of the PXE and HTTP boot. (This took 2-4 minutes.) No amount of hitting Escape would speed things up. Eventually you'll end up at a screen that says "UEFI Interactive Shell" at the top. There should be a yellow "Shell>" prompt. If you type "exit" at the prompt, you'll be taken to the Bios.
    Go to "Device Manager" > Secure Boot Configuration, select "Attempt Secure Boot" and hit spacebar to uncheck the box. Go back to the main screen to save and exit. Proxmox will reboot the VM and you should then see the TrueNAS installer.
    This happened with TrueNAS Core 13.0-U6.1 on Proxmox 8.1.4.

    • @jorgesoto7783
      @jorgesoto7783 8 месяцев назад

      This actually solved my problem so thanks a lot mate!!!

  • @munthon
    @munthon Год назад

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

  • @declanmcardle
    @declanmcardle Год назад

    I’ll try this tutorial. The other tutorials don’t seem to let me pass through an embedded graphics card.