Page 1 of 3

How to install Guest Additions in CentOS 5.1

PostPosted: 3. Mar 2008, 22:17
by yoyo
log in as root and type in terminal

Code: Select all   Expand viewCollapse view
yum install gcc -y


Code: Select all   Expand viewCollapse view
yum install kernel sources -y

Code: Select all   Expand viewCollapse view
yum install kernel-devel -y


restart the system

now go to the VBox Addition directory in your /media directory and type:

Code: Select all   Expand viewCollapse view
sh VBoxLinuxAdditions.run


restart the system again

PostPosted: 15. May 2008, 09:08
by felipe1982
I can see that the module vboxadd is running, but it won't go fullscreen.

PostPosted: 17. May 2008, 15:04
by digizone
I am a total noob for Centos and Virtualbox but this seemed to word for me.

I tried above but got a Kernel conflict error.

I did this as su;

yum install kernel-dev

started your above script again and it installed the VB additions OK.

I hope this helps someone :)

Now if only the host interface networking was working in 1.6....

Best of luck to the guys working on this. Great product. Keep up the great work.

Please update it or release a .deb soon.

PostPosted: 19. May 2008, 02:52
by felipe1982
digizone wrote:Please update it or release a .deb soon.
Did you mean RPM?

PostPosted: 21. May 2008, 15:00
by digizone
I did mean the .deb on the host Ubuntu OS.

I used the commands above on the Guest Centos 5.1 OS.

did you get yours working ?

Cheerz

PostPosted: 22. May 2008, 03:50
by felipe1982
digizone wrote:I did mean the .deb on the host Ubuntu OS.

I used the commands above on the Guest Centos 5.1 OS.

did you get yours working ?

Cheerz
Can't get guest addons to work in CentOS! PITA

PostPosted: 22. May 2008, 04:15
by digizone
What errors are you getting?

Mine was a kernel conflict. Did you get a similar error ?

Post the error here and some may be able to assist.

PostPosted: 22. May 2008, 16:43
by Butch
I am getting the same error-

Code: Select all   Expand viewCollapse view
[root@localhost VBOXADDITIONS_1.6.0_30421]# sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 1.6.0 Guest Additions for Linux installation...............................................................................
..............................................................................................
VirtualBox 1.6.0 Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-53.el5xen
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.
[root@localhost VBOXADDITIONS_1.6.0_30421]#


Running Windows Vista as host. Centos5.1 Guest. have tried to yum install gcc -y yum install kernel sources -y and yum install kernel-devel -y and then rebooted
still will not work.

PostPosted: 25. May 2008, 02:09
by KeremE
Hi,

There's a bug in Guest Additions. (Though the wanted to fix it. It is still there). In fact this bug is caused by RedHAT to backport some features from an older kernel to the current 2.6.18 kernel. This causes the makescript can not detect the kernel as it should be. The souution is to add the switch:

-DKERNEL_FC6

to the EXTRA_CFLAGS variable in the make file. To understand where your Vbox additons temporary dierctory is located you shold get the contents of /var/log/vboxadd-install.log displayed to see where is your current installation located. Normally it shoud be /tmp/vbox.0 but if you have tried severel times terminated with error then it might as well be vbox.1, vbox.2 and so on..

Cheers,
K.

PostPosted: 10. Sep 2008, 20:29
by davidsain
I'm glad things are working well with VBox 2. Only change I'd suggest to this thread is for folks with the latest download is:

Code: Select all   Expand viewCollapse view
sh VBoxLinuxAdditions-i386.run
or
Code: Select all   Expand viewCollapse view
sh VBoxLinuxAdditions-amd64.run

depending on your architecture and guest OS.

PostPosted: 14. Nov 2008, 05:55
by jeffreywt
Sorry for bumping an older thread but here is the solution I found for CentOS. Make sure you have /usr/src/linux setup as a symbolic link to the proper kernel sources.

Something like this should work:

Code: Select all   Expand viewCollapse view
yum install kernel sources
yum install kernel-devel
yum install gcc
ln -s /usr/src/kernels/2.6.18-92.1.18.el5-i686 /usr/src/linux
sh VBoxLinuxAdditions-x86.run

PostPosted: 20. Nov 2008, 17:58
by francisca
Just posting to confirm that the above post works just fine with 2.0.4 for Mac, hosting CentOS5.2

Thanks for the tip!

PostPosted: 27. Nov 2008, 11:32
by daKrisht
Hey everyone, I too am confirming that jeffreywt's suggestions are working successfully under the following conditions:

Host System: Mac OS X 10.5 (MacBook Pro Intel)
Guest VM: CentOS 5.2


BUT, VirtualBox still does not resize the window (CentOS guest) and does not resize in Fullscreen mode either. I am currently looking into this but don't know what else can be done...

-da[/b]

PostPosted: 27. Nov 2008, 21:20
by Sasquatch
daKrisht wrote:Hey everyone, I too am confirming that jeffreywt's suggestions are working successfully under the following conditions:

Host System: Mac OS X 10.5 (MacBook Pro Intel)
Guest VM: CentOS 5.2


BUT, VirtualBox still does not resize the window (CentOS guest) and does not resize in Fullscreen mode either. I am currently looking into this but don't know what else can be done...

-da[/b]

Check if the option to automatically resize the Guest Window is enabled.

PostPosted: 27. Nov 2008, 23:43
by daKrisht
hey Sasquatch,

The option to automatically resize the Guest Window ("Auto-Resize Guest display") is checked but nothing happens whether it's checked or not...

Running a MacBook Pro with 1680x1050 display, only getting 1024x768 (I have specified LCD panel w/ my resolution in "Display Settings")

Hopefully there's a solution to this...