You are not logged in.

#1 2024-01-20 21:08:22

ArchUser2001
Member
Registered: 2024-01-15
Posts: 3

[SOLVED] Issue with GPU Passthrough on Reboot

Hello,

I’m reaching out for help with an issue I’ve encountered while setting up GPU passthrough on my Arch Linux system. I followed the instructions provided in the Arch wiki tutorial for GPU passthrough and everything seemed to work fine initially.

However, I’ve noticed that if I have the GPU connected to the monitor and reboot the system, I get stuck on the splash screen displaying “OK”. This issue seems to occur after I update initramfs in /etc/dracut.conf.d and generate an initramfs for the running kernel with sudo dracut --hostonly --no-hostonly-cmdline /boot/initramfs-linux.img --force.

Interestingly, if I remove the display cable from the GPU, there is no problem and my QEMU VM boots with the GPU passed through. This workaround is not ideal and I would like to be able to reboot my system without having to disconnect the display cable each time. I have tried to look for possible solutions on the Arch wiki and other websites but have hit a dead end.

Here are some of the things I have tried to resolve this issue:

        - Updated my Asus x670E-A BIOS to versions 1807 and 1709.
        - Uninstalled the NVIDIA drivers on my host system using pacman -R.
        - Downgraded the Linux kernel to version 6.5.
        - Blacklisted the i2c_nvidia_gpu driver in /etc/modprobe.d/blacklist.conf.
        - Added video=efifb:off as a kernel parameter in the GRUB config.
        - Added the /etc/X11/xorg.conf.d/10-amd.conf file as mentioned in step 10.18 of troubleshooting VFIO issues on the Arch wiki.


My system’s hardware configuration is as follows:

        - CPU: AMD Ryzen 9 7950x
        - GPU: RTX 2080 Ti (passed through to the VM)
        - Onboard graphics for the host
        - RAM: 32 GB
        - Motherboard: Asus X670E-A


Despite these efforts, the problem persists. I would appreciate any guidance or suggestions on how to resolve this issue. Thank you in advance for your assistance.

Additional Information: This is my grub file configuration: GRUB_CMDLINE_LINUX_DEFAULT='amd_iommu=on iommu=pt debug ignore_loglevel video=efifb:off video=simplefb:off video=vesafb:off vfio-pci.ids=10de:1e07,10de:10f7,10de:1ad6,10de:1ad7 nvme_load=YES resume=UUID=c501a85a-4ecc-4243-ad38-363b8c968547 loglevel=3'

Journal log file for the boot while the display cable is plugged into the GPU: https://filebin.net/x8k5cmgjv435ni3t

Best regards,

Last edited by ArchUser2001 (2024-01-21 22:27:15)

Offline

#2 2024-01-21 10:14:54

cgb_spender
Member
Registered: 2024-01-15
Posts: 48
Website

Re: [SOLVED] Issue with GPU Passthrough on Reboot

Hi, have you tried allocating maximal video resources in the settings of your VM without GPU passthrough? Have you tried other VM software such as VMWare or VirtualBox with the same approach (without GPU passthrough)? I find VirtualBox to be the least buggy of all on Linux.


Only one thing is certain: nothing is certain.

Offline

#3 2024-01-21 13:27:26

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,096

Re: [SOLVED] Issue with GPU Passthrough on Reboot

@cgb_spender : many VM users prefer passthrough of  a powerful gpu to a VM because they need that power inside the guest.



10de:1e07 TU102 [GeForce RTX 2080 Ti Rev. A]
10de:10f7 TU102 High Definition Audio Controller
10de:1ad6 TU102 USB 3.1 Host Controller
10de:1ad7 TU102 USB Type-C UCSI Controller

amd_iommu=on doesn't exist as kernel parameter, remove it

iommu=pt limits iommu functionality and is typically only needed if the host has problems without it . For intel systems this was rather common in the past, amd systems rarely needed it. remove it for now.

video=efifb:off video=simplefb:off video=vesafb:off

Why do you feel you need these ?

What OS is the guest running ?


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#4 2024-01-21 14:43:40

seth
Member
From: Won't reply 2 private help req
Registered: 2012-09-03
Posts: 76,044

Re: [SOLVED] Issue with GPU Passthrough on Reboot

The amdgpu module loads incredibly late, move it to the initramfs, blacklist nivida and also add "initcall_blacklist=simpledrm_platform_driver_init" to the https://wiki.archlinux.org/title/Kernel … mmand_line

EndeavourOS isn't suportted here, though.

Edit: might also just be an issue w/ the display server config, https://bbs.archlinux.org/viewtopic.php?id=291988

Last edited by seth (2024-01-21 14:44:55)

Offline

#5 2024-01-21 22:26:52

ArchUser2001
Member
Registered: 2024-01-15
Posts: 3

Re: [SOLVED] Issue with GPU Passthrough on Reboot

Hi,

I wanted to let you know that your suggestion about the display server configuration issue was spot on! After making the changes you recommended, my problem has been resolved. For anyone else who might be facing the same issue, what worked for me was adding a new file at `/etc/X11/xorg.conf.d/20-raphael.conf` with the following contents:

Section "ServerLayout"
    Identifier "layout"
    Screen 0 "raphael"
EndSection

Section "Device"
    Identifier "raphael"
    Driver "modesetting"
    BusID "PCI:109:0:0"
EndSection

Section "Screen"
    Identifier "raphael"
    Device "raphael"
EndSection

Just remember to change the line BusID "PCI#.." from the hex value identified in lspci to decimal. Your insights were incredibly helpful and I appreciate the time you took to share your knowledge. The thread is now marked as solved. Thank you so much for your assistance!

Offline

Board footer

Powered by FluxBB