Screenshot in Unity/Ubuntu within VirtualBox

screenshotunityvirtualbox

I'm trying to take a screenshot of Firefox running on Unity/Ubuntu 16.04 inside VirtualBox 5.1.2. Pressing Prt Scrn pops open a little app called Screenshot but the screenshot shown is only ever the desktop, with no application windows visible.

My host operating system is Windows 10 Pro.

Does anyone know how to resolve this and get screenshot functionality working inside VirtualBox?

Best Answer

You may take a screenshot with VirtualBox's built-in screenshot capability, either through pressing RightCtrl+E (or LeftCmd+E on Mac), which will open up a save file window on the host), or with

$ VBoxManage controlvm vmname screenshotpng screenshot.png

from the command line of the host, where vmname is the name of the virtual machine and screenshot.png is the name of the PNG image you'd like to create.

Related Question