I did a search for "kvm run failed Bad address" but I've had no luck on this forum nor the wide net.
I had an Ubuntu 22.04 VM with AMD GPU passthrough that was working on 7.4. I used the Xmas period to upgrade the host but I had some trouble and in the end I had to rebuild it from scratch. The changes are: new proxmox version i.e. 8.1, an additional NVMe disk.
The same VM, I mean with the same settings except the pci IDs now crashes after a few hours or fails to start.
Could someone please give me pointers as to what to try ?
When the VM crashes the error begins with
I have nothing added to grub, nothing in /etc/modules, nothing added in the directory /etc/modprobe.d/ i.e no drivers blacklisted and no options passed for vfio or interrupts remapping. Here I might have a mistake because when I had to hose the host, I am going from memory that on 7.4 I didn't have anything there. It had "just worked".
This is the config of the VM in question. Also I have another VM on it, an ubuntu server 22.04 -headless, no GPU passthrough- that doesn't have a problem. Clearly I am doing the GPU passthrough wrongly. The GPU is an AMD RX 6600 XT.
Motherboard: ASUS B550-F GAMING
CPU: AMD Ryzen 9 5900X
And the actual error shows:
I had an Ubuntu 22.04 VM with AMD GPU passthrough that was working on 7.4. I used the Xmas period to upgrade the host but I had some trouble and in the end I had to rebuild it from scratch. The changes are: new proxmox version i.e. 8.1, an additional NVMe disk.
The same VM, I mean with the same settings except the pci IDs now crashes after a few hours or fails to start.
Could someone please give me pointers as to what to try ?
When the VM crashes the error begins with
Code:
"Jan 11 18:49:19 pve QEMU[2270]: error: kvm run failed Bad address"
Code:
root@pve:~# cat /proc/cmdline
BOOT_IMAGE=/boot/vmlinuz-6.5.11-7-pve root=/dev/mapper/pve-root ro quiet
This is the config of the VM in question. Also I have another VM on it, an ubuntu server 22.04 -headless, no GPU passthrough- that doesn't have a problem. Clearly I am doing the GPU passthrough wrongly. The GPU is an AMD RX 6600 XT.
Motherboard: ASUS B550-F GAMING
CPU: AMD Ryzen 9 5900X
Code:
root@pve:~# cat /etc/pve/qemu-server/100.conf
agent: 1
balloon: 0
bios: ovmf
boot: order=scsi0
cores: 12
cpu: host
efidisk0: VMs1:100/vm-100-disk-0.qcow2,efitype=4m,size=528K
hostpci0: 0000:0b:00.0,pcie=1,rombar=0
machine: q35
memory: 16400
meta: creation-qemu=7.2.0,ctime=1703024114
name: ubuntu1
net0: virtio=22:7c:11:b8:c2:d7,bridge=vmbr0,firewall=1
numa: 0
ostype: l26
scsi0: VMs1:100/vm-100-disk-1.qcow2,iothread=1,size=90G
scsi1: /dev/disk/by-id/ata-Samsung_SSD_870_EVO_1TB_S626NF0R943526A,iothread=1,size=976762584K
scsi2: /dev/disk/by-id/ata-WDC_WD30EFRX-68EUZN0_WD-WMC4N2823965,iothread=1,size=2930266584K
scsi3: /dev/disk/by-id/ata-Hitachi_HDP725050GLA360_GEA554RF2GX3SG,iothread=1,size=500106780160
scsi4: /dev/disk/by-id/nvme-INTEL_SSDPEKNU010TZ_BTKA1343082D1P0B,iothread=1,size=1000204632K
scsihw: virtio-scsi-single
smbios1: uuid=218d4a7c-0565-4d95-99aa-dff84488333a
sockets: 1
usb0: host=413c:301a
usb2: host=04b8:1181
usb3: host=04cf:0022
vmgenid: b7c82eb1-99eb-4b2e-b911-b5dce4063a78
Jan 11 18:49:19 pve QEMU[2270]: error: kvm run failed Bad address
Jan 11 18:49:19 pve QEMU[2270]: RAX=0000000000000000 RBX=ffff8ac949f80000 RCX=ffffaf344d40fc9f RDX=0000000000000000
Jan 11 18:49:19 pve QEMU[2270]: RSI=000000000000542e RDI=ffff8ac949f80000 RBP=ffffaf344d40fa90 RSP=ffffaf344d40fa78
Jan 11 18:49:19 pve QEMU[2270]: R8 =0000000000000001 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000
Jan 11 18:49:19 pve QEMU[2270]: R12=000000000000542e R13=ffffaf3441e150b8 R14=ffff8ac953c46820 R15=ffff8ac951466000
Jan 11 18:49:19 pve QEMU[2270]: RIP=ffffffffc1d68891 RFL=00000286 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
Jan 11 18:49:19 pve QEMU[2270]: ES =0000 0000000000000000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA]
Jan 11 18:49:19 pve QEMU[2270]: SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
Jan 11 18:49:19 pve QEMU[2270]: DS =0000 0000000000000000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: FS =0000 00007f563277ab00 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: GS =0000 ffff8accb0800000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: LDT=0000 0000000000000000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: TR =0040 fffffe6e34f2b000 00004087 00008b00 DPL=0 TSS64-busy
Jan 11 18:49:19 pve QEMU[2270]: GDT= fffffe6e34f29000 0000007f
Jan 11 18:49:19 pve QEMU[2270]: IDT= fffffe0000000000 00000fff
Jan 11 18:49:19 pve QEMU[2270]: CR0=80050033 CR2=0000563249643198 CR3=000000016b9f6000 CR4=00750ef0
Jan 11 18:49:19 pve QEMU[2270]: DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
Jan 11 18:49:19 pve QEMU[2270]: DR6=00000000ffff0ff0 DR7=0000000000000400
Jan 11 18:49:19 pve QEMU[2270]: EFER=0000000000000d01
Jan 11 18:49:19 pve QEMU[2270]: Code=3b af b8 08 00 00 73 6d 83 e2 02 74 2b 4c 03 ab c0 08 00 00 <45> 8b 6d 00 48 8b 43 08 0f b7 70 3e 66 90 5b 44 89 e8 41 5c 41 5d 5d 31 d2 31 c9 31 f6 31
[/ISPOILER]
Jan 11 18:49:19 pve QEMU[2270]: RAX=0000000000000000 RBX=ffff8ac949f80000 RCX=ffffaf344d40fc9f RDX=0000000000000000
Jan 11 18:49:19 pve QEMU[2270]: RSI=000000000000542e RDI=ffff8ac949f80000 RBP=ffffaf344d40fa90 RSP=ffffaf344d40fa78
Jan 11 18:49:19 pve QEMU[2270]: R8 =0000000000000001 R9 =0000000000000000 R10=0000000000000000 R11=0000000000000000
Jan 11 18:49:19 pve QEMU[2270]: R12=000000000000542e R13=ffffaf3441e150b8 R14=ffff8ac953c46820 R15=ffff8ac951466000
Jan 11 18:49:19 pve QEMU[2270]: RIP=ffffffffc1d68891 RFL=00000286 [--S--P-] CPL=0 II=0 A20=1 SMM=0 HLT=0
Jan 11 18:49:19 pve QEMU[2270]: ES =0000 0000000000000000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: CS =0010 0000000000000000 ffffffff 00a09b00 DPL=0 CS64 [-RA]
Jan 11 18:49:19 pve QEMU[2270]: SS =0018 0000000000000000 ffffffff 00c09300 DPL=0 DS [-WA]
Jan 11 18:49:19 pve QEMU[2270]: DS =0000 0000000000000000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: FS =0000 00007f563277ab00 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: GS =0000 ffff8accb0800000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: LDT=0000 0000000000000000 00000000 00000000
Jan 11 18:49:19 pve QEMU[2270]: TR =0040 fffffe6e34f2b000 00004087 00008b00 DPL=0 TSS64-busy
Jan 11 18:49:19 pve QEMU[2270]: GDT= fffffe6e34f29000 0000007f
Jan 11 18:49:19 pve QEMU[2270]: IDT= fffffe0000000000 00000fff
Jan 11 18:49:19 pve QEMU[2270]: CR0=80050033 CR2=0000563249643198 CR3=000000016b9f6000 CR4=00750ef0
Jan 11 18:49:19 pve QEMU[2270]: DR0=0000000000000000 DR1=0000000000000000 DR2=0000000000000000 DR3=0000000000000000
Jan 11 18:49:19 pve QEMU[2270]: DR6=00000000ffff0ff0 DR7=0000000000000400
Jan 11 18:49:19 pve QEMU[2270]: EFER=0000000000000d01
Jan 11 18:49:19 pve QEMU[2270]: Code=3b af b8 08 00 00 73 6d 83 e2 02 74 2b 4c 03 ab c0 08 00 00 <45> 8b 6d 00 48 8b 43 08 0f b7 70 3e 66 90 5b 44 89 e8 41 5c 41 5d 5d 31 d2 31 c9 31 f6 31
[/ISPOILER]
Last edited: