I have two VMs on one node. The both use PCI devices, but different. And they can't run at the same time together.
Error from first:
Error from second.
those PCI passthroughed devices are video card and LSI SAS controller. They work perfectly in one started VM, even if I pass them both there. But doesn't in different VMs.
They both trying to access "/dev/vfio/1", though PCIe devices are different, so why? And how can I change it?
their configurations respectively:
Error from first:
Code:
kvm: -device vfio-pci,host=0000:02:00.0,id=hostpci1,bus=ich9-pcie-port-2,addr=0x0: vfio 0000:02:00.0: failed to open /dev/vfio/1: Device or resource busy
TASK ERROR: start failed: QEMU exited with code 1
Error from second.
Code:
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
kvm: -device vfio-pci,host=0000:01:00.0,id=hostpci0.0,bus=ich9-pcie-port-1,addr=0x0.0,multifunction=on: vfio 0000:01:00.0: failed to open /dev/vfio/1: Device or resource busy
TASK ERROR: start failed: QEMU exited with code 1
those PCI passthroughed devices are video card and LSI SAS controller. They work perfectly in one started VM, even if I pass them both there. But doesn't in different VMs.
They both trying to access "/dev/vfio/1", though PCIe devices are different, so why? And how can I change it?
their configurations respectively:
Code:
agent: 1
balloon: 2048
boot: order=scsi0;ide2;net0
cores: 4
cpu: host
hostpci0: 0000:01:00,pcie=1
ide2: zpool12:iso/debian-12.9.0-amd64-DVD-1.iso,media=cdrom,size=3887968K
machine: q35
memory: 8096
meta: creation-qemu=9.0.2,ctime=1741096073
name: media-server
net0: virtio=BC:24:11:4A:3A:E0,bridge=vmbr0,firewall=1
numa: 0
onboot: 1
ostype: l26
scsi0: zpool6:vm-124-disk-0,iothread=1,size=128G
scsi1: zpool6:vm-124-disk-1,backup=0,cache=writethrough,iothread=1,size=32G
scsi2: zpool6:vm-124-disk-2,backup=0,cache=writeback,iothread=1,size=128G
scsihw: virtio-scsi-single
smbios1: uuid=e1fed0e9-7f46-4fe8-bad0-55dbcc82eabb
sockets: 1
vmgenid: d53507a2-d86a-4832-8938-3cee1b39b67b
Code:
agent: 1
balloon: 0
bios: ovmf
boot: order=scsi0
cores: 6
cpu: host
efidisk0: local-zfs:vm-106-disk-1,efitype=4m,pre-enrolled-keys=1,size=1M
hostpci1: 0000:02:00,pcie=1
ide2: none,media=cdrom
localtime: 0
machine: q35
memory: 16384
meta: creation-qemu=8.1.5,ctime=1708944416
name: nas
net0: virtio=BC:24:11:F9:ED:61,bridge=vmbr1,firewall=1,queues=4
net1: virtio=BC:24:11:C1:61:2F,bridge=vmbr9,firewall=1
numa: 0
ostype: l26
scsi0: local-zfs:vm-106-disk-0,iothread=1,size=32G
scsihw: virtio-scsi-single
smbios1: uuid=6ba9aaa4-10e4-4101-989f-b89bfa77584d
sockets: 1
tags: nas
vmgenid: f7273c54-c28b-4030-a158-405f427ad208