How to install Guest Additions in CentOS 5.1

Discussions about using Linux guests in VirtualBox.

How to install Guest Additions in CentOS 5.1

Postby yoyo » 3. Mar 2008, 22:17

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
yoyo
 
Posts: 1
Joined: 2. Mar 2008, 21:32

Postby felipe1982 » 15. May 2008, 09:08

I can see that the module vboxadd is running, but it won't go fullscreen.
felipe1982
 
Posts: 10
Joined: 7. May 2008, 02:56

Postby digizone » 17. May 2008, 15:04

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.
digizone
 
Posts: 5
Joined: 17. May 2008, 14:01

Postby felipe1982 » 19. May 2008, 02:52

digizone wrote:Please update it or release a .deb soon.
Did you mean RPM?
felipe1982
 
Posts: 10
Joined: 7. May 2008, 02:56

Postby digizone » 21. May 2008, 15:00

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
digizone
 
Posts: 5
Joined: 17. May 2008, 14:01

Postby felipe1982 » 22. May 2008, 03:50

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
felipe1982
 
Posts: 10
Joined: 7. May 2008, 02:56

Postby digizone » 22. May 2008, 04:15

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.
digizone
 
Posts: 5
Joined: 17. May 2008, 14:01

Postby Butch » 22. May 2008, 16:43

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.
Butch
 
Posts: 2
Joined: 22. May 2008, 16:24

Postby KeremE » 25. May 2008, 02:09

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.
+---
Kerem ERSOY
CISSP, CISA
KeremE
 
Posts: 16
Joined: 29. Oct 2007, 05:37

Postby davidsain » 10. Sep 2008, 20:29

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.
davidsain
 
Posts: 5
Joined: 10. Sep 2008, 20:22

Postby jeffreywt » 14. Nov 2008, 05:55

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
jeffreywt
 
Posts: 1
Joined: 14. Nov 2008, 05:51

Postby francisca » 20. Nov 2008, 17:58

Just posting to confirm that the above post works just fine with 2.0.4 for Mac, hosting CentOS5.2

Thanks for the tip!
francisca
 
Posts: 2
Joined: 20. Nov 2008, 17:55

Postby daKrisht » 27. Nov 2008, 11:32

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]
daKrisht
 
Posts: 2
Joined: 27. Nov 2008, 11:20

Postby Sasquatch » 27. Nov 2008, 21:20

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.
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.
Sasquatch
Volunteer
 
Posts: 17800
Joined: 17. Mar 2008, 13:41
Location: /dev/random
Primary OS: Debian other
VBox Version: PUEL
Guest OSses: Windows XP, Windows 7, Linux

Postby daKrisht » 27. Nov 2008, 23:43

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...
daKrisht
 
Posts: 2
Joined: 27. Nov 2008, 11:20

Next

Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 10 guests