Page 1 of 1
Problem Inicializating a Server
Posted: 10. Aug 2013, 12:56
by sYnced
Hello guys, i have installed the virtual box, but give me an error compiling, i ignore this and start virtualbox sucessfull.
Then i can create an machine, but when try start it give me an error, and says to execute : "/etc/init.d/vboxdrv setup" but give me another error, who i cant solve...
the error is:
[root@metin2 ~]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-042stab078.28 cannot be found at
/lib/modules/2.6.32-042stab078.28/build or /lib/modules/2.6.32-042stab078.28/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
Anyone can help me ?
Thanks!
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 14:32
by Perryg
You need to install the headers that match your running kernel.
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 14:39
by sYnced
i have that already installed, by the tutorial on virtualbox wiki, can you send me another tutorial ?
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 14:43
by Perryg
What is the host?
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 15:57
by sYnced
centos 6 machine... i really need virtualbox working...
thank you.
i have installed virtualbox by yum!
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 16:27
by Perryg
Using yum I would assume you have installed the rpmfusion fork of VirtualBox (which we do not support here).
With that said the kernel headers that you show in your error message appear to belong to a paravirtualized kernel, openVZ which can cause you lots of grief getting this to work.
You say that you have installed the proper headers but that does not appear to be what the error suggests.
type uname -r in the hosts terminal and note the exact kernel version and then you can see if the proper headers are or can be installed using the following command as su/sudo.
Code: Select all
yum install kernel-headers-$(uname -r) kernel-devel-$(uname -r)
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 16:37
by sYnced
[root@metin2 ~]# yum install kernel-headers-(uname -r) kernel-devel-$(uname -r)
-bash: syntax error near unexpected token `('
give me that bash error!
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 16:43
by Perryg
There was a typo. I left out a string character on one of them but it is corrected now. Read read and run the command again.
Are you new to Linux as well, as VirtualBox?
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 18:07
by sYnced
after several try's give me that error:
Code: Select all
[root@metin2 ~]# yum install kernel-headers-$(uname -r) kernel-devel-$(uname -r)
Loaded plugins: fastestmirror, refresh-packagekit
Loading mirror speeds from cached hostfile
* base: centos.
* epel: mirrors
* extras: mirrors
* rpmfusion -free- updates: mirror
* updates: mirrors .versaweb
Setting up Install Process
No package kernel-headers-2.6.32-042stab078.28 available.
No package kernel-devel-2.6.32-042stab078.28 available.
Error: Nothing to do
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 18:12
by Perryg
Then there is nothing you can do using the kernel that you have installed at this point.
You must have matching headers to be able to build external modules and your source does not have them.
You would need to find someone that supplies the headers and devel package for your kernel or use a kernel that your repository supports.
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 18:25
by sYnced
how i can do this, can you give me and link tutorial ? thank you.
Re: Problem Inicializating a Server
Posted: 10. Aug 2013, 18:38
by Perryg
Your best bet would be to contact
CentOS about you host specific questions.