Open ilyas121 opened 4 years ago
Update, I've been able to connect sosumi:raw_usb to :raw_usb , but I still can't get iphone to connect.
I also updated the usb line in the launch file to have:
-usb -device usb-kbd -device usb-mouse -device usb-host,hostbus=1,hostport=5
The behavior when trying to connect my iphone is that it will connect and then disconnect, while incrementing the device number.
libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-5/bConfigurationValue failed ret=-1 errno=2 libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try again libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/028: No such file or directory libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-5/bConfigurationValue failed ret=-1 errno=2 libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try again libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/030: No such file or directory libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [udev_hotplug_event] ignoring udev action bind qemu-system-x86_64: libusb_release_interface: -4 [NO_DEVICE] libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-5/bConfigurationValue failed ret=-1 errno=2 libusb: error [_get_usbfs_fd] File doesn't exist, wait 10 ms and try again libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/032: No such file or directory libusb: error [udev_hotplug_event] ignoring udev action bind usb_desc_get_descriptor: 2 unknown type 33 (len 10) usb_desc_get_descriptor: 1 unknown type 33 (len 10)
I wonder if it retries after each disconnect for 3 times but needs to retry more ofter? Really don't understand how qemu works.
I think its similar to the issue described here: https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg04585.html
So it looks like this change was added to the official qemu repository: https://patchew.org/QEMU/20191015064426.19454-1-kraxel@redhat.com/ However, it seems that the qemu that is installed is out of date?
Any news? Did you get it working?
Can't work because of QEMU version. I forge the exact version that the dev team solved it but this repo uses too old of a version.
For anyone else looking at this, I had the same issue and was able to fix it by just switching from Sosumi to the non snap version here: foxlet/macOS-Simple-KVM. It's functionally the same, and I believe this is just that repo but packaged for Snap. Since it doesn't bundle an old version of QEMU usb passthrough works out of the box
I cant seem to allows usb access through permissions on snap? I've tried alllowing apparmor and creating a new rules.d, but I get Operation not permitted for accessing usb every time.