Coopydood / ultimate-macOS-KVM

Helping noobs and pros alike build the ultimate macOS virtual machine with easy automation, powered by KVM. Now with macOS Sequoia beta support!
https://coopydood.github.io/ultimate-macOS-KVM/
GNU General Public License v3.0
317 stars 18 forks source link

[macOS] USB Passthrough broken ??? #104

Open FlyingThaCat opened 1 month ago

FlyingThaCat commented 1 month ago

Describe the Issue

i tried to run it with ./main.py first but it kept getting error like usb_desc_get_descriptor: 3 unknown type 33 (len 10) and then i tried following this https://github.com/foxlet/macOS-Simple-KVM/issues/128 and adding this -usb -device usb-host,productid=0x0043,vendorid=0x2341 \ and it still broken

i tried to add it to virt-manager and try pass it from the gui it detected on mac os system information but after few second it just disconnected or sometime it just crashed like this qemu-system-x86_64: ../hw/usb/core.c:563: usb_packet_check_state: Assertion!"usb packet state check failed"' failed.`

Reproduce the Issue

create vm and enable the usb passthrough

Expectation

Usb Flashdrive showing and working on mac os

Screenshots

-

Operating System

Fedora Linux 40 (Workstation Edition)

Kernel

6.8.5-301.fc40.x86_64

Processor

Intel® Core™ i5-8350U

RAM (in GB)

16

GPU(s)

Intel® UHD Graphics 620

Version

v0.12.1

Branch

main

Generated Script File

No response

Generated XML File (if applicable)

No response

Generated Log File

No response

Additional Information

No response

FlyingThaCat commented 1 month ago

i tried to use this -device qemu-xhci,id=xhci -device usb-host,bus=xhci.0,hostdevice=/dev/bus/usb/BUS/DEVICE

and it works