From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2F6C4C433B4 for ; Sun, 4 Apr 2021 20:28:14 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8E26E6120E for ; Sun, 4 Apr 2021 20:28:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 8E26E6120E Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:51908 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lT9Lw-0003HI-Ce for qemu-devel@archiver.kernel.org; Sun, 04 Apr 2021 16:28:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38580) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lT9L3-0002YI-Nc for qemu-devel@nongnu.org; Sun, 04 Apr 2021 16:27:17 -0400 Received: from mail-oo1-xc2c.google.com ([2607:f8b0:4864:20::c2c]:42896) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lT9L1-00015z-Vk for qemu-devel@nongnu.org; Sun, 04 Apr 2021 16:27:17 -0400 Received: by mail-oo1-xc2c.google.com with SMTP id h3-20020a4ae8c30000b02901b68b39e2d3so2452989ooe.9 for ; Sun, 04 Apr 2021 13:27:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=4VHJcPCxnbA6WnOtG0lBi2eAsU11zc32m4+4b3tKNVw=; b=pAX7AOtb61zBcOwNduNDHGUpUGQLxElAHQenkdl+pPcoXEfj9zJ2tvpfvu2KBsOFum hrjRPEpmhwpsjUNp0oquPYtTnSKeJCQ38R4Z2HEjSaHETdeS8FAEiQe8NkGls+jyG/Ie b3wAerSskAK/rv8mh31iuYddRqGtW7irTZoighe2nzgJiiP8d7oURbhGia9mg00PVHkI zn3K2ldSjIZgQvSoS5g9YGoAYpXV49Ywk8jaFXQ7LbI9R5qz6rxPt7HXVPvpskoFjfnl b33p+SA18xJf+7BhqqwL8uZaCeuA7hMy/SQuR37gA0o4lcKYGymzZdHAdsjOo3GstUda p/tQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=4VHJcPCxnbA6WnOtG0lBi2eAsU11zc32m4+4b3tKNVw=; b=lNqmCr+D5OYM/XlkM+lkPEPEzY7y+qKMTmNOLMewYUHmgSrPVwBKzWQJL7GQIgwLH2 fTBSbVEQYyVn0Ze9BAHHGKDLQnJGcbzpnMmNziChHXvv0UaCDAyfD7YEDEo1bPTarChK rzlSibU8bpy0AMpbSY7YU0HnqgG9ItyfjgimFadYXi3C//U048KHbNMkgDY2PTen3hPJ 6wEv43579p2UnKmZWwiDoJeA5QfXblJMADcXHRBlxSa7V37AYed44jzsJw34nnffRFSs D/seiUCJeV+U6570nZbJdhGXR93U+5o54ZQdX1aCp1xKnVWWmgid4cqvdgt4Hk18Dw8s 6+RA== X-Gm-Message-State: AOAM530O460EB1aCKtGpF90yG6fe4SpFY50gPlcBcv9OwC6FQwnPAvt/ DeF8osx3OSts8IAda8f8I5R7Fzux+cm1/oARaJI= X-Google-Smtp-Source: ABdhPJw2zEnrNxPAkqp2hmTAu3QUT3k0m5F3t+PhTTe7cTMO9dR8k5clUqev5qoERFBHefzLoXuI8l/wEOwvIYBp6zY= X-Received: by 2002:a4a:de56:: with SMTP id z22mr19793378oot.14.1617568034203; Sun, 04 Apr 2021 13:27:14 -0700 (PDT) MIME-Version: 1.0 References: <157240001496.28481.10507378472210680134.malonedeb@chaenomeles.canonical.com> <161756045467.30007.996672314397132559.malone@gac.canonical.com> In-Reply-To: <161756045467.30007.996672314397132559.malone@gac.canonical.com> From: Howard Spoelstra Date: Sun, 4 Apr 2021 22:27:02 +0200 Message-ID: Subject: Re: [Bug 1850570] Re: Cannot use usb-host on Mac OS To: Bug 1850570 <1850570@bugs.launchpad.net> Content-Type: text/plain; charset="UTF-8" Received-SPF: pass client-ip=2607:f8b0:4864:20::c2c; envelope-from=hsp.cat7@gmail.com; helo=mail-oo1-xc2c.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-devel qemu-devel Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" On Sun, Apr 4, 2021 at 8:30 PM John Arbuckle <1850570@bugs.launchpad.net> wrote: > > I am also having problems with using real USB devices. I tried a C-Media > USB sound card, a CISCO USB headset, and a PNY flash drive. All of them > seem to be detected by the Windows 7 guest, but can't be started for > some reason. I have tried running as root. I didn't see any libusb > errors. My Windows 2000 guest also has issues with starting the USB > sound card. > > My command-line: > sudo qemu-system-x86_64 -hda "Windows 7 HD.qcow2" -boot "c" -m 5000 -device ich9-usb-ehci1 -device usb-host,vendorid=0x0930,productid=0x6545 > > Even when I unmount the flash drive first Mac OS 11.1 will actually > mount the flash drive when I try using it in QEMU. > > -- > 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 > Hi John, I experience similar issues when passing through USB devices in qemu-system-ppc. macOS load a kext for the device and will not unload it when libusb tries to connect to the device. I wrote this on the emaculation site: For USB storage devices you might need to: Run a terminal and execute: sudo kextunload /System/Library/Extensions/IOUSBMassStorageDriver.kext Other devices might be using other kexts (drivers), so you would need to find out which kext is loaded for the device. Some devices might be using a kext that is also in use for other host devices. If you unload such a kext, the host will loose access to those devices. I have not yet found a way to reliably find which kexts are loaded and to unload them. Best, Howard From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 2A873C433B4 for ; Sun, 4 Apr 2021 20:36:22 +0000 (UTC) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 3E48E60231 for ; Sun, 4 Apr 2021 20:36:21 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 3E48E60231 Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=bugs.launchpad.net Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Received: from localhost ([::1]:55748 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lT9Tn-0005nQ-UR for qemu-devel@archiver.kernel.org; Sun, 04 Apr 2021 16:36:19 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:39536) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lT9TB-0005Ld-5d for qemu-devel@nongnu.org; Sun, 04 Apr 2021 16:35:41 -0400 Received: from indium.canonical.com ([91.189.90.7]:58248) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lT9T8-0004k8-FL for qemu-devel@nongnu.org; Sun, 04 Apr 2021 16:35:40 -0400 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.86_2 #2 (Debian)) id 1lT9T6-000092-0Z for ; Sun, 04 Apr 2021 20:35:36 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id F2DD32E8166 for ; Sun, 4 Apr 2021 20:35:35 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Sun, 04 Apr 2021 20:27:02 -0000 From: Howard Spoelstra <1850570@bugs.launchpad.net> To: qemu-devel@nongnu.org X-Launchpad-Notification-Type: bug X-Launchpad-Bug: product=qemu; status=New; importance=Undecided; assignee=None; X-Launchpad-Bug-Information-Type: Public X-Launchpad-Bug-Private: no X-Launchpad-Bug-Security-Vulnerability: no X-Launchpad-Bug-Commenters: cat-7 johncanada programmingkidx X-Launchpad-Bug-Reporter: John Canada (johncanada) X-Launchpad-Bug-Modifier: Howard Spoelstra (cat-7) References: <157240001496.28481.10507378472210680134.malonedeb@chaenomeles.canonical.com> <161756045467.30007.996672314397132559.malone@gac.canonical.com> Message-ID: Subject: Re: [Bug 1850570] Re: Cannot use usb-host on Mac OS X-Launchpad-Message-Rationale: Subscriber (QEMU) @qemu-devel-ml X-Launchpad-Message-For: qemu-devel-ml Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="57f1f603f707b9cfa764cae8dd0f3999026b4763"; Instance="production" X-Launchpad-Hash: ad6a1f6d40e9803f2ec62c1c6965ad3f2facc7cb Received-SPF: none client-ip=91.189.90.7; envelope-from=bounces@canonical.com; helo=indium.canonical.com X-Spam_score_int: -66 X-Spam_score: -6.7 X-Spam_bar: ------ X-Spam_report: (-6.7 / 5.0 requ) BAYES_00=-1.9, HEADER_FROM_DIFFERENT_DOMAINS=0.25, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: Bug 1850570 <1850570@bugs.launchpad.net> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: "Qemu-devel" Message-ID: <20210404202702.3ZnpxTxVnVR44akin3sQXV1N3P1W73wEy3-lIUI8O0o@z> On Sun, Apr 4, 2021 at 8:30 PM John Arbuckle <1850570@bugs.launchpad.net> w= rote: > > I am also having problems with using real USB devices. I tried a C-Media > USB sound card, a CISCO USB headset, and a PNY flash drive. All of them > seem to be detected by the Windows 7 guest, but can't be started for > some reason. I have tried running as root. I didn't see any libusb > errors. My Windows 2000 guest also has issues with starting the USB > sound card. > > My command-line: > sudo qemu-system-x86_64 -hda "Windows 7 HD.qcow2" -boot "c" -m 5000 -devi= ce ich9-usb-ehci1 -device usb-host,vendorid=3D0x0930,productid=3D0x6545 > > Even when I unmount the flash drive first Mac OS 11.1 will actually > mount the flash drive when I try using it in QEMU. > > -- > 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=3Di386-softmmu,x86_64-softmmu --enable-sdl > --disable-cocoa --enable-sdl-image. > > qemu-system-i386 image.qcow -usb -device usb-kbd -device usb-host,vend= orid=3D0x0781,productid=3D0x5571 > libusb: error [darwin_claim_interface] USBInterfaceOpen: another proces= s 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 proces= s 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 > Hi John, I experience similar issues when passing through USB devices in qemu-system-ppc. macOS load a kext for the device and will not unload it when libusb tries to connect to the device. I wrote this on the emaculation site: For USB storage devices you might need to: Run a terminal and execute: sudo kextunload /System/Library/Extensions/IOUSBMassStorageDriver.kext Other devices might be using other kexts (drivers), so you would need to find out which kext is loaded for the device. Some devices might be using a kext that is also in use for other host devices. If you unload such a kext, the host will loose access to those devices. I have not yet found a way to reliably find which kexts are loaded and to unload them. Best, Howard -- = 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=3Di386-softmmu,x86_64-softmmu --enable-sdl --disable-cocoa --enable-sdl-image. qemu-system-i386 image.qcow -usb -device usb-kbd -device usb-host,vendor= id=3D0x0781,productid=3D0x5571 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