« Undo a HTML select box selectionUbuntu Intrepid Ibex upgrade from Hardy Heron WOES! »

Vmware Server 2.0 breaks keyboard mapping on Ubuntu 8.10

Linux/Unix, 364 words   English (AU) Bookmark and Share

I thought I’d give Vmware Server 2.0 a try today on Ubuntu 8.10 Intrepid Ibex, after all it was almost 5 times larger than Vmware Server 1.0.x. Version 2.0 has taken a web based approach for the interface and completely dumped the old 1.0 console interface which I kinda like. After all FF seems to be getting slower with each upgrade and taking control of a vm now uses a browser plugin! I hope they spend most of they money researching web and browser security rather than attempting to be the next App Store selling packaged VMs. :crazy:

Whats next Vmware? Portable VMs that you can carry around on a mobile phone (I hope I get royalties for this)?

Well, after uninstalling 1.0.x and installing 2.0, I fired up my XP vm and behold, arrow keys were not working on the hardware profile selection screen.

The following keys are screwed on mine in a sense that they are mapped to something else, not sure if its the same for all.

Finally found the fix after much trolling on VMware forums, Google wasnt much help so I though I’d blog about this.

Follow up:

  • PrtScn aka Print Screen
  • Scroll Lock
  • Pause
  • Insert
  • Home
  • Delete
  • End
  • PgUp aka Page Up
  • PgDn aka Page Down
  • Up
  • Left
  • Right

I have not tried this but ralph-d on vmware forums mentioned that the Print Screen key was mapped as Delete so he could execute Ctrl + Alt + Del by hitting Ctrl + Alt + PrtScn instead

Simply add

Code:

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

to /etc/vmware/config which solved all my key mapping issues.:yes:

Someone else also suggested instead of adding the above code just add to /etc/vmware/config

Code:

xkeymap.nokeycodeMap = true

Trackback address for this post

This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)

17 comments

  1. Permanent link for this comment dave Email said on
    Nice! Good hint. Thanks a lot for searching the vmware forums for this.
    xkeymap.nokeycodeMap = true
    works like a charm.
  2. Permanent link for this comment Disco Stu Email said on
    Nice. The keys had been fine earlier, but later in the day today the mapping became faulty. (Maybe there were ubuntu updates that broke things?) A web search that included 'vmware' brought me to your page. Adding "xkeymap.nokeycodeMap = true" worked.
  3. Permanent link for this comment Ben Email said on
    Adding xkeymap.nokeycodeMap = true to /etc/vmware/config worked like a charm for me on Ubuntu 8.10 64bit with VMWare Server 2!

    The only caveat is to NOT try to restart VMWare manually, as this can cause all kinds of problems. Just make the change and reboot your machine - otherwise you might run into all kinds of unfriendly issues...
  4. Permanent link for this comment Dan said on
    Awesome find! It was so irritating having to use other keys instead of the arrow keys in a XP virtual machine. This saves me lots of grief.

    Thanks again for posting!!
  5. Permanent link for this comment MPG Email said on
    YOU ARE GOD!!

    adding xkeymap.nokeycodeMap = true worked!!!!
  6. Permanent link for this comment Dan W Email said on
    You should see what happens if you use the simple way and you have the host and guest both set to dvorak. It converts us to dvorak twice. It's bizarre.
  7. Permanent link for this comment JMS Email said on
    It works. Thanks a lot!
  8. Permanent link for this comment John Email said on
    xkeymap.nokeycodeMap = true
    Worked for me too. Thanks, not having a down or up arrow button was kinda frustrating.

  9. Permanent link for this comment Pietro said on
    xkeymap.nokeycodeMap = true
    simply solved the entire problem!
    Thank you!
  10. Permanent link for this comment mpg Email said on
    now in 9.04 the vm steals my ctrl, alt, and super/winkey

    and shift, as you may notice i am not using capital letters...
    i have to copy and paste each letter for the captcha, this is so
    f-----ing annoying
  11. Permanent link for this comment TEHEK Email said on
    Hey!
    You saved my day! :)
    xkeymap.nokeycodeMap = true

    Interesting fact that the keyboard gone crazy after certain event... it was ok at the beginning

    Btw, now google ranked your page #9 for "vmware goes crazy with keyboard" :))))
  12. Permanent link for this comment warn ing said on
    do not use the single-line fix on Ubuntu9.0.4.

    use the multi-line fix (mentioned first).

    else there are still some keys missing in the guest and even worse, you'll screw up your host's keyboard.
  13. Permanent link for this comment Peter Email said on
    I have the vmware server installed elsewhere and only have the vmware-server-console installed on my gentoo laptop. I had to add "xkeymap.nokeycodeMap = true" to /etc/vmware-server-console/config tomake this work.
  14. Permanent link for this comment lpk Email said on
    good hints. Thanks for it. With my swiss-german version of ubuntu 9.04 and a swiss-german keyboard layout on my lenovo T400 and a swiss-german version of windows XP as guest I was successful when I used the keymapping with the following lines
    xkeymap.filename = chde104
    plus all the keymapping from above.
    So I forced the system to use the "correct" mapping and then changed the mappings for the ctl, alt and other special keys according to the hints described
  15. Permanent link for this comment marco tonoli Email said on
    Thanks!!!! italian keyboard, ubuntu 9.04 (english) multiline version works perfectly......

    WHY they do it ??????
  16. Permanent link for this comment macbook pro 5.5 ubuntu 9.10 vmware server 2.0 said on
    IT WORKS !!
    LINUX PEOPLE ROCK!!!
  17. Permanent link for this comment osh Email said on
    Wow! Nothing here, worked for me. I'm running ubuntu
    9.04 64-bit server and connecting from ubuntu and Windows
    boxes. VM clients are Windows and Linux. Changing the
    /etc/vmware/config file on the server didn't do anything!!!

    My fix (on my laptop):
    mkdir ~/.vmware
    pico config
    add 'xkeymap.nokeycodeMap = true' (without the ')
    save and exit the file

    It now works for me!

This post has 1 feedback awaiting moderation...

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)
This is a captcha-picture. It is used to prevent mass-access by robots.
Please enter the characters from the image above. (case insensitive)
July 2010
Mon Tue Wed Thu Fri Sat Sun
 << <   > >>
      1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31  
Brinley Ang

Brinley Ang is a sysadmin, web dev, coder, geek boy, jedi knight fragger, caffine addict, deaf meloncholic and rockstar wannabe. Listens to the sex pistols and a wide assortment of heavy metal.

Make payments with PayPal - it's fast, free and secure!
Search
home | portfolio | blog | links | contact
© 2010 - Brinley Ang
Valid xhtml