On Fri, Nov 1, 2019 at 11:35 AM Programmingkid <
address@hidden> wrote:
> On Oct 31, 2019, at 7:35 PM, address@hidden wrote:
>
> Message: 10
> Date: Thu, 31 Oct 2019 18:39:11 -0000
> From: John Canada <address@hidden>
> To: address@hidden
> Subject: [Bug 1850570] Re: Cannot use usb-host on Mac OS
> Message-ID:
> <address@hidden>
> Content-Type: text/plain; charset="utf-8"
>
> Yes, I tried running as root. I also tried it on a different computer
> that is running Mac OS 10.13, and it gave the same errors.
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/1850570
>
> Title:
> Cannot use usb-host on Mac OS
>
> Status in QEMU:
> New
>
> Bug description:
> Usb-host will not work on Mac OS 10.15. Qemu runs, though it gives
> these errors and the drive does not show up. Also, when Qemu is
> starting the drive ejects and remounts twice. Qemu built with
> ./configure --target-list=i386-softmmu,x86_64-softmmu --enable-sdl
> --disable-cocoa --enable-sdl-image.
>
> qemu-system-i386 image.qcow -usb -device usb-kbd -device usb-host,vendorid=0x0781,productid=0x5571
> libusb: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] USBInterfaceOpen: another process has device opened for exclusive access
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
> libusb: error [darwin_claim_interface] interface not found
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/1850570/+subscriptions
Try this. Unplug the USB device. Plug it back in, and as fast as you can start QEMU.
My theory is another program might be using the device. This could be Spotlight trying to index the drive.
Another possibility is libusb is not compatible with Mac OS 10.13 yet.
Do you have another computer that runs Mac OS 10.12 or under that you can test on?
I guess the longstanding issue with libusb and OSX is that some kext has already claimed the device. A solution would be to unload the kext currently claiming the device before starting Qemu. If possible.
Also see here:
and the links from that page:
Best,
Howard