foxlet / macOS-Simple-KVM

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

Iphone6 Hardware USB port #447

Open luan-nvg opened 3 years ago

luan-nvg commented 3 years ago

Hello, I am facing a problem to which I have an Iphone6 ​​that is recognized in Linux, but not in the virtualization of the Mac.

tentei seguir como o link menciona mas infelizmente não obtive sucesso: 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

for usb_ctrl in $(find /sys/bus/usb/devices/usb* -maxdepth 0 -type l) do pci_path="$(dirname "$(realpath "${usb_ctrl}")")" echo "Bus $(cat "${usb_ctrl}/busnum") --> $(basename $pci_path) (IOMMU group $(basename $(realpath $pci_path/iommu_group)))" lsusb -s "$(cat "${usb_ctrl}/busnum"):" echo done

`` Bus 1 --> 0000:00:14.0 (IOMMU group iommu_group) Bus 001 Device 005: ID 1bcf:0005 Sunplus Innovation Technology Inc. Optical Mouse Bus 001 Device 004: ID 2a7a:6a18 CASUE CASUE USB Keyboard Bus 001 Device 003: ID 0bda:c811 Realtek Semiconductor Corp. 802.11ac NIC Bus 001 Device 002: ID 05ac:12a8 Apple, Inc. iPhone5/5C/5S/6 Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 2 --> 0000:00:14.0 (IOMMU group iommu_group) Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub

Bus 3 --> 0000:01:00.2 (IOMMU group iommu_group) Bus 003 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub

Bus 4 --> 0000:01:00.2 (IOMMU group iommu_group) Bus 004 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub ``

my answer is different from the suggested link, what should I do? I'm using basic.sh

luan-nvg commented 3 years ago

I Tried: -usb -device usb-host,productid=0x12a8,vendorid=0x05ac \

qemu-system-x86_64: libusb_set_configuration: -6 [BUSY] libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [_get_usbfs_fd] libusb couldn't open USB device /dev/bus/usb/001/048: Dispositivo inexistente libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-6/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/050: Arquivo ou diretório inexistente libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [udev_hotplug_event] ignoring udev action bind libusb: error [_open_sysfs_attr] open /sys/bus/usb/devices/1-6/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/052: Arquivo ou diretório inexistente libusb: error [udev_hotplug_event] ignoring udev action bind

luan-nvg commented 3 years ago

was disconnecting, I put this command "guest-reset = false" and stopped, but the Iphone does not appear

follow the code so far: -usb -device usb-host,productid=0x12a8,vendorid=0x05ac,guest-reset=false \

luan-nvg commented 3 years ago

qemu-system-x86_64: libusb_set_configuration: -6 [BUSY]

luan-nvg commented 3 years ago

qemu works pendriver, but iphone does not?????

I'm desperate !!

rodrigo7331 commented 3 years ago

Conseguiu meu querido ?

luan-nvg commented 3 years ago

Conseguiu meu querido ?

Ainda não

Joseph-Hui commented 3 years ago

You need to passthrough a PCIe USB card for sole use by MacOS.

luan-nvg commented 3 years ago

You need to passthrough a PCIe USB card for sole use by MacOS.

if I buy a card like this, do I need to mess with some configuration of the gemu?