0

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

4 Answers4

1

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

    .{path_to_your_CDROM_mount_in_the_GUEST}/VboxLinuxAddition.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!

  • This partially worked for me, but I needed additional steps. I was doing it on RHEL, so I'm writing it as comment not answer, but on Ubuntu it may be similar. Firstly add additional packages. dnf install tar bzip2 kernel-devel-$(uname -r) kernel-headers perl gcc make elfutils-libelf-devel (source). Then there was a problem with mount.vboxsf already defined and here is what helped me: link – Piotrek Jul 08 '21 at 10:00
0

Before installing the guest addons as described in this answer, I noticed that on a fresh Xubuntu the kernel modules could not been buld because of missing dependencies. So I installed them first using

apt-get install -y gcc make perl

Now I could run VboxLinuxAddition.run from the mounted ISO file. After a reboot, the guest addons were installed. Auto-resize guest display worked, after disabling and re-enabling it in the View menu of the host.

Lion
  • 151
-1

Installing gcc make and perl solved my issue.

sudo apt install gcc make perl

Hope this helps someone.

Rahul
  • 405
-1

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.

katsos
  • 1
  • 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/ location? – katsos Jul 01 '16 at 23:58