Hi all, I need somebody's help because I got memory failure in linux VMs when I passthrough iGPU to the VMs. I noticed this issue since I got "internal compiler error" when compiling OpenWRT in a Debian VM with iGPU passthroughed. Then I make a test with memtester. VM with iGPU passthrough shows
And without iGPU passthrough, memtester passes all the tests.
My setup is as follows:
VM config:
Best regards!
Code:
root@debian-server:# /sbin/memtester 1G 1
memtester version 4.5.0 (64-bit)
Copyright (C) 2001-2020 Charles Cazabon.
Licensed under the GNU General Public License version 2 (only).
pagesize is 4096
pagesizemask is 0xfffffffffffff000
want 1024MB (1073741824 bytes)
got 1024MB (1073741824 bytes), trying mlock ...locked.
Loop 1/1:
Stuck Address : testing 2FAILURE: possible bad address line at offset 0x007ac800.
Skipping to next test...
Random Value : FAILURE: 0x00000000 != 0x5e7bc1737fea0094 at offset 0x007ac800.
FAILURE: 0x00000000 != 0xff7c654f66f7f7b at offset 0x007ac808.
FAILURE: 0x00000000 != 0xf75d7a7cd5bbc38e at offset 0x007ac810.
FAILURE: 0x00000000 != 0x779a31dd2bd796e2 at offset 0x007ac818.
FAILURE: 0x00000000 != 0x5a7bdceea9ff91ac at offset 0x007ac820.
...
And without iGPU passthrough, memtester passes all the tests.
My setup is as follows:
CPU: Alder lake i3-12100
GPU: Intel UHD 730
PVE Version: 7.2-11
PVE Host Kernel: 5.19.7-2-pve
Test VM: Debian 11 with 6.0.7-edge kernel
VM config:
Code:
qm config 104
agent: 1
bios: ovmf
boot: order=ide2;scsi0;net0
cores: 8
cpu: host
efidisk0: local-lvm:vm-104-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:00:02,pcie=1
ide2: none,media=cdrom
machine: q35
memory: 2048
meta: creation-qemu=7.0.0,ctime=1667973047
name: Debian-Server
net0: virtio=D2:C6:3C:E7:4C:4E,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: local-lvm:vm-104-disk-1,size=100G
scsihw: virtio-scsi-pci
smbios1: uuid=4d93c187-e815-49ec-8269-edf019d61e6d
sockets: 1
vga: vmware
vmgenid: b5cb2e0a-9e3a-4455-a26b-6babb88c0bc1
Best regards!