Sorry to borrow this topic. After updating the latest pve related components, compared with the original KVM that could not be started, now KVM can be started, but there are warnings.
References are as follows:
error writing '1' to '/sys/bus/pci/devices/0000:01:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:01:00.0', but trying to continue as not all devices need a reset
swtpm_setup: Not overwriting existing state file.
kvm: warning: host doesn't support requested feature: CPUID.01H:ECX.pcid [bit 17]
Among them, the swtpm and warnings exist on all virtual machines. The PCI device is my NV graphics card, which currently does not affect the normal startup of KVM and device passthrough.
In particular it should be fixed thanks to @dcsapak inlibpve-common-perl >= 8.2.7
andqemu-server >= 8.2.6
both available in the testing repository at the time of this writing.
If you'd like to install the package, you can temporarily enable the repository (e.g. via theRepositories
section in the UI), runapt update
, runapt install libpve-common-perl qemu-server
and disable the repository again, then runapt update
again.
same here with proxmox 8.3.0:AMD IGPU 780M
task error:can't reset 'c6:00.0' pci device
error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset
TASK ERROR: timeout waiting on systemd
please share the output ofsame here with proxmox 8.3.0:
Code:error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset TASK ERROR: timeout waiting on systemd
seems that RadeonResetBugFix does not work anymore https://github.com/inga-lovinde/RadeonResetBugFix/tree/master
how can I fix that?
pveversion -v
and the VM configuration qm config <ID>
as well as an excerpt of the system logs/journal around the time the issue happened. Does it work if you start the VM with a higher timeout, e.g. qm start <ID> --timeout 900
? If yes, how long does it take to actually start?proxmox-ve: 8.3.0 (running kernel: 6.8.12-4-pve)
pve-manager: 8.3.0 (running version: 8.3.0/c1689ccb1065a83b)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-4
proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4
proxmox-kernel-6.8.4-2-pve-signed: 6.8.4-2
amd64-microcode: 3.20240820.1~deb12u1
ceph-fuse: 17.2.7-pve3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx11
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.2.0
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.10
libpve-cluster-perl: 8.0.10
libpve-common-perl: 8.2.9
libpve-guest-common-perl: 5.1.6
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.10.0
libpve-rs-perl: 0.9.1
libpve-storage-perl: 8.2.9
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.5.0-1
proxmox-backup-client: 3.3.0-1
proxmox-backup-file-restore: 3.3.0-1
proxmox-firewall: 0.6.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.3.1
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.3
pve-cluster: 8.0.10
pve-container: 5.2.2
pve-docs: 8.3.1
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.1.0
pve-firmware: 3.14-1
pve-ha-manager: 4.0.6
pve-i18n: 3.3.2
pve-qemu-kvm: 9.0.2-4
pve-xtermjs: 5.3.0-3
qemu-server: 8.3.0
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1
agent: 1
args: -cpu 'host,-hypervisor,kvm=off'
bios: ovmf
boot: order=scsi0;net0
cores: 16
cpu: host
efidisk0: local-lvm:vm-100-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci0: 0000:c6:00.0,pcie=1,romfile=vbios_8845.bin,x-vga=1
hostpci1: 0000:c6:00.1,pcie=1,romfile=AMDGopDriver_8845hs.rom
machine: pc-q35-9.0
memory: 16384
meta: creation-qemu=9.0.2,ctime=1732920848
name: win11
net0: virtio=BC:24:11:46:0D:C3,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsi0: local-lvm:vm-100-disk-1,cache=writeback,discard=on,iothread=1,size=200G,ssd=1
scsihw: virtio-scsi-single
smbios1: uuid=3be659fd-57b6-4496-9f8b-37b4dc200bad
sockets: 1
tpmstate0: local-lvm:vm-100-disk-2,size=4M,version=v2.0
vga: none
vmgenid: 9cdc5539-d08b-473d-b970-a2b6bbc76522
error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset
timeout waiting on systemd
That does not look likethe "excerpt of the system logs/journal around the time the issue" it's only about this message as before, even if I start it with 900 timeout:
with a HDMI connected to the machine, after win vm go off, monitor stay blank, does not return to the host...Code:error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset timeout waiting on systemd
journalctl
output, e.g. timestamp and process IDs are missing. There also should be log lines mentioning the qmstart
task.Dec 02 10:52:57 proxmox login[166633]: ROOT LOGIN on '/dev/pts/0'
Dec 02 10:52:59 proxmox qm[166665]: <root@pam> starting task UPID:proxmox:00028B0A:0047DD96:674D837B:qmstart:100:root@pam:
Dec 02 10:52:59 proxmox qm[166666]: start VM 100: UPID:proxmox:00028B0A:0047DD96:674D837B:qmstart:100:root@pam:
Dec 02 10:53:00 proxmox systemd[1]: 100.scope: Deactivated successfully.
Dec 02 10:53:00 proxmox systemd[1]: Stopped 100.scope.
Dec 02 10:53:00 proxmox systemd[1]: 100.scope: Consumed 5h 41min 49.973s CPU time.
Dec 02 10:53:20 proxmox qm[166666]: timeout waiting on systemd
Dec 02 10:53:20 proxmox qm[166665]: <root@pam> end task UPID:proxmox:00028B0A:0047DD96:674D837B:qmstart:100:root@pam: timeout waiting on systemd
Dec 02 10:54:22 proxmox qm[166950]: <root@pam> starting task UPID:proxmox:00028C27:0047FDF6:674D83CE:qmstart:100:root@pam:
Dec 02 10:54:22 proxmox qm[166951]: start VM 100: UPID:proxmox:00028C27:0047FDF6:674D83CE:qmstart:100:root@pam:
Dec 02 10:54:42 proxmox qm[166951]: timeout waiting on systemd
Dec 02 10:54:42 proxmox qm[166950]: <root@pam> end task UPID:proxmox:00028C27:0047FDF6:674D83CE:qmstart:100:root@pam: timeout waiting on systemd
Just checking in to see if there has been any progress on this? I am also experiencing this issue - happy to help anyway I can.That does not look likejournalctl
output, e.g. timestamp and process IDs are missing. There also should be log lines mentioning theqmstart
task.
what did you update?New updates fixed issues. I unhold those three packages and upgraded everything good now.
I'm experiencing the same issue.That does not look likejournalctl
output, e.g. timestamp and process IDs are missing. There also should be log lines mentioning theqmstart
task.
error writing '1' to '/sys/bus/pci/devices/0000:65:00.0/reset': Inappropriate ioctl for device
error writing '1' to '/sys/bus/pci/devices/0000:65:00.0/reset': Inappropriate ioctl for device
error writing '1' to '/sys/bus/pci/devices/0000:26:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:26:00.0', but trying to continue as not all devices need a reset
kvm: ../hw/pci/pci.c:1633: pci_irq_handler: Assertion `0 <= irq_num && irq_num < PCI_NUM_PINS' failed.
TASK ERROR: start failed: QEMU exited with code 1
same here, do you think is a proxmox's problem o ResetBugFix on AMD does not work anymore?For me I am passing through an AMG 7900 GRE, it passes through fine initially, then at some point the VM will freeze. When I try and start the VM again, I get:
Code:error writing '1' to '/sys/bus/pci/devices/0000:26:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:26:00.0', but trying to continue as not all devices need a reset kvm: ../hw/pci/pci.c:1633: pci_irq_handler: Assertion `0 <= irq_num && irq_num < PCI_NUM_PINS' failed. TASK ERROR: start failed: QEMU exited with code 1
Only way to start the VM again is to reboot the host.
have you fixed that?what to do?Hello,
thank you for your support:
pveversion -v:
Code:proxmox-ve: 8.3.0 (running kernel: 6.8.12-4-pve) pve-manager: 8.3.0 (running version: 8.3.0/c1689ccb1065a83b) proxmox-kernel-helper: 8.1.0 proxmox-kernel-6.8: 6.8.12-4 proxmox-kernel-6.8.12-4-pve-signed: 6.8.12-4 proxmox-kernel-6.8.4-2-pve-signed: 6.8.4-2 amd64-microcode: 3.20240820.1~deb12u1 ceph-fuse: 17.2.7-pve3 corosync: 3.1.7-pve3 criu: 3.17.1-2 glusterfs-client: 10.3-5 ifupdown2: 3.2.0-1+pmx11 ksm-control-daemon: 1.5-1 libjs-extjs: 7.0.0-5 libknet1: 1.28-pve1 libproxmox-acme-perl: 1.5.1 libproxmox-backup-qemu0: 1.4.1 libproxmox-rs-perl: 0.3.4 libpve-access-control: 8.2.0 libpve-apiclient-perl: 3.3.2 libpve-cluster-api-perl: 8.0.10 libpve-cluster-perl: 8.0.10 libpve-common-perl: 8.2.9 libpve-guest-common-perl: 5.1.6 libpve-http-server-perl: 5.1.2 libpve-network-perl: 0.10.0 libpve-rs-perl: 0.9.1 libpve-storage-perl: 8.2.9 libspice-server1: 0.15.1-1 lvm2: 2.03.16-2 lxc-pve: 6.0.0-1 lxcfs: 6.0.0-pve2 novnc-pve: 1.5.0-1 proxmox-backup-client: 3.3.0-1 proxmox-backup-file-restore: 3.3.0-1 proxmox-firewall: 0.6.0 proxmox-kernel-helper: 8.1.0 proxmox-mail-forward: 0.3.1 proxmox-mini-journalreader: 1.4.0 proxmox-offline-mirror-helper: 0.6.7 proxmox-widget-toolkit: 4.3.3 pve-cluster: 8.0.10 pve-container: 5.2.2 pve-docs: 8.3.1 pve-edk2-firmware: 4.2023.08-4 pve-esxi-import-tools: 0.7.2 pve-firewall: 5.1.0 pve-firmware: 3.14-1 pve-ha-manager: 4.0.6 pve-i18n: 3.3.2 pve-qemu-kvm: 9.0.2-4 pve-xtermjs: 5.3.0-3 qemu-server: 8.3.0 smartmontools: 7.3-pve1 spiceterm: 3.3.0 swtpm: 0.8.0+pve1 vncterm: 1.8.0 zfsutils-linux: 2.2.6-pve1
qm config <ID> (Win11 vm with iGPU pass):
Code:agent: 1 args: -cpu 'host,-hypervisor,kvm=off' bios: ovmf boot: order=scsi0;net0 cores: 16 cpu: host efidisk0: local-lvm:vm-100-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M hostpci0: 0000:c6:00.0,pcie=1,romfile=vbios_8845.bin,x-vga=1 hostpci1: 0000:c6:00.1,pcie=1,romfile=AMDGopDriver_8845hs.rom machine: pc-q35-9.0 memory: 16384 meta: creation-qemu=9.0.2,ctime=1732920848 name: win11 net0: virtio=BC:24:11:46:0D:C3,bridge=vmbr0,firewall=1 numa: 0 ostype: win11 scsi0: local-lvm:vm-100-disk-1,cache=writeback,discard=on,iothread=1,size=200G,ssd=1 scsihw: virtio-scsi-single smbios1: uuid=3be659fd-57b6-4496-9f8b-37b4dc200bad sockets: 1 tpmstate0: local-lvm:vm-100-disk-2,size=4M,version=v2.0 vga: none vmgenid: 9cdc5539-d08b-473d-b970-a2b6bbc76522
the "excerpt of the system logs/journal around the time the issue" it's only about this message as before, even if I start it with 900 timeout:
with a HDMI connected to the machine, after win vm go off, monitor stay blank, does not return to the host...Code:error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset timeout waiting on systemd
thank you again for your time
everytime!!!For me I am passing through an AMG 7900 GRE, it passes through fine initially, then at some point the VM will freeze. When I try and start the VM again, I get:
Code:error writing '1' to '/sys/bus/pci/devices/0000:26:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:26:00.0', but trying to continue as not all devices need a reset kvm: ../hw/pci/pci.c:1633: pci_irq_handler: Assertion `0 <= irq_num && irq_num < PCI_NUM_PINS' failed. TASK ERROR: start failed: QEMU exited with code 1
Only way to start the VM again is to reboot the host.
Hi,
please share the output ofpveversion -v
and the VM configurationqm config <ID>
as well as an excerpt of the system logs/journal around the time the issue happened. Does it work if you start the VM with a higher timeout, e.g.qm start <ID> --timeout 900
? If yes, how long does it take to actually start?
qm start 104
error writing '1' to '/sys/bus/pci/devices/0000:01:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:01:00.0', but trying to continue as not all devices need a reset
swtpm_setup: Not overwriting existing state file.
proxmox-ve: 8.3.0 (running kernel: 6.2.16-5-pve)
pve-manager: 8.3.2 (running version: 8.3.2/3e76eec21c4a14a7)
proxmox-kernel-helper: 8.1.0
proxmox-kernel-6.8: 6.8.12-6
proxmox-kernel-6.8.12-6-pve-signed: 6.8.12-6
proxmox-kernel-6.8.12-1-pve-signed: 6.8.12-1
proxmox-kernel-6.8.4-2-pve-signed: 6.8.4-2
pve-kernel-6.2.16-5-pve: 6.2.16-6
ceph-fuse: 17.2.7-pve3
corosync: 3.1.7-pve3
criu: 3.17.1-2
glusterfs-client: 10.3-5
ifupdown2: 3.2.0-1+pmx11
ksm-control-daemon: 1.5-1
libjs-extjs: 7.0.0-5
libknet1: 1.28-pve1
libproxmox-acme-perl: 1.5.1
libproxmox-backup-qemu0: 1.4.1
libproxmox-rs-perl: 0.3.4
libpve-access-control: 8.2.0
libpve-apiclient-perl: 3.3.2
libpve-cluster-api-perl: 8.0.10
libpve-cluster-perl: 8.0.10
libpve-common-perl: 8.2.9
libpve-guest-common-perl: 5.1.6
libpve-http-server-perl: 5.1.2
libpve-network-perl: 0.10.0
libpve-rs-perl: 0.9.1
libpve-storage-perl: 8.3.3
libspice-server1: 0.15.1-1
lvm2: 2.03.16-2
lxc-pve: 6.0.0-1
lxcfs: 6.0.0-pve2
novnc-pve: 1.5.0-1
proxmox-backup-client: 3.3.2-1
proxmox-backup-file-restore: 3.3.2-2
proxmox-firewall: 0.6.0
proxmox-kernel-helper: 8.1.0
proxmox-mail-forward: 0.3.1
proxmox-mini-journalreader: 1.4.0
proxmox-offline-mirror-helper: 0.6.7
proxmox-widget-toolkit: 4.3.3
pve-cluster: 8.0.10
pve-container: 5.2.3
pve-docs: 8.3.1
pve-edk2-firmware: 4.2023.08-4
pve-esxi-import-tools: 0.7.2
pve-firewall: 5.1.0
pve-firmware: 3.14-2
pve-ha-manager: 4.0.6
pve-i18n: 3.3.2
pve-qemu-kvm: 9.0.2-4
pve-xtermjs: 5.3.0-3
qemu-server: 8.3.3
smartmontools: 7.3-pve1
spiceterm: 3.3.0
swtpm: 0.8.0+pve1
vncterm: 1.8.0
zfsutils-linux: 2.2.6-pve1
root@jphomelabs:~# qm config 104
agent: 1
args: -cpu 'host,+kvm_pv_unhalt,+kvm_pv_eoi,hv_vendor_id=proxmox,hv_spinlocks=0x1fff,hv_vapic,hv_time,hv_reset,hv_vpindex,hv_runtime,hv_relaxed,hv_synic,hv_stimer,hv_tlbflush,hv_ipi,kvm=off'
bios: ovmf
boot: order=scsi0;ide0;net0
bootdisk: scsi0
cores: 4
cpu: host
description: CPU configuration for compatibility and optimization%0A Enable GPU passthrough%0A Enable QEMU Agent%0A UEFI BIOS for Windows 11%0A Boot options%0A VM hardware%0A VM Name%0A Network configuration%0A NUMA configuration%0A OS type%0A VirtIO SCSI for disk performance%0A TPM (for Windows 11 compatibility)%0A Storage%0A VM UUID%0A Sockets and VM generation ID
efidisk0: local-lvm:vm-104-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
hostpci1: 0000:01:00,pcie=1
ide0: local:iso/virtio-win-0.1.266.iso,media=cdrom,size=707456K
ide2: none,media=cdrom
machine: pc-q35-9.0
memory: 8096
meta: creation-qemu=9.0.2,ctime=1735468633
name: LLMVM-Windows11
net0: virtio=BC:24:11:5A:FC:7D,bridge=vmbr0,firewall=1
numa: 0
ostype: win11
scsihw: virtio-scsi-pci
smbios1: uuid=fdf63a51-30db-45db-bd44-2e7c667431db
sockets: 1
tpmstate0: local-lvm:vm-104-disk-1,size=4M,version=v2.0
virtio0: local-lvm:vm-104-disk-2,iothread=1,size=200G
vmgenid: 9b8b7827-b678-435f-a168-14a55acfeda6
Aug 05 23:29:09 jphomelabs kernel: Linux version 6.8.4-2-pve (build@proxmox) (gcc (Debian 12.2.0-14) 12.2.0, GNU ld (GNU Binutils for Debian) 2.40) #1 SMP PREEMPT_DYNAMIC PMX 6.8.4-2 (2024-04-10T17:36Z) ()
Aug 05 23:29:09 jphomelabs kernel: Command line: BOOT_IMAGE=/boot/vmlinuz-6.8.4-2-pve root=/dev/mapper/pve-root ro quiet
Aug 05 23:29:09 jphomelabs kernel: KERNEL supported cpus:
Aug 05 23:29:09 jphomelabs kernel: Intel GenuineIntel
Aug 05 23:29:09 jphomelabs kernel: AMD AuthenticAMD
Aug 05 23:29:09 jphomelabs kernel: Hygon HygonGenuine
Aug 05 23:29:09 jphomelabs kernel: Centaur CentaurHauls
Aug 05 23:29:09 jphomelabs kernel: zhaoxin Shanghai
Aug 05 23:29:09 jphomelabs kernel: BIOS-provided physical RAM map:
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000000000000-0x00000000000907ff] usable
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000000090800-0x000000000009ffff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x00000000000e0000-0x00000000000fffff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000000100000-0x000000006482ffff] usable
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000064830000-0x0000000064830fff] ACPI NVS
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000064831000-0x0000000078606fff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000078607000-0x0000000078648fff] ACPI data
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000078649000-0x0000000078fbefff] ACPI NVS
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000078fbf000-0x00000000795fefff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x00000000e0000000-0x00000000efffffff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x00000000fe000000-0x00000000fe010fff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x00000000fec00000-0x00000000fec00fff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x00000000fee00000-0x00000000fee00fff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x00000000ff000000-0x00000000ffffffff] reserved
Aug 05 23:29:09 jphomelabs kernel: BIOS-e820: [mem 0x0000000100000000-0x000000047f7fffff] usable
Aug 05 23:29:09 jphomelabs kernel: NX (Execute Disable) protection: active
Aug 05 23:29:09 jphomelabs kernel: APIC: Static calls initialized
that message by itself is not necessarily an issue: https://git.proxmox.com/?p=qemu-server.git;a=commit;h=458b487bed3f4f03cf55ed2b06620a5c84089530Hey there, looking forward to your help on this one: I'm also getting this error when trying to do a GPU passthrough to a VM
Code:qm start 104 error writing '1' to '/sys/bus/pci/devices/0000:01:00.0/reset': Inappropriate ioctl for device failed to reset PCI device '0000:01:00.0', but trying to continue as not all devices need a reset
error writing '1' to '/sys/bus/pci/devices/0000:c6:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:c6:00.0', but trying to continue as not all devices need a reset
timeout waiting on systemd