Linux

幾個鍵盤鍵在 VMWare 中不起作用(Host=Linux,Guest=Windows)

  • April 14, 2020

我在 Ubuntu 8.* 和 9.* 上安裝了 VMWare Server 2.0,並使用 Windows XP 作為來賓系統,但有幾個鍵不起作用。

他們要麼什麼都不做,要麼呼叫錯誤的按鍵。

它們的鍵是所有Arrow 鍵 ,Windows 鍵, Print Screen, Scroll Lock,PauseBreak, Insert (Ins), Home, Page Up ( PgUp) , Page Down ( PgDn), Delete ( Del) 和End

我該如何解決?

如果您有英文鍵盤,只需將此行添加到 VMware 配置文件中:

# In the file: /etc/vmware/config
xkeymap.nokeycodeMap = true

如果您有英語鍵盤以外的其他東西,顯然上述解決方案將不起作用。所以添加這些行:

# In the file: /etc/vmware/config    
xkeymap.keycode.108 = 0x138 # Alt_R
xkeymap.keycode.106 = 0x135 # KP_Divide
xkeymap.keycode.104 = 0x11c # KP_Enter
xkeymap.keycode.111 = 0x148 # Up
xkeymap.keycode.116 = 0x150 # Down
xkeymap.keycode.113 = 0x14b # Left
xkeymap.keycode.114 = 0x14d # Right
xkeymap.keycode.105 = 0x11d # Control_R
xkeymap.keycode.118 = 0x152 # Insert
xkeymap.keycode.119 = 0x153 # Delete
xkeymap.keycode.110 = 0x147 # Home
xkeymap.keycode.115 = 0x14f # End
xkeymap.keycode.112 = 0x149 # Prior
xkeymap.keycode.117 = 0x151 # Next
xkeymap.keycode.78  = 0x46  # Scroll_Lock
xkeymap.keycode.127 = 0x100 # Pause
xkeymap.keycode.133 = 0x15b # Meta_L
xkeymap.keycode.134 = 0x15c # Meta_R
xkeymap.keycode.135 = 0x15d # Menu

我在這裡找到了答案:http: //communities.vmware.com/thread/177321

引用自:https://serverfault.com/questions/18067