Score:1

Ubuntu 20.04 Unable to Login after PCI Passthrough

ธง jp

Fresh install of Ubuntu 20.04 with Ryzen 5 5600x on a x570 + 2080 Super (passthrough) + HD 5670 (guest). My intent is to run 2 monitors for Ubuntu (native) through the Radeon HD 5670, and 1 monitor on Windows (vm) with the 2080 Super. IOMMU and virtualization IS set up (I've been runing emulators in Windows for a while). The problem I'm running into is, after I set the grub command line to "quiet amd_iommu=on iommu=pt kvm.ignore_msrs=1 vfio-pci.ids=<2080:graphics>,<2080:audio>" some text data still appears on the 2080 monitors, and the login on the 5670 freezes for roughly 5 seconds before flashing black, and returning to the login screen. Sometimes, CTRL+ALT+F3 causes it to freeze entirely, requiring hard reset. When I HAVE gotten into the terminal, I get spammed a message from the nvidia driver stating "Tried to insert a GPIO with zero lines". Uninstalling the nvidia drivers solved that, but still had issues logging in.

My best guess, is that Ubuntu is still trying to use the NVIDIA gpu, but gets an error, and crashes back to login.

  • Enable IOMMU in BIOS
  • Ensure at least 1 monitor is connected to each GPU
  • run "update && upgrade"
  • run "apt install qemu-kvm qemu-utils libvirt-daemon-system libvirt-clients bridge-utils virt-manager ovmf"
  • Edit Grub and add "amd_iommu=on iommu=pt" *iommu=1 is also recommended by a few guides
  • run "update-grub" and reboot
  • confirm IOMMU by running "dmesg |grep AMD-Vi"
  • confirm devices by running "lspci -nn" and target specific GPU and associated hardware
  • also note USB bus in the event of a GPU that supports USB-C
  • Edit Grub and add "vfio-pci.ids=0000:0000,0000:0001" where 0000:0000 is your graphics pci id, and 0000:00001 is your audio pci id
  • run "update-grub" and reboot
  • Confirm only GUEST gpu is rendering at the login screen
  • Attempt to log in (fails)

I've also tried software solutions found on mathiashueber.com which yielded the same results, but also prevented me from using the debugger mode to undo the results. I was forced to eject the GPU, or reformat. The Radeon HD5670 DOES work if it's the only GPU in the system. The problem ONLY arises when the NVIDIA is plugged in, and passed through. I'm vaguely curious is the problem could also be related to the fact that I want to run a display port between the 2080 Super and the 144hz monitor. It shouldn't, but it might could.

jp flag
ที่น่าสนใจคือ การส่งผ่าน Radeon HD 5670 นั้นไม่มีปัญหาในการเข้าสู่ระบบเลย แม้ว่ามันจะล็อก VM เมื่อพยายามเปิดใช้งานหลังจากผ่านอุปกรณ์ PCI แล้วก็ตาม
Score:0
ธง jp

การเพิ่ม PCI ID ของคุณในรายการ Grub จะบังคับให้ไดรเวอร์ vfio-pci สำหรับอุปกรณ์แต่ละเครื่อง เห็นได้ชัดว่าสำหรับการ์ดซีรีส์ RTX 20 หรือการ์ดส่วนใหญ่ที่มาพร้อมกับ USB-C GPU ยังรองรับ HDMI ผ่าน USB-C (สำหรับจุดประสงค์ VR) ซึ่งแสดงรายการเป็นอุปกรณ์เพิ่มเติมและรบกวนกระบวนการเข้าสู่ระบบ การเพิ่ม PCI ID ที่เกี่ยวข้องทั้งหมดลงใน GRUB จะทำให้ไม่สามารถโหลดได้ และทำให้การเปลี่ยนเข้าสู่ระบบปฏิบัติการเป็นไปอย่างราบรื่น แม้ว่าคุณไม่จำเป็นต้องส่งต่อสิ่งเหล่านี้ไปยังเครื่องเสมือน แต่จะต้องมีโมดูล VFIO ที่โหลดไว้

หมายเหตุเพิ่มเติม GPU Radeon ส่วนใหญ่ที่ฉันสามารถทดสอบได้ล้มเหลวในการติดตั้งอย่างสมบูรณ์ด้วย AMDGPU-PRO ซึ่งทำให้หน้าจอเข้าสู่ระบบไม่แสดงหลังจากที่ GPU อื่นส่งผ่านใน GRUBดูเหมือนจะมีปัญหาบางอย่างเกี่ยวกับเฟิร์มแวร์ซึ่งฉันจะต้องตรวจสอบ การใช้ไดรเวอร์ Ubuntu ดูเหมือนจะทำงานได้ดี

โพสต์คำตอบ

คนส่วนใหญ่ไม่เข้าใจว่าการถามคำถามมากมายจะปลดล็อกการเรียนรู้และปรับปรุงความสัมพันธ์ระหว่างบุคคล ตัวอย่างเช่น ในการศึกษาของ Alison แม้ว่าผู้คนจะจำได้อย่างแม่นยำว่ามีคำถามกี่ข้อที่ถูกถามในการสนทนา แต่พวกเขาไม่เข้าใจความเชื่อมโยงระหว่างคำถามและความชอบ จากการศึกษาทั้ง 4 เรื่องที่ผู้เข้าร่วมมีส่วนร่วมในการสนทนาด้วยตนเองหรืออ่านบันทึกการสนทนาของผู้อื่น ผู้คนมักไม่ตระหนักว่าการถามคำถามจะมีอิทธิพลหรือมีอิทธิพลต่อระดับมิตรภาพระหว่างผู้สนทนา