notAperson535 / OneClick-macOS-Simple-KVM

Tools to set up a easy, quick macOS VM in QEMU, accelerated by KVM. Works on Linux AND Windows.
https://notAperson535.github.io/OneClick-macOS-Simple-KVM
MIT License
606 stars 51 forks source link

macOS 13 doesn't pickup passedthrough mouse/keyboard input #87

Closed Merc2D closed 3 months ago

Merc2D commented 1 year ago

Which operating system are you trying to install? macOS ventura 13

Describe the bug Passedthrough Mouse/keyboard doesn't work in macOS 13

To Reproduce Simply Launch macOS 13. Opencore bootpicker will pickup the mouse and keyboard correctly

Expected behavior Pickup mouse and keyboard. I suspect it to be a opencore config issue

Desktop (please complete the following information):

Additional context This is run on single gpu passthrough via virt manager. Had no issues with other macOS versions (Catalina to Monterey)

notAperson535 commented 1 year ago

@Merc2D Are you saying that mouse movement does not work in the opencore picker or in the actual macOS environment?

Merc2D commented 1 year ago

macOS environment

notAperson535 commented 1 year ago

So the mouse input is not working at all, or is it just offset really weirdly?

Merc2D commented 1 year ago

It's not working at all

Merc2D commented 1 year ago

The same also goes with keyboard except it works on the opencore boot menu and after that nothing works

justinclift commented 1 year ago

As a thought, are you using the qemu command line directly or are you using the VM after importing it into Libvirt / Virt-Manager?

If you're using it with Virt-Manager, then one potential solution is to try changing the USB mouse/keyboard type. With the mouse at least, you can try adding a virtual "graphics tablet" instead which can sometimes fix the problem. Not sure on the keyboard front though.

Merc2D commented 1 year ago

Hello I have tried the fix that you have mentioned and sadly it doesn't work, although thanks for the help and also I'm extremely sorry about the late response as I was busy with other stuff.

justinclift commented 1 year ago

You're using the VM with Libvirt yeah? :smile:

Merc2D commented 1 year ago

Yes indeed mate

justinclift commented 1 year ago

k, I've just started a VM here that has working input. Looking at the configuration for it in virt-manager, it has these devices attached:

image

That's showing 4 input devices:

Looking at the details for them in the GUI, they show:

Mouse

image

Tablet

image

First keyboard

image

Second keyboard

image

Near the bottom on the device list there is also a Controller USB 0.

It's currently set to USB 2:

image

At the very bottom of the device list there are also 2 "USB Redirectors".

They're set to:

image

and

image

Maybe see if matching those settings works. If it doesn't, I can provide my Libvirt XML configuration file which you could cut-n-paste.

Merc2D commented 1 year ago

Yeah sadly that didn't work, although thanks for the help and the detailed instructions

Merc2D commented 1 year ago

Here is my xml if you want to take a look at it xml

justinclift commented 1 year ago

Meh, I'm too tired to take a look at it right now. This is mine if it helps. I've only changed the paths in it to have a PATH_TO token instead.

macos_libvirt_myworking.txt

As this is a "known good" xml, I'd recommend updating the paths in that file to point to your firmware file, settings file, and macOS files. With that it should in theory work. Hopefully. :smile:

justinclift commented 1 year ago

These are the OVMF firmware and settings I'm using too (compressed into a tarball), which might be useful to use with it as well. Just to maximise your chances of it going ok. :smile:

OVMF_firmware_and_settings.tar.gz

Merc2D commented 1 year ago

I have been to

Meh, I'm too tired to take a look at it right now. This is mine if it helps. I've only changed the paths in it to have a PATH_TO token instead.

macos_libvirt_myworking.txt

As this is a "known good" xml, I'd recommend updating the paths in that file to point to your firmware file, settings file, and macOS files. With that it should in theory work. Hopefully. 😄

I have been trying to get USB working on this xml for 4 days straight yet sadly nothing worked...😔, I've lost all hope at this point although still many thanks for your help mate

notAperson535 commented 1 year ago

@Merc2D turn off gpu pass through temporary. I've heard of it causing issues before

justinclift commented 1 year ago

Probably worth a shot, just to see if it works. :smile:

notAperson535 commented 9 months ago

@Merc2D were you ever able to resolve the issue?

jpfleischer commented 3 months ago

this https://github.com/notAperson535/OneClick-macOS-Simple-KVM/pull/105 probably solves it. should close

notAperson535 commented 3 months ago

That's a different issue, but since theres been no response for some time I am closing the issue.