NVME Passthrough - Failed to Reset PCI Device / No PCI Device Found

markvvv

New Member
Jan 8, 2025
1
0
1
Hello Everyone,


1. I created a TrueNAS VM, and tried to passthrough a WD Red SN700 2TB NVMe. When I start the VM, I get the following message:

error writing '1' to '/sys/bus/pci/devices/0000:0b:00.0/reset': Inappropriate ioctl for device
failed to reset PCI device '0000:0b:00.0', but trying to continue as not all devices need a reset
kvm: -device vfio-pci,host=0000:0b:00.0,id=hostpci1,bus=ich9-pcie-port-2,addr=0x0,rombar=0: vfio /sys/bus/pci/devices/0000:0b:00.0: no such host device: No such file or directory
no PCI device found for '0000:0b:00.0'
TASK ERROR: start failed: QEMU exited with code 1

If I do 'lspci' after the error, the NVMe is not present. I have to reboot the system in order tog et the drive to reappear.

2. Thinking that it might be an issue with WD SN7xx series drive, I tried to pass through a Samsung 980 Pro NVMe and got the exact same result.

- The motherboard is an Asrock Rack W680D4U-2L2T/G5.
  • The drives are plugged into the M.2 slot (PCIe3 x4), which is attached to the Intel Alder Lake Z690 PCH.
  • There is a Micron 7500 Pro NVMe connected via Oculink, which is attached to the Alder Lake CPU

Here is my VM setup:

balloon: 0
boot: order=scsi0;net0
cores: 8
cpu: host
hostpci0: 0000:01:00,pcie=1,rombar=0
hostpci1: 0000:0b:00.0,pcie=1,rombar=0
machine: q35
memory: 8192
meta: creation-qemu=9.0.2,ctime=1736250759
name: TrueNAS-vm
net0: virtio=BC:24:11:7C:5A:A0,bridge=vmbr1,firewall=1,mtu=9000,tag=60
numa: 0
ostype: l26
scsi0: vm_store:vm-100-disk-0,iothread=1,size=64G
scsihw: virtio-scsi-single
smbios1: uuid=aa27ae72-bc33-4cd4-9320-68fe505c5510
sockets: 1
vmgenid: bd5a4228-5987-4e7d-b063-e430b00da720

Notes:

I've seen similar issues posted here, so hopefully this isn't a duplicate thread. I've noticed in other thread reporting similar issues, that they are related to GPU passthrough, or VMs that have already been established. I

I've attached several files for review.

Any help with this is greatly appreciated.

Thanks.
 

Attachments

Hi, I'm having the same problem with an Erying board. I've been looking for a solution to the problem for days but I can't find anything. Did you find a solution?