thenickdude / KVM-Opencore

OpenCore disk image for running macOS VMs on Proxmox/QEMU
https://www.nicksherlock.com/2021/10/installing-macos-12-monterey-on-proxmox-7/
GNU General Public License v3.0
1.3k stars 117 forks source link

USB passthrough not working in osx #71

Closed demonlj closed 7 months ago

demonlj commented 7 months ago

os: debian. 12 + proxmox + osx 13.6.4 EFI: kvm-opencore-v21

jason@Jun-X99 ~> sudo lsusb  | grep HP
Bus 003 Device 004: ID 03f0:034a HP, Inc Elite Keyboard
Bus 003 Device 062: ID 03f0:1f4a HP, Inc HP USB Optical Mouse
jason@Jun-X99 ~> sudo cat /etc/pve/qemu-server/106.conf
agent: 1
args: -device isa-applesmc,osk="ourhardworkbythesewordsguardedpleasedontsteal(c)AppleComputerInc" -smbios type=2 -device usb-kbd,bus=ehci.0,port=2 -global nec-usb-xhci.msi=off -global ICH9-LPC.acpi-pci-hotplug-with-bridge-support=off -cpu host,kvm=on,vendor=GenuineIntel,+kvm_pv_unhalt,+kvm_pv_eoi,+hypervisor,+invtsc
bios: ovmf
boot: order=virtio1
cores: 16
cpu: Penryn
machine: q35
memory: 65536
meta: creation-qemu=8.1.5,ctime=1712483230
name: macos
net0: vmxnet3=BC:24:11:3F:CF:91,bridge=vmbr1,firewall=1
numa: 1
ostype: other
scsihw: virtio-scsi-single
smbios1: uuid=6d6ec468-9df4-4435-b8d5-3df1481c9980
sockets: 1
usb0: host=3-5
usb1: host=03f0:034a
vga: vmware
virtio0: local:106/vm-106-disk-0.qcow2,cache=unsafe,iothread=1,size=99G
virtio1: /dev/disk/by-id/wwn-0x50025388a02dd15e,size=117220824K
vmgenid: 9785b69b-0adc-4b0a-87e1-fa1ea46ebba7
jason@Jun-X99 ~> sudo qm monitor 106
Entering QEMU Monitor for VM 106 - type 'help' for help
qm> info usb
  Device 0.2, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet, ID: tablet
  Device 0.1, Port 2, Speed 480 Mb/s, Product QEMU USB Keyboard
  Device 1.0, Port 1, Speed 1.5 Mb/s, Product HP USB Optical Mouse, ID: usb0
  Device 1.0, Port 2, Speed 1.5 Mb/s, Product HP Elite USB Keyboard, ID: usb1
image image

also modified opencore to add Voodoo... kext, and confirm USBPorts enabled

image
demonlj commented 7 months ago

passing usb disk works fine. But, keyboard and mouse still not working

jason@Jun-X99 ~> sudo qm monitor 106
iEntering QEMU Monitor for VM 106 - type 'help' for help
qm> info usb
  Device 0.1, Port 1, Speed 480 Mb/s, Product QEMU USB Tablet, ID: tablet
  Device 1.0, Port 1, Speed 1.5 Mb/s, Product HP Elite USB Keyboard, ID: usb0
  Device 1.0, Port 2, Speed 1.5 Mb/s, Product HP USB Optical Mouse, ID: usb1
  Device 1.1, Port 3, Speed 480 Mb/s, Product DataTraveler 2.0, ID: usb2
qm>
image
demonlj commented 7 months ago

image check usb3 option, make it work