I'm not using an apple keyboard and don't have a Left ⌘. Can I change the "Host Key" to be the Right ⌘? How?


The GUI setting is under Preferences -> Input -> Virtual Machine:

enter image description here


This sets the host key to the right command key (VirtualBox 4.3.10):

VBoxManage setextradata global GUI/Input/HostKeyCombination 54

The command will accept any value, but VirtualBox will not start if you supply an invalid value. 55 is the standard left command key, 61 is the right alt key. I found the values via educated guesses (aka "playing around").

  • Your sir are awesome. Why is this not an option in the VirtualBox GUI Ill never understand. – Wesley Smith Jul 27 '14 at 10:13

There is a bug that appeared in VirtualBox 4.3.8 (maybe earlier?) that prevents the Virtualbox “Host Key” from being changed. It got fixed in VirtualBox 4.3.14. If you are using a VirtualBox version that is affected by the bug, here is a workaround:

After changing the host key, select some other configurable shortcut (no need to change it), and then click OK.


You could try adding this to private.xml in KeyRemap4MacBook:

<autogen>--KeyToKey-- KeyCode::COMMAND_R, KeyCode::COMMAND_L</autogen>

It might not work if you don't have a physical keyboard with a left command though.

  • thx. It's an idea;haven't tried yet as I'm holding out to see if anyone knows of a native way to do it. Turns out it's not too critical provided I ensure that the "mini toolbar" is enabled for full-screen mode as that allows me use the mouse to get out again... (provided the guest has a working mouse). – John2095 Feb 7 '13 at 1:05

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .