Environment: Lenovo T530 running Windows 7. Have installed Ubuntu 14.04 on a virtual machine using VM Virtual Box. Have installed all the updates from both Virtual Box and Ubuntu.
Problem: While in Ubuntu's desktop and other Ubuntu initiated programs, the window is reduced to about 3x4 inches showing in the middle of the rest of my regular Virtual Box window. I am seeing only the upper right hand of the screen output of what I would normally see.
I've seen How do I install Guest Additions in a VirtualBox VM?
But, none of these answers works in 14.04.
You basically need the Guest additions, log into the Virtual Machine to install the following packages:
Finally restart the VM to complete the installation.
On virtualbox you have to install "Guest Additions". There is no need to set a resolution via Ubuntu settings. With your guest window in the foreground select from the top menu:
In Ubuntu open a terminal, navigate to cd folder (usually /media/VBOXADDITIONS*) and run
Note that you should have a working compiler gcc/g++
I had the same problem as you. I did these steps, maybe helps you too:
My VirtualBox is working perfectly.
After having first tried installing the Guest additions, which didn't work, I found another solution elsewhere: linuxbsdos.com.
Use Xdiagnose from the Dashboard. Search for and launch Xdiagnose, then enable all the options under the Debug section. Click the Apply button, then close the window and restart the system.
That's what finally did the trick! Now I get 1024 x 768 resolution instead of 640 x 480.
I never uninstalled the Guest additions, so it might be I needed to take both these measures.
---------- EDIT ---------
I have come to realize that the solution described above is just a fallback, in case installing the Guest Additions failed for some reason. I have finally managed to successfully install them, and can now choose from a bigger range of resolutions in the display settings. Here is how I did it, after having tried all of the above.
One thing I had already tried earlier was
This is not enough in itself, but might be a necessary prerequisite for the following steps (of which some might not be necessary...).If you have no top menu in the Guest system, it's because you're in scale mode which causes it to be hidden. In that case, press Host + C to toggle scale mode (where Host is Right Control by default)
Just be sure to replace <username> by the logged in user's username.
And then a restart, as JTIM pointed out...
Developing from this answer, and in fact pretty well explained also in this other post. (I really tried everything else posted here but it does not seem to work on my Windows 7 system)
Preliminary steps:
Make sure you have installed the latest version of Virtual Box(*). Be careful that if you ask Virtual Box to update to the latest version it might very likely declare being updated even if a newer version exists!
It might be a good idea to start from a clean distribution, creating a new virtual machine, install there Ubuntu (I allowed downloading updated packages from the network during installation), and cloning it before proceeding, so that if you have troubles you can avoid restarting from the very beginning.
Install
build-essential
andlinux-headers-generic
packages. Apparently, it's also reccomended to installdkms
, as "Running DKMS in the guest OS will keep Guest Additions installed after a guest kernel update".How to:
Start your virtual machine
On Virtualbox menu -> Devices -> Insert Guest Additions CD image...
From Ubuntu you should see a popup, allow the CD autorun to install the program. For me, like many times before, it said he could not find Linux headers but, this time, in the end everything went fine.
If the autorun does not work, open a terminal (Ctrl+Alt+T), navigate to folder (usually
/media/VBOXADDITIONS*
) and runsh ./VBoxLinuxAdditions.run
Shut down and then start again your virtual machine
(*) If, like me, with the new version of the Virtual Box you have trouble with network, take a look at this video (In short: use Bridged network, and select "allow VMs")
I had the same problem. I fixed it by installing the guest additions as explained in the other answers and jacking the amount of video RAM in the settings as shown.
Sometimes, simple solution could be:
I remained stuck for several days in low screen resolution in a Ubuntu 14.04 guest running on VirtualBox 4.1 on Debian Wheezy. None of the most commonly suggested solutions (e.g. installing
virtualbox-guest-dkms
, installing guest additions) helped. Installing VirtualBox from the official downloads page worked!To expand on what Sylvain Pineau said, typing the following command is much easier (wildcards are accepted with
apt-get
):