Problem Inicializating a Server

Discussions about using Linux guests in VirtualBox.
Post Reply
sYnced
Posts: 6
Joined: 10. Aug 2013, 12:54

Problem Inicializating a Server

Post 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!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem Inicializating a Server

Post by Perryg »

You need to install the headers that match your running kernel.
sYnced
Posts: 6
Joined: 10. Aug 2013, 12:54

Re: Problem Inicializating a Server

Post by sYnced »

i have that already installed, by the tutorial on virtualbox wiki, can you send me another tutorial ?
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem Inicializating a Server

Post by Perryg »

What is the host?
sYnced
Posts: 6
Joined: 10. Aug 2013, 12:54

Re: Problem Inicializating a Server

Post by sYnced »

centos 6 machine... i really need virtualbox working...

thank you.

i have installed virtualbox by yum!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem Inicializating a Server

Post 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)
sYnced
Posts: 6
Joined: 10. Aug 2013, 12:54

Re: Problem Inicializating a Server

Post 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!
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem Inicializating a Server

Post 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?
sYnced
Posts: 6
Joined: 10. Aug 2013, 12:54

Re: Problem Inicializating a Server

Post 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
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem Inicializating a Server

Post 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.
sYnced
Posts: 6
Joined: 10. Aug 2013, 12:54

Re: Problem Inicializating a Server

Post by sYnced »

how i can do this, can you give me and link tutorial ? thank you.
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: Problem Inicializating a Server

Post by Perryg »

Your best bet would be to contact CentOS about you host specific questions.
Post Reply