Home   |    About   |    Contact               Facebook   |    Flickr    MCMSfaq.com: Content Management Server Resources
 
 

Apple Keyboard Layout for Virtual Machines

One of the freakiest things about running on an excellent MacBook Pro is the keyboard layout. Keys in the wrong place and a few missing ones like #, PrtScr and AltGr. Once you get used to it it's all good however. There's combinations and so forth to get at things you need. The trouble is just as you've gotten used to it, you fire up those development virtual machines and they don't know squat about the Apple keyboard. This is because the custom Input mapping installed as part of the Boot Camp package isn't installed on the VM. Arse!

Many people think that installing the Apple Keyboard Driver might fix this issue, it doesn't - that driver is for a USB or Bluetooth external Apple Keyboard, which a VM won't know about (even in VMWare). The bits needed are actually in the Boot Camp MSI, and it's reasonably straightforward to figure out how to extract just the bits needed and hack up an installer, but that's way more work than needed. Plus, you don't want to install that crap on your VM, all you need is an alternate keyboard layout.

There's a much easier way, using the Microsoft Keyboard Layout Creator.

In a nutshell, you install the MSKLC on your host and then open up the Apple Keyboard which is already on your host. Then you can create an installer for it from MSKLC. Copy that guy to your VM and run it. You then have a Apple layout available:

image

Now your keys are in the same place regardless of whether you are working in a VM or on your Host. Kickin'.

I've created an installer for my VMs, which you can download here. Of course, mine is a UK layout. To create your own layout for your preferred language simply follow the instructions above.

Print | posted on Monday, June 30, 2008 10:14 AM

Feedback

Gravatar

# re: Apple Keyboard Layout for Virtual Machines

Are your VMs running under your dual/triple booted Boot Camp Windows or under Mac OSx?

I'm interested in a solution for my VMs but they are all running under the Mac Osx and I have the feeling from your text that yours are under Boot Camp Windows.

Mike

6/30/2008 2:45 PM | Mike Walsh
Gravatar

# re: Apple Keyboard Layout for Virtual Machines

Mike,

It doesn't matter what is running the host. The fix above works on VMs under fusion on MacOS as well.

Of course you need to create the installer with MSKLC using a Windows parition running the boot camp keyboard driver in the first place.

6/30/2008 3:45 PM | Spence
Gravatar

# re: Apple Keyboard Layout for Virtual Machines

Hi!
Great stuff, didn't know about the MS keyboard layout creator!

My problem is somewhat reversed: I'm forced to use a Mac for an authoring tool (Unity, supreme game engine, albeit OSX-only so far), but I do the coding in Visual Studio on a VM.

Mac keyboards notoriously suck for coding (what for those missing keys and crazy 4-keys combos), and anyway I'm a PC guy... so I hooked up a PC keyboard to my Mac.
I turned off key-translation on my VM (I'm using Fusion, great stuff!), so that all is sweet VM-side... but of course the PC keyboard sucks OSX-side, I keep typing 8 for ! and such.
I'm using DoubleCommand to switch the modifier keys (so I can ctrl+C instead of apple+C), but what I'd love to do is remap the entire keyboard layout... any idea how to achieve that?

8/29/2008 2:14 PM | Ben

Post Comment

Title  
Name  
Email
Url
Comment   
Please add 2 and 2 and type the answer here: