I am running Ubuntu 15.10 in VirtualBox 4.2.34 on a Windows 7 host.

I can't get the desktop to fit the screen.

I installed Guest Additions and allocated enough of video memory, but no dice.

enter image description here

  • Have you tried changing the resolution through Ubuntu's settings? – You'reAGitForNotUsingGit Jun 28 '16 at 12:28
  • What is your settings in the View menu? – Melebius Jun 28 '16 at 12:32
  • 1
    Did you install them through the repositories or through the VirtualBox guest additions virtual CD? Did you reboot after that? – Andrea Lazzarotto Jun 28 '16 at 12:33
  • Android Dev: yes, I've tried changing the resolution through Ubuntu's settings. It is in best resolution. – Keyvan E Jun 28 '16 at 12:51
  • Melebius: I checked all of them! – Keyvan E Jun 28 '16 at 12:51

You need install the virtualbox guest additions:

  • In the VM's menu: click "Devices" -> "Insert Guest Additions CD Image" (The guest additions cd image will be mount in your guest's cdrom"
  • Run


  • Restart your VM

  • Now, with the correct driver installed and loaded: "You have to select "Auto-resize guest display" on "View" menu".

Hope this help!


You have to select "Auto-resize guest display" on "View" menu.

If this doesn't work, then you have done something wrong at Guest Additions installation.

  • 1
    there is an error when I try to install Guest Additions, one of the lines failed! The headers for the current running kernel were not found. If the following module compilation fails then this could be the reason. Building the OpenGL support module ...fail! (Look at /var/log/vboxadd-install.log to find out what went wrong) Warning: unknown version of the X Window System installed. Not installing X Window System drivers. ...done. Installing graphics libraries and desktop services components ...done. Press Return to close this window... – Keyvan E Jun 28 '16 at 12:55
  • you inserted the cd? and then? did you sudo sh autorun.sh at the /media/<yourcd> location? – NikosKeyz Jul 1 '16 at 23:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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