Single GPU pass through on AMD hardware. Help with loading VFIO required

I was given this guide for a single GPU passthrough.


Ok, I tried and but I just get screens off. It looks like how to load VFIO drivers is not included in the guide.

This guide made my system not to pass GRUB.

Going to try this guide and this guide to see if I get past GRUB

Could it be that the boot flag amdgpu.ppfeaturemask=0xffffffff is not compatible with VFIO?

Why have you copied the entire guide? Did you write the guide?

Post Only Your Own Stuff

You may not post anything digital that belongs to someone else without permission. You may not post descriptions of, links to, or methods for stealing someone’s intellectual property (software, video, audio, images), or for breaking any other law.

Besides, you are posting on a support category and you haven’t made a single question.

This post has been edited to the essentials. Please post a question to make it a viable support request.

1 Like

Ok sorry. I didn’t write the guide.

Went ahead since I figured everything would reset if I just reset the PC. I just get a black screen. Maybe because I’m running software RAID on a separate home partition is affecting the hooks.

#!/bin/bash
#
# Author: Sebastiaan Meijer (sebastiaan@passthroughpo.st)
#
# Copy this file to /etc/libvirt/hooks, make sure it's called "qemu".
# After this file is installed, restart libvirt.
# From now on, you can easily add per-guest qemu hooks.
# Add your hooks in /etc/libvirt/hooks/qemu.d/vm_name/hook_name/state_name.
# For a list of available hooks, please refer to https://www.libvirt.org/hooks.html
#

GUEST_NAME="$1"
HOOK_NAME="$2"
STATE_NAME="$3"
MISC="${@:4}"

BASEDIR="$(dirname $0)"

HOOKPATH="$BASEDIR/qemu.d/$GUEST_NAME/$HOOK_NAME/$STATE_NAME"

set -e # If a script exits with an error, we should as well.

# check if it's a non-empty executable file
if [ -f "$HOOKPATH" ] && [ -s "$HOOKPATH"] && [ -x "$HOOKPATH" ]; then
    eval \"$HOOKPATH\" "$@"
elif [ -d "$HOOKPATH" ]; then
    while read file; do
        # check for null string
        if [ ! -z "$file" ]; then
          eval \"$file\" "$@"
        fi
    done <<< "$(find -L "$HOOKPATH" -maxdepth 1 -type f -executable -print;)"
fi