Changing Guest OS Resolution in VirtualBox
Join the DZone community and get the full member experience.Join For Free
i just installed virtualbox on my laptop, so that i can run one or two vms on there, and the installation and setup are really quite straightforward. the “first steps” section in the documentation here is good enough to see you through the, er, first steps, but there are a couple of other things they really ought to put in this section, rather than later on in the documentation.
one of the first things i wanted to do was change my screen resolution, because it defaulted to 800×600 and didn’t give me any better options. so, it turns out (if you bother to read as far as chapter 4 of the online docs) that to do this you must install some “guest additions”… and this is how you do it:
open a terminal and cd to where your virtual cd drive appears, in my
case it was in /media/vboxadditions_4.0.2_69518/ (see image below –
click on image for larger pic)
next, run the correct installer. i was running a linux vm so i chose vboxlinuxadditions.run. run this file by typing “sudo sh ./vboxlinuxadditions.run”, as shown below:
so do as it says, shut down the vm, open virtualbox and start up your vm again. now we can go into system > monitor preferences, and you should see something like the screen below, with the new (better) screen resolution available to you:
Opinions expressed by DZone contributors are their own.