How to install Guest Additions in CentOS 5.1

Discussions about using Linux guests in VirtualBox.
yoyo
Posts: 1
Joined: 2. Mar 2008, 21:32

How to install Guest Additions in CentOS 5.1

Post by yoyo »

log in as root and type in terminal

Code: Select all

yum install gcc -y

Code: Select all

yum install kernel sources -y

Code: Select all

yum install kernel-devel -y
restart the system

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

Code: Select all

sh VBoxLinuxAdditions.run
restart the system again
felipe1982
Posts: 10
Joined: 7. May 2008, 02:56

Post by felipe1982 »

I can see that the module vboxadd is running, but it won't go fullscreen.
digizone
Posts: 5
Joined: 17. May 2008, 14:01

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

Post by felipe1982 »

digizone wrote:Please update it or release a .deb soon.
Did you mean RPM?
digizone
Posts: 5
Joined: 17. May 2008, 14:01

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

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

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

Post by Butch »

I am getting the same error-

Code: Select all

[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.
KeremE
Posts: 16
Joined: 29. Oct 2007, 05:37

Post 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.
+---
Kerem ERSOY
CISSP, CISA
davidsain
Posts: 5
Joined: 10. Sep 2008, 20:22

Post 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

sh VBoxLinuxAdditions-i386.run
or

Code: Select all

sh VBoxLinuxAdditions-amd64.run
depending on your architecture and guest OS.
jeffreywt
Posts: 1
Joined: 14. Nov 2008, 05:51

Post 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

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
francisca
Posts: 2
Joined: 20. Nov 2008, 17:55

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

Post 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]
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 »

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

Post 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...
Post Reply