Skip to content
This repository has been archived by the owner on Jan 19, 2021. It is now read-only.

How do you mount usb devices? Trying to pass through iphone #19

Open
ilyas121 opened this issue May 6, 2020 · 7 comments
Open

How do you mount usb devices? Trying to pass through iphone #19

ilyas121 opened this issue May 6, 2020 · 7 comments

Comments

@ilyas121
Copy link

ilyas121 commented May 6, 2020

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.

@ilyas121
Copy link
Author

ilyas121 commented May 6, 2020

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)

@ilyas121
Copy link
Author

ilyas121 commented May 6, 2020

I wonder if it retries after each disconnect for 3 times but needs to retry more ofter? Really don't understand how qemu works.

@ilyas121
Copy link
Author

ilyas121 commented May 6, 2020

I think its similar to the issue described here: https://lists.gnu.org/archive/html/qemu-devel/2018-12/msg04585.html

@ilyas121
Copy link
Author

ilyas121 commented May 6, 2020

So it looks like this change was added to the official qemu repository: https://patchew.org/QEMU/[email protected]/
However, it seems that the qemu that is installed is out of date?

@matheushf
Copy link

Any news? Did you get it working?

@ilyas121
Copy link
Author

ilyas121 commented Aug 4, 2020

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.

@unoctium1
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants