Hi everyone,
I'm trying to passthrough the iGPU to a Windows guest VM, following a guide I found online. However, when I attempt to start the Windows VM, the hypervisor completely hangs, forcing me to reboot the host machine. I've been stuck on this issue for a while and can't seem to find a solution.
I'm trying to passthrough the iGPU to a Windows 10 guest.
I've attached my VM and PVE configuration below for reference:
Device: Beelink SER7 with a Ryzen 7840H CPU and the integrated 780M graphics
#pveversion
#lspci -nn | grep -e 'AMD/ATI'
#cat /etc/modules
#cat /proc/cmdline
#cat /etc/modprobe.d/vfio.conf
#lspci -nnks c5:00
#dmesg | egrep IOMMU
#cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
#cat /etc/modprobe.d/vfio.conf
#cat /etc/pve/qemu-server/305.conf
Are there any tips to solve this problem?
I'm trying to passthrough the iGPU to a Windows guest VM, following a guide I found online. However, when I attempt to start the Windows VM, the hypervisor completely hangs, forcing me to reboot the host machine. I've been stuck on this issue for a while and can't seem to find a solution.
I'm trying to passthrough the iGPU to a Windows 10 guest.
I've attached my VM and PVE configuration below for reference:
Device: Beelink SER7 with a Ryzen 7840H CPU and the integrated 780M graphics
#pveversion
Code:
pve-manager/8.2.4/faa83925c9641325 (running kernel: 6.8.12-1-pve)
#lspci -nn | grep -e 'AMD/ATI'
Bash:
c5:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev c2)
c5:00.1 Audio device [0403]: Advanced Micro Devices, Inc. [AMD/ATI] Rembrandt Radeon High Definition Audio Controller [1002:1640]
#cat /etc/modules
Code:
# Modules required for PCI passthrough
vfio
vfio_iommu_type1
vfio_pci
vfio_virqfd
#cat /proc/cmdline
Code:
BOOT_IMAGE=/boot/vmlinuz-6.8.12-1-pve root=/dev/mapper/pve-root ro quiet amd_iommu=on initcall_blacklist=sysfb_init
#cat /etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=1002:15bf,1002:1640 disable_vga=1
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
#lspci -nnks c5:00
Code:
c5:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Phoenix1 [1002:15bf] (rev c2)
Subsystem: Device [1f66:0031]
Kernel driver in use: vfio-pci
Kernel modules: amdgpu
c5: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
c5:00.2 Encryption controller [1080]: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device [1022:15c7]
Subsystem: Advanced Micro Devices, Inc. [AMD] Family 19h (Model 74h) CCP/PSP 3.0 Device [1022:15c7]
Kernel driver in use: ccp
Kernel modules: ccp
c5:00.3 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c5:00.4 USB controller [0c03]: Advanced Micro Devices, Inc. [AMD] Device [1022:15ba]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:15b9]
Kernel driver in use: xhci_hcd
Kernel modules: xhci_pci
c5:00.5 Multimedia controller [0480]: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2] (rev 63)
Subsystem: Advanced Micro Devices, Inc. [AMD] ACP/ACP3X/ACP6x Audio Coprocessor [1022:15e2]
Kernel driver in use: snd_pci_ps
Kernel modules: snd_pci_acp3x, snd_rn_pci_acp3x, snd_pci_acp5x, snd_pci_acp6x, snd_acp_pci, snd_rpl_pci_acp6x, snd_pci_ps, snd_sof_amd_renoir, snd_sof_amd_rembrandt, snd_sof_amd_vangogh, snd_sof_amd_acp63
c5:00.6 Audio device [0403]: Advanced Micro Devices, Inc. [AMD] Family 17h/19h HD Audio Controller [1022:15e3]
DeviceName: Realtek ALC256
Subsystem: Device [1f66:0202]
Kernel modules: snd_hda_intel
c5:00.7 Signal processing controller [1180]: Advanced Micro Devices, Inc. [AMD] Device [1022:164a]
Subsystem: Advanced Micro Devices, Inc. [AMD] Device [1022:164a]
Kernel driver in use: pcie_mp2_amd
Kernel modules: amd_sfh
#dmesg | egrep IOMMU
Code:
[ 0.386157] pci 0000:00:00.2: AMD-Vi: IOMMU performance counters supported
[ 0.390146] perf/amd_iommu: Detected AMD IOMMU #0 (2 banks, 4 counters/bank).
#cat /etc/default/grub | grep GRUB_CMDLINE_LINUX_DEFAULT
Code:
GRUB_CMDLINE_LINUX_DEFAULT="quiet iommu=pt initcall_blacklist=sysfb_init video=efifb:off"
#cat /etc/modprobe.d/vfio.conf
Code:
options vfio-pci ids=1002:15bf,1002:1640 disable_vga=1
softdep radeon pre: vfio-pci
softdep amdgpu pre: vfio-pci
softdep snd_hda_intel pre: vfio-pci
#cat /etc/pve/qemu-server/305.conf
Code:
agent: 1
args: -cpu 'host,-hypervisor,kvm=off'
balloon: 0
bios: seabios
boot: order=virtio0;ide0;ide2;net0
cores: 4
cpu: host
hostpci0: 0000:c5:00.0,pcie=1,romfile=vbios_7840hs.bin
hostpci1: 0000:c5:00.1,pcie=1,romfile=AMDGopDriver.rom
ide0: local:iso/virtio-win-0.1.240.iso,media=cdrom,size=612812K
ide2: local:iso/ru-ru_windows_10_consumer_editions_version_22h2_updated_aug_2024_x64_dvd_2454bb57.iso,media=cdrom,size=6666126K
machine: pc-q35-9.0
memory: 16384
meta: creation-qemu=9.0.2,ctime=1726078344
name: win10gpu
net0: virtio=BC:24:11:A3:BF:A6,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsihw: virtio-scsi-single
smbios1: uuid=1684309a-a859-4038-81aa-b774ebc1b55e
sockets: 2
tpmstate0: local-lvm:vm-305-disk-0,size=4M,version=v2.0
virtio0: local-lvm:vm-305-disk-1,discard=on,iothread=1,size=80G
vmgenid: 668498c3-afd6-4ac6-8545-7c31568afeee
Are there any tips to solve this problem?