Problem Installing GuestAddition for CentOS

Discussions about using Linux guests in VirtualBox.

Problem Installing GuestAddition for CentOS

Postby banu » 25. Aug 2009, 04:13

Hi, I have installed CentOS5 on my virtualBox running on host Windows7. My virtualBox also have another guest which is Ubuntu9 that have GuestAdditions installed and working fine. When i try to Install the GuestAddition for CentOS I am getting Following error!

Code: Select all   Expand viewCollapse view
sh VBoxLinuxAdditions-amd64.run x11
Verifying archive integrity... All good.
Uncompressing VirtualBox 2.2.4 Guest Additions for Linux installation..............................................................................
VirtualBox 2.2.4 Guest Additions installation
Please install the build and header files for your current Linux kernel.
The current kernel version is 2.6.18-128.el5
Problems were found which would prevent the Guest Additions from installing.
Please correct these problems and try again.

I followed the forum thread http://forum.virtualbox.org/viewtopic.php?f=3&t=15679&sid=a64d2b284109f056266c684f514c2819 and installed the packages!
Code: Select all   Expand viewCollapse view
sudo yum install binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel

Now i have all the packages reporting as installed, But I still have the same error messages when i try to run the VBoxLinuxAdditions-amd64.run!
How do I make sure that the kernel-headers and/or kernel-source are of the same version as the running kernel.?

Basically I wanted to install the GuestAddition to have the internal Networking support! Do I really need the GA for the communication within the Guest Operating Systems!
My Ubuntu System with GuestAddition have enabled with two adapters, one for NAT and one for Inter networking, when I boot my ubuntu machine it shows me the ip addresses for NAT which is eth0 and virbr0.
But in my CentOS machine which doesnot have the GA installed, shows me only the loopback address 127.0.0.1 and NAT.

Thanks in Advanced!
Banu
banu
 
Posts: 5
Joined: 21. Aug 2009, 02:40
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu

Re: Problem Installing GuestAddition for CentOS

Postby banu » 25. Aug 2009, 08:23

HI, I have installed the GuestAddition, When i check the version of kernel and the kernel-devel it seems to be differ,
I just update the current kernel to the latest version, and the GA have installed successfully!
Code: Select all   Expand viewCollapse view
yum list kernel*
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.monash.edu.au
 * updates: ftp.monash.edu.au
 * addons: ftp.monash.edu.au
 * extras: ftp.monash.edu.au
base                                                     | 1.1 kB     00:00     
updates                                                  |  951 B     00:00     
addons                                                   |  951 B     00:00     
extras                                                   | 1.1 kB     00:00     
Installed Packages
kernel.x86_64                          2.6.18-128.el5                  installed
kernel-devel.x86_64                    2.6.18-128.4.1.el5              installed
kernel-headers.x86_64                  2.6.18-128.4.1.el5              installed
Available Packages
kernel.x86_64                          2.6.18-128.4.1.el5              updates 
kernel-debug.x86_64                    2.6.18-128.4.1.el5              updates 
kernel-debug-devel.x86_64              2.6.18-128.4.1.el5              updates 
kernel-doc.noarch                      2.6.18-128.4.1.el5              updates 
kernel-xen.x86_64                      2.6.18-128.4.1.el5              updates 
kernel-xen-devel.x86_64                2.6.18-128.4.1.el5              updates 
[root@centos VBOXADDITIONS_2.2.4_47978]# yum install kernel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: ftp.monash.edu.au
 * updates: ftp.monash.edu.au
 * addons: ftp.monash.edu.au
 * extras: ftp.monash.edu.au
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.18-128.4.1.el5 set to be installed
--> Finished Dependency Resolution

Dependencies Resolved

================================================================================
 Package        Arch           Version                    Repository       Size
================================================================================
Installing:
 kernel         x86_64         2.6.18-128.4.1.el5         updates          17 M

Transaction Summary
================================================================================
Install      1 Package(s)         
Update       0 Package(s)         
Remove       0 Package(s)         

Total download size: 17 M
Is this ok [y/N]: y
Downloading Packages:
kernel-2.6.18-128.4.1.el5.x86_64.rpm                     |  17 MB     00:17     
Running rpm_check_debug
Running Transaction Test
Finished Transaction Test
Transaction Test Succeeded
Running Transaction
  Installing     : kernel                                            [1/1]

Installed: kernel.x86_64 0:2.6.18-128.4.1.el5

ALTHOUGH I am not getting the CentOS to full window. i had this same problem when i installed GA on my ubuntu, then i resolved it by createing another machine for same vdi. I gues this may work! will give a try soon..
But my basic problem about the Internal Networking is not solved, I need to communicate with my CentOS and Ubuntu. both guest have 2 adapters enabled and one adapter with NAT other one with Internal Networking!
is there any thing i need to do for having internal network
banu
 
Posts: 5
Joined: 21. Aug 2009, 02:40
Primary OS: MS Windows 7
VBox Version: OSE other
Guest OSses: Ubuntu


Return to Linux Guests

Who is online

Users browsing this forum: No registered users and 9 guests