Apple - How to set up Touch Bar to show function keys in a specific VirtualBox virtual machine

http://www.mastropaolo.com/2016/12/16/how-to-have-function-keys-in-virtualbox-guess-with-macos-touchbar/

  1. Open a Finder window to the /Applications folder. Right click on VirtualBox.app and click “Show Package Contents”.
  2. Find the Resources folder, and drag it into Finder’s favorites sidebar.
  3. Using the Resources folder you put in favorites, add vmstarter.app and VirtualBoxVM.app to the list of exceptions.
  4. Now you can remove the Resources shortcut you added to favorites.

An approach that does not require the favorites sidebar is:

  1. Open Settings
  2. Pick Keyboard
  3. Pick Shortcuts
  4. Pick Function Keys
  5. Press "+"
  6. Type Command-Shift-G
  7. Paste the text /Applications/VirtualBox.app/Contents/Resources
  8. Select VirtualBoxVM.app

Similarly for vmstarter.app