Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[solved]Can't pass anything through to VM
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
dirtboxes
n00b
n00b


Joined: 27 Apr 2021
Posts: 39

PostPosted: Mon Jul 19, 2021 11:07 am    Post subject: [solved]Can't pass anything through to VM Reply with quote

I get this error when I try to passthrough a pci device:
Code:
Error starting domain: internal error: qemu unexpectedly closed the monitor: audio: Could not init `spice' audio driver
audio: warning: Using timer based audio emulation
2021-07-19T11:01:06.479209Z qemu-system-x86_64: -device vfio-pci,host=0000:01:00.1,id=hostdev0,bus=pci.5,addr=0x0: vfio 0000:01:00.1: failed to setup container for group 7: Failed to set iommu for container: Operation not permitted

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1329, in startup
    self._backend.create()
  File "/usr/lib/python3.9/site-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: audio: Could not init `spice' audio driver
audio: warning: Using timer based audio emulation
2021-07-19T11:01:06.479209Z qemu-system-x86_64: -device vfio-pci,host=0000:01:00.1,id=hostdev0,bus=pci.5,addr=0x0: vfio 0000:01:00.1: failed to setup container for group 7: Failed to set iommu for container: Operation not permitted


and this error when I try to pass a usb device:
Code:
Error starting domain: internal error: qemu unexpectedly closed the monitor: qxl_send_events: spice-server bug: guest stopped, ignoring
2021-07-19T11:03:33.426292Z qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=7,id=hostdev0,bus=usb.0,port=2: 'usb-host' is not a valid device model name

Traceback (most recent call last):
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 65, in cb_wrapper
    callback(asyncjob, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/asyncjob.py", line 101, in tmpcb
    callback(*args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/libvirtobject.py", line 57, in newfn
    ret = fn(self, *args, **kwargs)
  File "/usr/share/virt-manager/virtManager/object/domain.py", line 1329, in startup
    self._backend.create()
  File "/usr/lib/python3.9/site-packages/libvirt.py", line 1353, in create
    raise libvirtError('virDomainCreate() failed')
libvirt.libvirtError: internal error: qemu unexpectedly closed the monitor: qxl_send_events: spice-server bug: guest stopped, ignoring
2021-07-19T11:03:33.426292Z qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=7,id=hostdev0,bus=usb.0,port=2: 'usb-host' is not a valid device model name


I'm running virt-manager as root and have enabled iommu in the kernel command line and in /etc/default/grub

Any help appreciated.


Last edited by dirtboxes on Mon Aug 02, 2021 9:27 am; edited 1 time in total
Back to top
View user's profile Send private message
NyneR
n00b
n00b


Joined: 19 Dec 2020
Posts: 35

PostPosted: Thu Jul 22, 2021 8:09 pm    Post subject: Reply with quote

Not sure if its related, but what are your USE-Flags for
Code:
app-emulation/qemu
?
For example you need to enable the
Code:
usb
USE-Flag to be able to pass through USB devices.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum