Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Linux guest keyboard and mouse not working on Apple Virtualization (Intel) #4409

Closed
fernandomacho opened this issue Sep 13, 2022 · 9 comments
Milestone

Comments

@fernandomacho
Copy link

I try to install linux image over Apple virtualization, the installer bring up, but not work capture keyboard and mouse and unable continue with installation

Configuration

  • UTM Version: 4.0.3
  • macOS Version: 16.0
  • Mac Chip (Intel, M1, ...): Intel
    utm_log.txt
@conath
Copy link
Contributor

conath commented Sep 25, 2022

Please double-check if this still occurs in UTM 4.0.6 RC: https://github.com/utmapp/UTM/releases/tag/v4.0.6

@fernandomacho
Copy link
Author

Hi, I install version Version 4.0.6 (65) and I get same result, and keyboard not work

Thanks in advance

@ManuW
Copy link

ManuW commented Oct 9, 2022

I can confirm this. My keyboard is not working too if I try to install an image over Apple virtualization.

It make no difference if I use the integrated keyboard from my MacBook or use the Magic Keyboard via Bluetooth or USB.

I have no issues if I try the Apple example Running GUI Linux in a virtual machine on a Mac.

@ManuW
Copy link

ManuW commented Oct 9, 2022

Okay, I found the bug. keyboards and pointingDevices are only available for arch arch64 if I understand it correct. See UTMAppleConfigurationVirtualization.swift

I checked the main branch and installed all dependencies. I run the project, bug can be reproduces on my machine.
Then, I simply searched for keyboards =. Moved booth lines, keyboards and pointingDevices and run the project again. Now I can use keyboard and my mouse as well.

I think the first #if arch at line 125 is wrong.

@osy
Copy link
Contributor

osy commented Oct 9, 2022

Okay that’s true but I didn’t know that GUI (EFI boot) works on Intel. I’ll add it if it’s supported.

@osy osy added this to the v4.0 milestone Oct 9, 2022
@ManuW
Copy link

ManuW commented Oct 10, 2022

From the GUI Linux example:

...
Important
The Virtualization framework can run Linux VMs on a Mac with Apple silicon, and on an Intel-based Mac. The Linux ISO image you download must support the CPU architecture of your Mac.
...

Yes, booth CPU architectures are supported.

@osy osy changed the title Capture keyboard and mouse on Apple Virtualization Linux guest keyboard and mouse not working on Apple Virtualization Oct 10, 2022
@osy osy changed the title Linux guest keyboard and mouse not working on Apple Virtualization Linux guest keyboard and mouse not working on Apple Virtualization (Intel) Oct 10, 2022
@osy osy closed this as completed in 0e36a65 Oct 10, 2022
@ManuW
Copy link

ManuW commented Oct 10, 2022

Thanks @osy - I test this tomorrow.

I have an audio issue too and I will write an issue report. Audio in-/output works when I create two sound devices. One for input and one for output. Like in the examples I have seen. But I found no information in the documentation, that the current code is not correct. Maybe an issue only on Intel, who knows? There is not much documentation to find...

My current patch main...ManuW:UTM:test-apple-virtualization

@osy
Copy link
Contributor

osy commented Oct 10, 2022

I see, I will do that as well just to be safe.

osy added a commit that referenced this issue Oct 10, 2022
Comment from #4409 says one device does not work on Intel.
@ManuW
Copy link

ManuW commented Oct 11, 2022

@osy Thanks! I tested it today and keyboard, mouse is working and sound in general too. If I record something, then I have glitches, but that issue is somewhere else...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants