Problem Installing Kernel in VBOX
Posted by mcubac on 2011/12/21 5:41:52
I have made a some research before posting this, in this website and others, but I have still not fixed my problem.
First of all, I am new using CentOS, I am learning for my class in the Spring Semester.
Anyway, I installed CentOS 6.0 in a VBox.
I have tried to installed the "Install Guest Additional"
but I have this error
"Building the main Guest Additions Module FAILED"
http://img189.imageshack.us/img189/4741/61187586.jpgI use the commands that the VirtualBox Installer suggest"
"yum install kernel-devel-2.6.32.-71.el6.x86_64"
It shows that it is updated and nothing to do.
When I go to see the log, I find this:
http://img824.imageshack.us/img824/5124/87035579.jpgSo... I read in an article I need to install the kernel and I follow this steps
http://johanlouwers.blogspot.com/2011/10/unable-to-find-sources-of-your-current.htmlUsing this pretty much
"yum install gcc kernel-devel kernel-headers"
I run again the Virtual Box Guest Additions installer
Nothing happened, the same error
Ok I got another question now, I also followed the instructions from the log which says change the KERN_DIR
I dont know if I am doing it right, but I wrote this...
"KERN_DIR=/usr/src/kernels/2.6.32-71.el6-x86_64"
"Export KERN_DIR"
I run again the Virtual Box Guest Additions installer
Nothing happened, the same error
When I went to see what kernel I got, it shows me this one:
http://img708.imageshack.us/img708/4261/59072596.jpg2.6.32-131.21.1.el6.x86_64
So, I wonder... where is the 2.6.32-71.el6-x86_64? because Kernels are located in /usr/src/kernels/ right? or is there another place?
So I thought, maybe I should change the KERN_DIR to that folder so I wrote
"KERN_DIR=/usr/src/kernels/2.6.32-131.21.1.el6.x86_64"
"Export KERN_DIR"
I run again the Virtual Box Guest Additions installer
Nothing happened, the same error
So... I am stuck there....
I hope someone can help me with this problem
Thank you so much
Re: Problem Installing Kernel in VBOX
Posted by lcman on 2011/12/22 14:45:12
... Moderator snip of needless quote of entire preceding message ...
Kernel sources are located in /usr/src and the actual compiled kernels reside in /boot. It's a file named vmlinuz.
You need to re-install Centos and tell the installer to install Additional Development and Development Tools. You can also try yum -y groupinstall "Development Tools" && yum -y groupinstall "Additional Development"
After install, su in and mount the Guest Additions image. cd /media/VBOX* and ./*.run
Should work.
Re: Problem Installing Kernel in VBOX
Posted by HenrykD on 2011/12/22 18:11:53
It's not work:
Building the OpenGL support module [FAILED]
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Any ideas?
Re: Problem Installing Kernel in VBOX
Posted by pschaff on 2011/12/24 2:46:45
Welcome to the CentOS fora
mcubac. Please see the recommended reading for new users linked in my signature.
It is not obvious to me where you are going wrong, but you need the kernel-devel package matching your running kernel, and the development tools installed, You do not need the full kernel source. Please see the
VirtualBox Wiki article section about CentOS as a guest OS.
HenrykD - Please review the recommended reading and refrain from hijacking threads. Start a new Topic for your issue to get the attention you need, providing a link to this one if required for context.
Re: Problem Installing Kernel in VBOX
Posted by Garrett6 on 2011/12/28 7:14:53
This tutorial shows how you can install Sun VirtualBox 3.0 (released on June 30, 2009) on an Ubuntu 9.04 desktop. With VirtualBox you can create and run guest operating systems ("virtual machines") such as Linux and Windows under a host operating system. There are two ways of installing VirtualBox: from precompiled binaries that are available for some distributions and come under the PUEL license, and from the sources that are released under the GPL. This article will show how to set up VirtualBox 3.0 from the precompiled binaries.
As of version 2.0 VirtualBox supports 32 and 64bit host and guest operating systems (if you want to install 64bit guests your processor must support hardware virtualization and, of course, the host operating system must be 64bit as well).
This document comes without warranty of any kind! I want to say that this is not the only way of setting up such a system. There are many ways of achieving this goal but this is the way I take. I do not issue any guarantee that this will work for you!
Oracle VirtualBox is a powerful x86 and AMD64/Intel64 virtualization product for enterprise as well as home use. VirtualBox is a general-purpose full virtualizer for x86 hardware. Targeted at server, desktop and embedded use, it is now the only professional-quality virtualization solution that is also Open Source Software.
VirtualBox supports a large number of guest operating systems:
Windows 3.x
Windows NT 4.0
Windows 2000
Windows XP
Windows Server 2003
Windows Vista
Windows 7
DOS
Linux (2.4, 2.6, 3.0, 3.1)
Solaris
OpenSolaris
OpenBSD
Re: Problem Installing Kernel in VBOX
Posted by dmischa on 2011/12/28 11:06:36
Re: Problem Installing Kernel in VBOX
Posted by HenrykD on 2011/12/28 17:24:10
Quote:
pschaff wrote:
Please review the recommended reading and refrain from hijacking threads. Start a new Topic for your issue to get the attention you need, providing a link to this one if required for context.
I have a similar problem as mcubac and did not want to create a new thread.
Quote:
But how do I do this?
Re: Problem Installing Kernel in VBOX
Posted by dmischa on 2011/12/29 9:27:17
Re: Problem Installing Kernel in VBOX
Posted by mcubac on 2012/1/2 21:44:05
Quote:
lcman wrote:
... Moderator snip of long nested quote ...
Kernel sources are located in /usr/src and the actual compiled kernels reside in /boot. It's a file named vmlinuz.
You need to re-install Centos and tell the installer to install Additional Development and Development Tools. You can also try yum -y groupinstall "Development Tools" && yum -y groupinstall "Additional Development"
After install, su in and mount the Guest Additions image. cd /media/VBOX* and ./*.run
Should work.
Thank you for the replay
I did what you told me reinstall the CENTOS and I installed the
"yum -y groupinstall "Development Tools" && yum -y groupinstall "
I do not understand when you say "mount the Guest Additions image cd/media/VBOX* and /*.run"
I hope you understand that I dont know anything about linux, so I would need a little bit more of explanation.
After tinstalling the groups and development tools. It stills show me the same error.
Can you please explain me step by step?
I have read the
http://wiki.centos.org/HowTos/Virtualization/VirtualBox but some commands such as yum --enablerepo rpmforge install dkms says command no found.
I also upgrade the kernel because some people say that might be the problem, but still nothing.
I am running VBOX 4.1.8r on Windows 7
Thank you!
Re: Problem Installing Kernel in VBOX
Posted by pschaff on 2012/1/3 21:57:33
Not sure what's going on with RPMforge. If having problems with that please start a new topic for it.
I created a new Wiki page incorporating the patch procedure -
CentOS as a Guest OS in VirtualBox.
This Post was from: https://www.centos.org/newbb/viewtopic.php?forum=55&topic_id=34845