Discussion:
[libvirt-users] usb post passthough stopped workng after kernel upgrade
daggs
2018-11-05 17:55:49 UTC
Permalink
Greetings,

I have a vm on debian 9.5 to which I pass an specific usb from the host. here is the relevant part in the vm's xml file:
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x148f'/>
<product id='0x5572'/>
</source>
<address type='usb' bus='0' port='1'/>
</hostdev>
the address line was added automatically by libvirt.
everything was working well with kernel 4.15.11-1~bpo9+1 until I needed to upgrade the kernel to latest possible version due to usb issues
I've upgraded to 4.18.6-1~bpo9+1. after the upgrade, my vm doesn't starts anymore, I see this msg:
error: Failed to start domain router
error: internal error: qemu unexpectedly closed the monitor: 2018-11-02T13:43:32.174730Z qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=4,id=hostdev4,bus=usb.0,port=1: failed to find host usb device 1:4

how can a kernel upgrade cause this? is there a fix for this issue?

Thanks,

Dagg.
daggs
2018-11-08 07:16:19 UTC
Permalink
anyone has any idea regarding this issue?
Sent: Monday, November 05, 2018 at 7:55 PM
Subject: [libvirt-users] usb post passthough stopped workng after kernel upgrade
Greetings,
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x148f'/>
<product id='0x5572'/>
</source>
<address type='usb' bus='0' port='1'/>
</hostdev>
the address line was added automatically by libvirt.
everything was working well with kernel 4.15.11-1~bpo9+1 until I needed to upgrade the kernel to latest possible version due to usb issues
error: Failed to start domain router
error: internal error: qemu unexpectedly closed the monitor: 2018-11-02T13:43:32.174730Z qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=4,id=hostdev4,bus=usb.0,port=1: failed to find host usb device 1:4
how can a kernel upgrade cause this? is there a fix for this issue?
Thanks,
Dagg.
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
daggs
2018-11-09 12:24:09 UTC
Permalink
Solved!

apparmor was to blame, I've disabled it on kernel params and all works again.
Sent: Thursday, November 08, 2018 at 9:16 AM
Subject: Re: [libvirt-users] usb post passthough stopped workng after kernel upgrade
anyone has any idea regarding this issue?
Sent: Monday, November 05, 2018 at 7:55 PM
Subject: [libvirt-users] usb post passthough stopped workng after kernel upgrade
Greetings,
<hostdev mode='subsystem' type='usb' managed='yes'>
<source>
<vendor id='0x148f'/>
<product id='0x5572'/>
</source>
<address type='usb' bus='0' port='1'/>
</hostdev>
the address line was added automatically by libvirt.
everything was working well with kernel 4.15.11-1~bpo9+1 until I needed to upgrade the kernel to latest possible version due to usb issues
error: Failed to start domain router
error: internal error: qemu unexpectedly closed the monitor: 2018-11-02T13:43:32.174730Z qemu-system-x86_64: -device usb-host,hostbus=1,hostaddr=4,id=hostdev4,bus=usb.0,port=1: failed to find host usb device 1:4
how can a kernel upgrade cause this? is there a fix for this issue?
Thanks,
Dagg.
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
_______________________________________________
libvirt-users mailing list
https://www.redhat.com/mailman/listinfo/libvirt-users
Loading...