OneClick-macOS-Simple-KVM icon indicating copy to clipboard operation
OneClick-macOS-Simple-KVM copied to clipboard

macOS 13 doesn't pickup passedthrough mouse/keyboard input

Open Merc2D opened this issue 1 year ago • 18 comments

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):

  • OS: fedora
  • Version 38

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

Merc2D avatar Jun 13 '23 23:06 Merc2D

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

notAperson535 avatar Jun 13 '23 23:06 notAperson535

macOS environment

Merc2D avatar Jun 14 '23 00:06 Merc2D

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

notAperson535 avatar Jun 14 '23 00:06 notAperson535

It's not working at all

Merc2D avatar Jun 14 '23 00:06 Merc2D

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

Merc2D avatar Jun 14 '23 00:06 Merc2D

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.

justinclift avatar Jun 14 '23 02:06 justinclift

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.

Merc2D avatar Jun 17 '23 03:06 Merc2D

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

justinclift avatar Jun 17 '23 04:06 justinclift

Yes indeed mate

Merc2D avatar Jun 18 '23 10:06 Merc2D

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:

  • 1 Mouse
  • 1 Tablet
  • 2 Keyboards

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.

justinclift avatar Jun 18 '23 11:06 justinclift

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

Merc2D avatar Jun 18 '23 19:06 Merc2D

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

Merc2D avatar Jun 18 '23 19:06 Merc2D

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 avatar Jun 18 '23 23:06 justinclift

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

justinclift avatar Jun 18 '23 23:06 justinclift

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

Merc2D avatar Jun 23 '23 00:06 Merc2D

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

notAperson535 avatar Jun 23 '23 00:06 notAperson535

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

justinclift avatar Jun 23 '23 01:06 justinclift

@Merc2D were you ever able to resolve the issue?

notAperson535 avatar Nov 21 '23 13:11 notAperson535