Proxmox 8.0 - PCIe Passthrough Tutorial

Proxmox 8.0 - PCIe Passthrough Tutorial

Craft Computing

7 месяцев назад

159,127 Просмотров

Grab yourself a Pint Glass, designed and made in house, at https://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: https://drive.google.com/file/d/1rPTKi_b7EFqKTMylH64b3Dg9W0N_XIhO/view

*Links to items below may be affiliate links for which I may be compensated*

Parts from today's build:
AUDHEID 8-Bay NAS Chassis: https://amzn.to/47iCsxb
ERYING i7-11700B 8-Core (Non-ES): https://s.click.aliexpress.com/e/_Dci...
Leven DDR4 2x16GB 2666 UDIMM: https://amzn.to/3OmCnjv
Flex ATX 1U 500 Watt: https://amzn.to/3Qw9EeB
Silicon Power A60 1TB: https://amzn.to/44XANM1
ASM1064 8-Bay SATA Controller w/ Cables: https://amzn.to/3KAqULZ

Follow me on Mastodon @[email protected]

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.

https://www.patreon.com/CraftComputing
Ссылки и html тэги не поддерживаются


Комментарии:

zr0dfx
zr0dfx - 27.10.2023 12:20

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

Ответить
Jakub Čihánek
Jakub Čihánek - 26.10.2023 13:57

Its working as it supposed to but the booting with passthrough takes lot more time than before. Is there any solution for that?

Ответить
CarlitoNZ
CarlitoNZ - 22.10.2023 23:20

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.

Ответить
DunKnow
DunKnow - 22.10.2023 08:56

Excellent tutorial on PCI passthrough.

Could mention on how to passthrough on motherboard SATA and NVME drive?

Ответить
Doc Chronic
Doc Chronic - 20.10.2023 21:20

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

Ответить
DrNoCDN
DrNoCDN - 19.10.2023 01:04

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)

Ответить
Ciaran
Ciaran - 18.10.2023 23:41

Also, a trap for new players: worth mentioning that only one running VM can access the passthrough devices at a time. For storage, I'd hope this was obvious, but maybe less so for GPU

Ответить
Patrick Crowley
Patrick Crowley - 18.10.2023 10:48

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

Ответить
SomeDude UK
SomeDude UK - 17.10.2023 03:45

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

Ответить
Chrome Rims
Chrome Rims - 17.10.2023 02:48

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.

Ответить
Anders
Anders - 16.10.2023 10:52

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 :-(

Ответить
Bryce Davey
Bryce Davey - 15.10.2023 02:25

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.

Ответить
Ottafish
Ottafish - 13.10.2023 06:36

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

Ответить
David Sayfou
David Sayfou - 12.10.2023 21:23

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…

Ответить
NetScalerTrainer
NetScalerTrainer - 12.10.2023 10:39

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?

Ответить
Clark Anton
Clark Anton - 11.10.2023 23:52

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?

Ответить
MCftic2024
MCftic2024 - 11.10.2023 12:39

Do you know how long i can still run Proxmox 5.15.126-1 if the end of life is this month?

Ответить
Marian Deacu
Marian Deacu - 11.10.2023 09:41

I've got a successfully pass through using an ATI video card. All i got to do was to activate iommu and keep in bios the onboard video as active. My recommendation is to try with a videocard that uses an ATI chipset.

Ответить
Stéphane VINCENT
Stéphane VINCENT - 11.10.2023 00:25

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.

Ответить
irio lavagno
irio lavagno - 10.10.2023 23:55

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

Ответить