Skip to content

Instantly share code, notes, and snippets.

@hxtree
Created October 17, 2019 20:37
Show Gist options
  • Select an option

  • Save hxtree/8fd308a56976d74146cc440d2a8186ae to your computer and use it in GitHub Desktop.

Select an option

Save hxtree/8fd308a56976d74146cc440d2a8186ae to your computer and use it in GitHub Desktop.
VirtualBox Screenshot Inside Container
A conflict exist when you try to print screen inside a VirtualBox container, as the screenshot
will be captured by the VirtualBox host. Ideally, to avoid this you'll want to set the host's keyboard
shortcuts, the VirtualBox's host machine prefrences, and the VirtualBox keyboard shortcuts to a combination
that does not conflict and works for your workflow.
Personally, on the VirtualBox host, I am not interested in taking screenshots (as nearly exclusively inside
containers). Therefore, I will remove all screenshot shortcuts from the VirtualBox host. On CentOs 7 and
Ubuntu 18 this is under located Keyboard > Screenshot.
Next, under VirtualBox Preferences > Input > Virtual Machine I will set the Host Key Combination to a key
that I rarely use, such as [Right Alt].
Afterwards, I am able to use the default keyboard shortcuts for screenshots within the Virtualbox container.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment