web analytics

Change Resolution on VMWare VirtualBox

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


Blog Widget by LinkWithin

linux, Red Hat Enterprise Linux 5, RHEL5, screen resolution, vbox, Virtualbox, vmware Laptop & Notebook, Linux Tips, Online, Software, Technology

22 comments on “Change Resolution on VMWare VirtualBox

  1. VirtualBox is owned by Sun, not VMware ;-)

    -FB

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

  3. Far East on said:

    @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..

  4. 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!

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

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

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

  8. 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!

  9. Pingback: Tweets that mention Change Resolution on VMWare VirtualBox | FaizSulaiman.com -- Topsy.com

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

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

  12. 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.

    • Far East on said:

      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.

  13. @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

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

  15. Thanks for sharing. What a pelsaure to read!

  16. Irshad on said:

    Yep Great its working Thnks much

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Password Reset

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