mirror of
https://github.com/sickcodes/Docker-OSX.git
synced 2026-01-14 07:33:30 +01:00
No keyboard? #270
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @corwin-of-amber on GitHub (Nov 5, 2021).
Full disclosure: I am accessing X11 over VNC because my system (an Intel Xeon server) does not have a physical keyboard/mouse/display.
When entering the bootloader, neither keyboard nor mouse have any effect. Once the wait timer expires and the base system boots, I have mouse but no keyboard. I can complete the system setup using the accessibility keyboard and it works fine. The installed system also has mouse but no keyboard.
Any magical QEMU args that can help in this case?
uname -a
; echo "${DISPLAY}"
; echo 1 | sudo tee /sys/module/kvm/parameters/ignore_msrs
; grep NAME /etc/os-release
; df -h .
; qemu-system-x86_64 --version
; libvirtd --version
; free -mh
; nproc
; egrep -c '(svm|vmx)' /proc/cpuinfo
; ls -lha /dev/kvm
; ls -lha /tmp/.X11-unix/
; ps aux | grep dockerd
; docker ps | grep osx
; grep "docker|kvm|virt" /etc/group
@corwin-of-amber commented on GitHub (Nov 5, 2021):
I also get these two warnings from QEMU:
@corwin-of-amber commented on GitHub (Nov 5, 2021):
I have noticed that some user with the same problem with VNC had more luck with rdp. Indeed, I can confirm that this works in an rdp session, at least I do have a keyboard now. So, probably more of a QEMU+VNC problem than a problem with Docker-OSX, but perhaps if you know how to work around that, it would be helpful to put that info in "Troubleshooting".
@sickcodes commented on GitHub (Nov 15, 2021):
At the boot loader only the arrow keys and enter key are relevant.
@sickcodes commented on GitHub (Nov 15, 2021):
But this is interesting. Does the mouse work?
@corwin-of-amber commented on GitHub (Nov 15, 2021):
The mouse does not work in the boot loader; but that also does not work in rdp. Once the installer starts, the mouse does work, in VNC as well, but not the keyboard. I can do everything with the virtual keyboard, as long as I turn it on in Accessibility (and before the first reboot, otherwise the lock screen is up with no way to enter the password, heh heh).
This seems to be related to the VNC protocol: it seems that, by default, the VNC client and server communicate by exchanging X events, and the clients scancodes are not present in the communication layer. An extension to the protocol exists that sends the scancodes as well, but I have not found how this can be configured in the client/server/both.
This is worth investigating, but it seems less and less related to Docker-OSX or OSX-KVM, and more of a general integration problem between QEMU and VNC. Perhaps you should just add it to the FAQ that VNC is not recommended because of this issue, but rdp works fine.
@sickcodes commented on GitHub (Nov 28, 2021):
X is very slow compared to VNC thru native QEMU
Mouse is known to never work during bootloader btw, however I have just learnt this will add the keyboard back in:
device_add usb-tablet@corwin-of-amber commented on GitHub (Nov 29, 2021):
Do you mean type it in the QEMU monitor prompt?
Because I see this in my startup script:
-device usb-tablet, perhaps it is not the same and perhaps I did not try VNC again since adding it because I thought it only has to do with the mouse.@corwin-of-amber commented on GitHub (Nov 29, 2021):
BTW your
-vga vmwaresaved my life on OSX-KVM, I was ripping my hair out trying to figure out why the resolution was so high with their default-device VGA,vgamem_mb=128even though it was usingOVMF_VARS-1024x768.fd.@RubensRainelli commented on GitHub (Aug 8, 2024):
I'm facing the same issue but IDK how to set
-device usb-tabletor at least where to do it...Still googling from one hour.