Change Resolution on VMWare VirtualBox

Filed in Laptop & Notebook , Linux Tips , Online , Software , Technology 21 comments

Today, I have tried to used VirtualBox to use Linux Red Hat (RHEL5) as guest on my Windows XP as host. I have created fixed 30GB (quite small) space for the Linux RHEL5 installation. I don’t want to write about the installation process of RHEL5 into my VirtualBox but, I just want to share about the small resolution on my guest OS (RHEL5) in my VirtualBox.

Surprisingly, once completed RHEL5 installation on VirtualBox, found that the resolution is too small. There is only one resolution that I can use. That is 800 x 600. Even I click on the drop down menu, it only show 800×600 resolution. Its pain for me, it is too small on my WVGA screen.

As usual, Google is the first place I go to find the solution how to drag my VirtualBox screen resolution to 1280 x 800 or at least 1024 x 768. Again, there are crappy suggestion on this matter. They said to do this, and this, then this. But ended with nothing. My VirtualBox resolution still at 800 x 600.

The actual solution is very easy. Just install the “Install Guest Additions”. The way how to do it is, press Right Ctrl+F (if you are already in Full screen mode on your VirtualBox). There three menus on top of your VirtualBox menu i.e: Machine, Devices and Help. Click on Devices > Install Guest Additions as shown in picture below:

Then, the Install Guest Additions will automatically mounted into your VIrtualBox (RHEL5 guest) environment. Click OK as shown in picture below:

After that, open your terminal. Change directory to your mounted CD-ROM. Mine is:

#cd /media/VBOXADDITIONS_2.0.6_39755

Then execute as root the following:

sh ./VBoxLinuxAdditions-x86.run (FOR 32-bit)

sh ./VBoxLinuxAdditions-amd64.run (FOR 64-bit)

After that, recompile the guest kernel modules by using the following command:

/etc/init.d/vboxadd setup

and reboot.

Now, you can choose 1024 x 768 as your resolution by using KDesktop – right click on your Desktop and choose Configure Desktop..

In case you are not satisfied with 1024 x 768 resolution and want to use even more larger screen resolution, type the following command:

vi /etc/X11/xorg.conf (or you can use your own favourite editor such as nano, but I prefer vi)

Scroll down until you see phrase something like this:

Section "Screen"
Identifier
"Screen0"
Device "Virdeocard0"
Monitor "Generic Monitor"
DefaultDepth              24
SubSection "Display"
View port       0  0
Depth 24
Modes "1280x800" "1024x768" "800x600" "640x480"
EndSubSection
EndSection

Notice that I have added the code as below, just after Depth 24 i.e

Modes "1280x800" "1024x768" "800x600" "640x480"

That means, when I open my KDesktop, I can see four type resolution:

1280×800, 1024×768, 800×600, and 640×480 as shown in the picture below:

You can also list all the resolution you needs if you want, something like this:

Modes "2048x800" "1280x800" "1024x768" "800x600" "640x480"

Hope this solve the problem, enjoy with big screen resolution

Posted by Far East   @   12 January 2009 21 comments
Tags : , , , , , ,
Try us on Wibiya!

Share This Post

RSS Digg Twitter StumbleUpon Delicious Technorati

21 Comments

Comments
Jan 14, 2009
11:59 am
#1 Fat Bloke :

VirtualBox is owned by Sun, not VMware ;-)

-FB

Jan 17, 2009
3:10 am
#2 chuckiesd :

Wow nice info. I got new knowledge on Linux Here. Thanks buddy.

Author Jan 20, 2009
5:17 pm
#3 Far East :

@Fat Bloke: Thanks for correcting me. My colleagues always refer virtualbox as Virtual Machine and called it as “VM”, then I thought it is the same thing between Virtualbox and VMware but it is not the same thing. thanks again. :)

OK from now, Virtualbox is not VMWare..hihi..(ashamed) :D

@chuckiesd: Let we share our knowledge..

Feb 13, 2009
2:04 am
#4 co :

Thanks for the post. I’ve looked around quite a lot in the last couple of weeks as to the answer to this question, and this is the first relatively comprehensive answer I’ve found.

Cheers!

Feb 14, 2009
9:28 am
#5 Daniel :

This guide is a god-send. I’ve been looking for this solution on the web for a very long time.
Thank you!

Author Feb 15, 2009
9:13 am
#6 Far East :

co, I am happy to hear that..thanks..

Author Feb 15, 2009
9:16 am
#7 Far East :

Yeah, I also like u before..looking for crappy suggestion over the net. Now we have the solution huh… :D

Aug 1, 2009
2:30 pm
#8 ms :

Thank you for your posting. Was also very helpful for me.

Aug 18, 2009
7:15 pm
#9 Benz :

Thanks a lot for the post.It helped me to solve my resolution issues with Linux on Virtual Box.

Author Aug 20, 2009
7:15 am
#10 Far East :

Welcome Benz..happy virtualling.. :D

Mar 10, 2010
3:03 pm
#11 Fernando D. :

Useful information, many gives thanks to the author. This is incomprehensive to me now, but in general, the usefulness and significance is overwhelming. Thanks again and good luck!

Aug 31, 2010
5:05 am
#12 Tim :

Thanks for info,was getting really frustrated with the small resolution.

Author Aug 31, 2010
6:02 am
#13 Far East :

Welcome and goodluck Tim :)

Oct 15, 2010
12:26 pm
#14 cee :

I used these instructions and it worked.
Very nice,
Thank you.

Author Oct 16, 2010
8:15 pm
#15 Far East :

Good luck ceed & happy virtualising..:p

Jan 18, 2011
2:11 am
#16 wizgi :

Newbie here. I’m trying to complete the changes for resolution however the file I have is VBoxLinuxAdditions.run (without the ‘-x86′). Is the file located somewhere else? Right click does not allow for renaming.

Thanks for the post.

Author Jan 18, 2011
2:43 am
#17 Far East :

Hi wizgi,
You can just run the command
sh ./VBoxLinuxAdditions.run
Yes, you can’t rename the file because it is read-only (consider as a CD/DVD). But, if you are intent to rename the file, you can always copy the file to elsewhere and rename it.

Jan 27, 2011
4:16 am
#18 wizgi :

@Far East
Thanks for the assist. One more hurdle to get past. I have the resolution now up to 1024×768(it’s now my only option) but would like to take it a step further to 1280×1024 to match my desktop. I tried the tweak above to edit the xorg.conf file but no such file exists, likely because, and I should have mentioned, I am using RHEL6.

Thanks again

Feb 17, 2011
6:22 am
#19 KJ :

Dude, this is a real nice tutorial.
Worked for me like a charm.
Thanks a lot.

Jun 20, 2011
3:15 am
#20 Beyonce :

Thanks for sharing. What a pelsaure to read!

Trackbacks to this post.
Leave a Comment

Previous Post
«
Next Post
»
Delighted Black designed by Christian Myspace In conjunction with Ping Services   |   French Teacher Jobs   |   Maths Teacher Jobs

Password Reset

Please enter your e-mail address. You will receive a new password via e-mail.