Jump to content

Getting Execution error trying to pass USB controller to VM


Go to solution Solved by ghost82,

Recommended Posts

I have a Home Assistant VM that I am trying to pass a USB controller to. I have to pass the whole controller because I have a Coral AI accelerator which changes device ids when it's initiated, so I can't pass just the device.

 

I have the controller bound in System Tools:2013590826_2023-04-1014_04_30-Storage_SysDevs.thumb.png.9fad18a2f06d20385b1d0e3989406a62.png

When I view the VFIO-PCI Log it says it was successfully bound:

341103660_2023-04-1014_06_25-Storage_SysDevs.png.2d4e13f638611af76b2da49a6a62377d.png

 

When I try to attach it to the VM and start I get the error

Execution error

internal error: qemu unexpectedly closed the monitor: 2023-04-10T18:08:06.139081Z qemu-system-x86_64: -device vfio-pci,host=0000:09:00.3,id=hostdev0,bus=pci.4,addr=0x0: vfio 0000:09:00.3: failed to setup container for group 19: Failed to set iommu for container: Operation not permitted

 

109456442_2023-04-1014_07_27-Storage_UpdateVM.png.6d87a7d1621acee5166559b1c8637561.png

 

815285556_2023-04-1014_08_09-Storage_VMs.png.58c4136f03c059a33207691b6b065f60.png

 

Diagnostics file attached. Thanks in advance.

storage-diagnostics-20230410-1359.zip

Link to comment
  • Solution
Apr 10 13:54:15 Storage kernel: vfio_iommu_type1_attach_group: No interrupt remapping support.  Use the module param "allow_unsafe_interrupts" to enable VFIO IOMMU support on this platform

 

 Settings -> VM -> change "VFIO allow unsafe interrupts" to Yes. Apply, reboot and try

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...