foxlet / macOS-Simple-KVM

Tools to set up a quick macOS VM in QEMU, accelerated by KVM.
13.59k stars 1.14k forks source link

usb passthrough #378

Open pflueder opened 3 years ago

pflueder commented 3 years ago

Hello

I'm running macOS-Simple-KVM using Catalina.

Is it possible to use a device like an iPad or iPhone? I tried to pass through the usb port on which the device is plugged in like so:


<hostdev mode="subsystem" type="usb" managed="yes">
  <source>
    <vendor id="0x05ac"/>
    <product id="0x12ab"/>
  </source>
</hostdev>

But inside of MacOS nothing is happening when I plug in the iPad. Also I checked dmesg, and it doesn't seem to react at all.

Is that a bug? Or is it just not possible currently? I can provide further information if needed.

Thx <3

seanLiu716 commented 3 years ago

I have same issue. Please help.

Malikiah commented 3 years ago

Add the VM to Virt Manager, If you don't have Virt Manager look up how to install that for your disto. then you can easily add a pass through device after you add the virtual machine to Virt Manager with. sudo ./make.sh --add once you open virt manager go to the hardware details and add a usb host device. Once you do that it should automatically add that device to the virtual machine.

jeffersonveloso commented 3 years ago

Adicione o VM ao Virt Manager, se você não tiver o Virt Manager, procure como instalá-lo para seu disto. então você pode adicionar facilmente um dispositivo de passagem após adicionar a máquina virtual ao Virt Manager com. sudo ./make.sh --add depois de abrir o virt manager, vá para os detalhes do hardware e adicione um dispositivo host usb. Depois de fazer isso, ele deve adicionar automaticamente esse dispositivo à máquina virtual.

Hi bro, this method not working for me in mint 20.1 with Virt Manager, i did add my device with host usb and not working. Any ideas ?

seanLiu716 commented 3 years ago

I could not make it work either.

On Wed, Mar 24, 2021 at 8:50 AM jeffersonveloso @.***> wrote:

Adicione o VM ao Virt Manager, se você não tiver o Virt Manager, procure como instalá-lo para seu disto. então você pode adicionar facilmente um dispositivo de passagem após adicionar a máquina virtual ao Virt Manager com. sudo ./make.sh --add depois de abrir o virt manager, vá para os detalhes do hardware e adicione um dispositivo host usb. Depois de fazer isso, ele deve adicionar automaticamente esse dispositivo à máquina virtual.

Hi bro, this method not working for me in mint 20.1 with Virt Manager, i did add my device with host usb and not working. Any ideas ?

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/foxlet/macOS-Simple-KVM/issues/378#issuecomment-805793752, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7PAXEJGQG66AQNYAOVZ5LTFHN25ANCNFSM4UTOOWFA .

jeffersonveloso commented 3 years ago

Eu também não consegui fazer funcionar. On Wed, Mar 24, 2021 at 8:50 AM jeffersonveloso @.***> wrote: Adicione o VM ao Virt Manager, se você não tiver o Virt Manager, procure como instalá-lo para seu disto. então você pode adicionar facilmente um dispositivo de passagem após adicionar a máquina virtual ao Virt Manager com. sudo ./make.sh --add depois de abrir o virt manager, vá para os detalhes do hardware e adicione um dispositivo host usb. Depois de fazer isso, ele deve adicionar automaticamente esse dispositivo à máquina virtual. Hi bro, this method not working for me in mint 20.1 with Virt Manager, i did add my device with host usb and not working. Any ideas ? — You are receiving this because you commented. Reply to this email directly, view it on GitHub <#378 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7PAXEJGQG66AQNYAOVZ5LTFHN25ANCNFSM4UTOOWFA .

Hi, Did what you do for fix it ?

matejkramny commented 3 years ago

This worked for me: https://www.reddit.com/r/hackintosh/comments/f31wx0/macos_on_kvm_and_xcode_and_iphone_usb_passthrough/fm7k960?utm_source=share&utm_medium=web2x&context=3

seanLiu716 commented 3 years ago

Lucky you. I have only one USB IMMO group on my laptop. No go for me.

On Tue, Apr 6, 2021 at 9:31 AM Matej Kramny @.***> wrote:

This worked for me: https://www.reddit.com/r/hackintosh/comments/f31wx0/macos_on_kvm_and_xcode_and_iphone_usb_passthrough/fm7k960?utm_source=share&utm_medium=web2x&context=3

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/foxlet/macOS-Simple-KVM/issues/378#issuecomment-814121606, or unsubscribe https://github.com/notifications/unsubscribe-auth/AO7PAXFCFC4II5ZKP4M2WALTHMEJ3ANCNFSM4UTOOWFA .