I am running Ubuntu 10.10 amd64 in a Virtualbox on windows host. whenever i try to take a screenshot by pressing the print screen or by launching the gnome-screenshot option the screenshot appears completely black. any idea how to get a screenshot inside the Virtualbox?
Ok guys! I have found out the problem and the solution. :P
The problem is Compiz and the solution is to disable it using the command:
metacity --replace &
Now, I can take screenshot of any window inside the VirtualBox.
In Ubuntu guest go to System -> Preferences -> Keyboard Shortcuts. On the following window define a new shortcut to take a screenshot (e.g. in this example ShiftAltP):
Thenafter a screenshot will be taken whenever you press your keyboard shortcut. The default setting using Print is not available in the guest (host only).
Taking screenhots will not work with desktop effects activated, i.e. when Compiz is running (see here for reference).
A workaround would be to switch to windowed mode and take a screenshot of the VM window contents from the host OS.
VirtualBox provides a menu option to take screenshots of the guest, View --> Take Screenshot (Host+E). Alternatively, just Host + E (that's usually Right Ctrl + E).
I'm on windows 7 and you can use the snipping tool to take screenshots on ubuntu guest. I'm on a dual monitor setup though.
I'm on Windows 7 running Ubuntu 11.10 on VirtualBox. Taking screenshots doesn't work for me either, but here's a workaround:
Press [Host Key] + Alt + Print Screen.
You can now access the screenshot from the host's (Windows) clipboard. The Host Key is by default Right Ctrl.
In VirtualBox 4.2.6 with Windows7-host and Ubuntu12.10-guest, I took correct screen shots before installing Guest Addition tools. After this, I get only black screens and desktop background image.
After disabling VirtualBox 3D acceleration in VM configuration, the problem seems to be gone.
Now I can use PrintScreen to take the full screen and Alt + PrintScreen to take a window screen shot through the gnome default capture utility.