Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
up vote 6 down vote accepted

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.

share|improve this answer
+1 for finding an posting your solution – Takkat Feb 16 '11 at 19:32
Well... this kills all my icons and everything... so partial credit... – Philip Adler Dec 17 '15 at 15:47

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):

enter image description here

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).

share|improve this answer
Hi, Thanks for the idea, but even after this , i am unable to take a screenshot with any image. everything is dark in the screenshot. please see the attached screenshot image. – Ubuntuser Feb 16 '11 at 18:38
o.k. my fault: I should have read your question better. Your shot is convincing ;). See Edit. – Takkat Feb 16 '11 at 19:28

A workaround would be to switch to windowed mode and take a screenshot of the VM window contents from the host OS.

share|improve this answer
thanks. yes thats a good idea. i discovered it 2 days back. +1 to u :) – Ubuntuser Apr 22 '11 at 20:59

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.

share|improve this answer

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.

share|improve this answer

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.

share|improve this answer
Please detail precisely what you did and how you did it to solve the problem. – user98085 Feb 4 '13 at 22:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.