乱码键盘 - Linux 上的 VMware 从 MBP 上的 NX 客户端
问题:
我在 MacBook Pro 上的 NX 客户端中使用 Linux 上的 VMware Player 时键盘乱码。字母是数字,数字是字母,删除是逗号,e是删除;这纯粹是疯狂。我问了谷歌,但它似乎和我一样困惑。
注意:
我使用的是老式 Mac 键盘,数字键盘插入我的 MBP 和一个附加显示器。
我尝试过的事情:
- 改变我的 Linux 键盘设置(布局:USA、USA Macintosh。型号:Apple、MBP、Apple Aluminium)
- 改变我的 MBP 键盘设置(实际上没有看到任何会影响此的设置)
- 用数字键盘拔掉我的老式键盘并仅使用我的 MBP 键盘
The problem:
I have a scrambled keyboard while using VMware Player on Linux from NX Client on a MacBook Pro. Letters are numbers, numbers are letters, delete is comma, e is delete; it's pure madness. I asked Google but it seems just as confused as me.
Note:
I am using an old-school mac keyboard with number pad plugged into my MBP and an additional monitor.
Things I've tried:
- Altering my Linux keyboard settings (Layout: USA, USA Macintosh. Model: Apple, MBP, Apple Aluminum)
- Altering my MBP keyboard settings (actually didn't see any settings that would affect this)
- Unplugging my old-school keyboard with number pad and only using my MBP keyboard
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
有同样的问题,但是使用 virt-manager (NX 客户端在我的 Mac 10.6.8 上运行,连接到 Ubuntu 10.10 服务器,一切都很好,但是如果我运行 virt-manager 并打开虚拟机,击键将发送到VM 都搞砸了)。
我猜这与Linux服务器上的Mac NX客户端和VNC客户端(内置于virt-manager中)有关。我在 Windowx XP 虚拟机中测试了相同的设置,它运行完美。所以它一定是 Mac NX 客户端。
作为一种解决方法,我发现如果我创建一个带有端口转发的 SSH,从远程 linux 服务器(我曾经在其中运行 virt-manager 来访问在另一台服务器上运行的 VM)到具有 VM 的服务器,并且我将本地端口转发到虚拟机的 vnc 服务器,然后我可以启动 VNC 客户端(在我通过 NX 连接的 linux 服务器上)并通过 SSH 隧道连接到虚拟机,并且密钥工作得很好。因此,就我而言,问题出在 Mac NX 客户端 + virt-manager 的嵌入式 VNC 客户端上。
我只是在这里猜测,但 VMware Player 也可能使用嵌入式 VNC 服务器+客户端来向您显示虚拟机的屏幕。问题的原因和解决方法可能是相同的。 IE。尝试使用单独的 VNC 客户端连接到 VM。
更新:我已经解决了我的问题,这是一个 KVM 错误。 KVM 计算机启动 VM 的 VNC 服务器,而无需指定要使用的正确键映射。请参阅:http://blog.loftninjas。 org/2010/11/17/virt-manager-keymaps-on-os-x/
VMware Player 的解决方案可能同样简单。谷歌搜索显示 VMware 支持通过 VNC 连接到虚拟机。以下是为虚拟机的 VNC 服务器指定键盘布局的方法: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004815
可能您只需要:
当然如果您可以调整播放器的控制台以正确处理键码,那就更好了,但我没有找到解决方案。
Have the same issue, but with virt-manager (NX client runs on my Mac 10.6.8, connects to an Ubuntu 10.10 server and all is well, but if I run virt-manager and open a virtual machine, the keystrokes sent to the VM are all messed up).
I guess it has something to do with the Mac NX client and the VNC client (built into virt-manager) on the linux server. I tested the same setup in a Windowx XP virtual machine and it worked flawlessly. So it's got to be the Mac NX Client somehow.
As a workaround I've found that if I create an SSH with a port-forward from the remote linux-server (where I used to run virt-manager to access a VM running on another server) to the server with the VM and I forward a local port to the VM's vnc-server, then I can start up a VNC client (on the linux-server that I connect to via NX) and connect to the VM via the SSH tunnel and keys work just fine. So in my case the problem is somehow with the Mac NX Client + virt-manager's embedded VNC client.
I'm just guessing here, but VMware Player might use an embedded VNC server+client as well to show you the VM's screen. And both the reason for the problem and the workaround might be the same. Ie. try to use a separate VNC client to connect to the VM.
Update: I've got the solution to my problem, it's a KVM bug. The KVM machine starts the VNC server for the VM without specifying the correct keymap to use. See: http://blog.loftninjas.org/2010/11/17/virt-manager-keymaps-on-os-x/
The solution for VMware Player might be just as simple. A little googling revealed that VMware supports connections to a VM via VNC. Here's how to specify a keyboard layout for a VM's VNC server: http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=1004815
Probably you just have to:
Of course it'd be better if you could tweak the Player's console to handle keycodes properly, but I did not find a fix for that.