Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux Guest #49

Open
michealcarac opened this issue Jul 10, 2024 · 7 comments
Open

Linux Guest #49

michealcarac opened this issue Jul 10, 2024 · 7 comments

Comments

@michealcarac
Copy link

Has anyone gotten this working for a Linux guest? The most I get is a screen with red dots on it..

@mrpops2ko
Copy link

mrpops2ko commented Aug 2, 2024

i'm trying this now and the most i've gotten is seeing a grub screen and then nothing

i also get asome points where i see a while screen upon booting the debian vm too

edit: i also notice on my system that theres another audio device (likely the motherboard back ports for audio) i'm wondering if those are somewhat related

root@pve:/etc/pve/qemu-server# lspci -nnk
1e:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Raphael [1002:164e] (rev c1)
        Subsystem: Gigabyte Technology Co., Ltd Raphael [1458:d000]
        Kernel driver in use: vfio-pci
        Kernel modules: amdgpu
1e:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
        Subsystem: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
        Kernel driver in use: vfio-pci
        Kernel modules: snd_hda_intel
1e:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] VanGogh PSP/CCP [1022:1649]
        Subsystem: Advanced Micro Devices, Inc. [AMD] Family 19h PSP/CCP [1022:1649]
        Kernel driver in use: ccp
        Kernel modules: ccp
1e:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b6]
        Subsystem: Gigabyte Technology Co., Ltd Device [1458:5007]
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
1e:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b7]
        Subsystem: Gigabyte Technology Co., Ltd Device [1458:5007]
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel



@mrpops2ko
Copy link

mrpops2ko commented Aug 4, 2024

i managed to get this working on ubuntu with a higher kernel but couldn't get it working on debian 12 bookworm because it uses 6.1 - ubuntu 24.04 uses 6.8? so somewhere between that number it starts to work

the problem is that you also face the reset issue and i've not found a solution for that, except but i dont know for sure if that would do it, oh and regarding the audio, on my motherboard at least the passthrough of

1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

was required

@longhtran91
Copy link

i managed to get this working on ubuntu with a higher kernel but couldn't get it working on debian 12 bookworm because it uses 6.1 - ubuntu 24.04 uses 6.8? so somewhere between that number it starts to work

the problem is that you also face the reset issue and i've not found a solution for that, except but i dont know for sure if that would do it, oh and regarding the audio, on my motherboard at least the passthrough of

1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

was required

What driver did you use for Ubuntu 24.04?

@mrpops2ko
Copy link

i managed to get this working on ubuntu with a higher kernel but couldn't get it working on debian 12 bookworm because it uses 6.1 - ubuntu 24.04 uses 6.8? so somewhere between that number it starts to work
the problem is that you also face the reset issue and i've not found a solution for that, except but i dont know for sure if that would do it, oh and regarding the audio, on my motherboard at least the passthrough of

1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

was required

What driver did you use for Ubuntu 24.04?

the amd ones, it didn't require any additional setup outside of that for me

but bear in mind that the vendor reset issue exists and would mean restarting the host to reboot the vm - for that reason i went with a windows 11 guest and decided to use VNC to access the other linux guests, then at least i can reboot without having to reboot the host

i make use of vgpu unlock so i can assign multiple different slices of nvidia gpus

@longhtran91
Copy link

i managed to get this working on ubuntu with a higher kernel but couldn't get it working on debian 12 bookworm because it uses 6.1 - ubuntu 24.04 uses 6.8? so somewhere between that number it starts to work
the problem is that you also face the reset issue and i've not found a solution for that, except but i dont know for sure if that would do it, oh and regarding the audio, on my motherboard at least the passthrough of

1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

was required

What driver did you use for Ubuntu 24.04?

the amd ones, it didn't require any additional setup outside of that for me

but bear in mind that the vendor reset issue exists and would mean restarting the host to reboot the vm - for that reason i went with a windows 11 guest and decided to use VNC to access the other linux guests, then at least i can reboot without having to reboot the host

i make use of vgpu unlock so i can assign multiple different slices of nvidia gpus

Thanks for quick reply.

With Debian 12 Bookworm, the amdgpu driver fails to initialize. With Ubuntu 22.04 Noble, amdgpu doesn't even load. Anything special steps that you did outside of this guide except passing second Audio pci device?

@mrpops2ko
Copy link

i managed to get this working on ubuntu with a higher kernel but couldn't get it working on debian 12 bookworm because it uses 6.1 - ubuntu 24.04 uses 6.8? so somewhere between that number it starts to work
the problem is that you also face the reset issue and i've not found a solution for that, except but i dont know for sure if that would do it, oh and regarding the audio, on my motherboard at least the passthrough of

1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

was required

What driver did you use for Ubuntu 24.04?

the amd ones, it didn't require any additional setup outside of that for me
but bear in mind that the vendor reset issue exists and would mean restarting the host to reboot the vm - for that reason i went with a windows 11 guest and decided to use VNC to access the other linux guests, then at least i can reboot without having to reboot the host
i make use of vgpu unlock so i can assign multiple different slices of nvidia gpus

Thanks for quick reply.

With Debian 12 Bookworm, the amdgpu driver fails to initialize. With Ubuntu 22.04 Noble, amdgpu doesn't even load. Anything special steps that you did outside of this guide except passing second Audio pci device?

nope, as i said it just worked for me, but i just checked and it was 24.04 (the latest version) not 22.04
AguWzVN4Kwnv 1

@longhtran91
Copy link

i managed to get this working on ubuntu with a higher kernel but couldn't get it working on debian 12 bookworm because it uses 6.1 - ubuntu 24.04 uses 6.8? so somewhere between that number it starts to work
the problem is that you also face the reset issue and i've not found a solution for that, except but i dont know for sure if that would do it, oh and regarding the audio, on my motherboard at least the passthrough of

1e:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
        DeviceName: Realtek ALC1220
        Subsystem: Gigabyte Technology Co., Ltd Family 17h/19h HD Audio Controller [1458:a194]
        Kernel driver in use: snd_hda_intel
        Kernel modules: snd_hda_intel

was required

What driver did you use for Ubuntu 24.04?

the amd ones, it didn't require any additional setup outside of that for me
but bear in mind that the vendor reset issue exists and would mean restarting the host to reboot the vm - for that reason i went with a windows 11 guest and decided to use VNC to access the other linux guests, then at least i can reboot without having to reboot the host
i make use of vgpu unlock so i can assign multiple different slices of nvidia gpus

Thanks for quick reply.
With Debian 12 Bookworm, the amdgpu driver fails to initialize. With Ubuntu 22.04 Noble, amdgpu doesn't even load. Anything special steps that you did outside of this guide except passing second Audio pci device?

nope, as i said it just worked for me, but i just checked and it was 24.04 (the latest version) not 22.04 AguWzVN4Kwnv 1

I couldn't get it working in Ubuntu 24.04, but I managed to get it working in Debian 12. I have to disabled secure boot at the Debian 12 VM and install firmware-amd-graphics on non-free-firmware repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants