How to install Guest Additions in CentOS 5.1

Discussions about using Linux guests in VirtualBox.
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Try to disable it and re-enable it. Go to Full Screen a few times and hopefully it will resize.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
user888
Posts: 1
Joined: 10. Feb 2009, 16:34

Post by user888 »

Same problem over here. Auto-resize works with openSUSE 11.1 (32-bit) as guest, but not with Centos 5.2 (32-bit) as guest. Using Virtual Box 2.1.2 on WindowsXP SP3 host /w guest additions.
BNineFounder
Posts: 2
Joined: 20. Feb 2009, 08:34

Post by BNineFounder »

user888 wrote:Same problem over here. Auto-resize works with openSUSE 11.1 (32-bit) as guest, but not with Centos 5.2 (32-bit) as guest. Using Virtual Box 2.1.2 on WindowsXP SP3 host /w guest additions.
According to the VBox user manual, if you want your Linux guest's auto-resize to work, your guest Linux distro (except FC 9) must use Xorg 1.3 or higher. I use CentOS 5.2 and it shows the Xorg version as 1.1.x. Guess we're out of luck and just have to edit the xorg.conf file.
mega_newbie
Posts: 1
Joined: 20. Feb 2009, 08:46

Post by mega_newbie »

BNineFounder,
looks like you are most correct


on my Centos5.2 xorg.conf file edited for my desired resolution looks like this:

Code: Select all

# Xorg configuration created by system-config-display

Section "ServerLayout"
	Identifier     "single head configuration"
	Screen      0  "Screen0" 0 0
	InputDevice    "Keyboard0" "CoreKeyboard"
EndSection

Section "InputDevice"
	Identifier  "Keyboard0"
	Driver      "kbd"
	Option	    "XkbModel" "pc105"
	Option	    "XkbLayout" "us"
EndSection

Section "InputDevice"
	Identifier  "VBoxMouse"
	Driver      "vboxmouse"
	Option	    "CorePointer"
EndSection

Section "Monitor"
	Identifier   "Monitor0"
	ModelName    "LCD Panel 1920x1200"
EndSection

Section "Device"
	Identifier  "Videocard0"
	Driver      "vboxvideo"
EndSection

Section "Screen"
	Identifier "Screen0"
	Device     "Videocard0"
	Monitor    "Monitor0"
	DefaultDepth     24
	SubSection "Display"
		Viewport   0 0
		Depth     24
		Modes     "1920x1200" "1680x1050" "1024x768"
	EndSubSection
EndSection


Let's hope this helps some people out :-D
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

Mega_newbie, that is about the same xorg.conf file I posted several times here, though it is made on Ubuntu. And for the GA in 2.1.4, it will keep the resolution that you set in xorg.conf, and not a dynamic resolution as you would have if you don't note any resolution in it. You should only need the 'Driver "vboxvideo"' entry.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
BNineFounder
Posts: 2
Joined: 20. Feb 2009, 08:34

Post by BNineFounder »

mega_newbie wrote:on my Centos5.2 xorg.conf file edited for my desired resolution looks like this: [snip] Let's hope this helps some people out :-D
It did indeed help. Thank you. I couldn't find my xorg.conf file that I had backed up for CentOS on my computer, but yours worked!

Sasquatch, I appreciate your advice. Sounds like you were being a little 'sharp' with mega newbie, but his post did help.

Thank you all! :D
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Post by Sasquatch »

It was meant as advise, in case he was wondering why his Guest wouldn't resize (or for any other user that would use his xorg.conf). I had no intention of being 'sharp' or negative, just informative.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
Cor-newbie
Posts: 1
Joined: 4. Mar 2009, 23:08

Re: How to install Guest Additions in CentOS 5.1

Post by Cor-newbie »

Just wanted to say after making the changes to my xorg.conf as mega-newbie posted, the full screen mode works perfectly. Thanks!
naitsirhc
Posts: 8
Joined: 15. May 2009, 00:55
Primary OS: MS Windows XP
VBox Version: OSE Debian
Guest OSses: ubuntu, centos, windows

Re: How to install Guest Additions in CentOS 5.1

Post by naitsirhc »

Fighting with english language, but I understood everything and could solve my problems too...

Thanx so much to everyone people who post in this thread...

Thank U! :mrgreen:
Never be so BIG to ignore the small people, we also live in this world... :wink:
dkd903
Posts: 2
Joined: 18. Jun 2009, 08:55
Primary OS: Fedora 10
VBox Version: OSE Fedora
Guest OSses: Windows 7, Fedora 11

Re: How to install Guest Additions in CentOS 5.1

Post by dkd903 »

There is a very nicely done guide on explaining the entire process of installing the Guest Additions for a Linux Guest. The article also gives an insight to all the problems that you may encounter:
http://digitizor.com/2009/05/26/how-to- ... nux-guest/
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to install Guest Additions in CentOS 5.1

Post by Sasquatch »

dkd903 wrote:There is a very nicely done guide on explaining the entire process of installing the Guest Additions for a Linux Guest. The article also gives an insight to all the problems that you may encounter:
http://digitizor.com/2009/05/26/how-to- ... nux-guest/
The version he uses is a bit outdated. 1.5.6 is quite old for software standards, it was released over a year ago. I've made a howto myself as you can see at the top of the topic listing. You don't have to copy the install file to anywhere, just run the file from the mount location. I"ve noted a few possible things you can expect in it too, though nothing yet about OpenGL.
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
yonas
Posts: 2
Joined: 5. Aug 2010, 06:21
Primary OS: Ubuntu other
VBox Version: OSE Debian
Guest OSses: xx

Re: How to install Guest Additions in CentOS 5.1

Post by yonas »

The first post by yoyo works for me with:
  • VirtualBox 3.2.6
    Guest OS: CentOS 2.6.18-194.8.1.el5 #1 SMP Thu Jul 1 19:07:06 EDT 2010 i686 i686 i386 GNU/Linux
    Host OS: Ubuntu 10.04
After logging into gnome, I can go to full-screen.
lebeg
Posts: 1
Joined: 7. Sep 2010, 13:13
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: CentOS

need help with additions

Post by lebeg »

Can't find the sources package! Can anyone help me out?
Sasquatch
Volunteer
Posts: 17798
Joined: 17. Mar 2008, 13:41
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux
Location: /dev/random

Re: How to install Guest Additions in CentOS 5.1

Post by Sasquatch »

Version too old so the repo is down?
Read the Forum Posting Guide before opening a topic.
VirtualBox FAQ: Check this before asking questions.
Online User Manual: A must read if you want to know what we're talking about.
Howto: Install Linux Guest Additions
Howto: Use Shared Folders on Linux Guest
See the Tutorials and FAQ section at the top of the Forum for more guides.
Try searching the forums first with Google and add the site filter for this forum.
E.g. install guest additions site:forums.virtualbox.org

Retired from this Forum since OSSO introduction.
john.doe
Posts: 76
Joined: 10. Feb 2009, 16:39
Primary OS: MS Windows 7
VBox Version: PUEL
Guest OSses: WinXP, Vista, 2003, 2008, various Linux distros and others

Re: How to install Guest Additions in CentOS 5.1

Post by john.doe »

I know this is an old thread, but Guest Additions still don't work right in CentOS using the standard install process. So, here's what worked for me:

Code: Select all

sudo -s
yum install kernel-devel
yum install gcc
cd /media/VBOXADDITIONS_4.0.2_69518
sh VBoxLinuxAdditions.run
My environment:

Host OS: Windows 7
Guest OS: CentOS 5.5 64 bit
VBox: 4.0.2 r69518
Post Reply