VirtualBox on Ubuntu 14.04 Issue

Discussions related to using VirtualBox on Linux hosts.
Post Reply
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

I am kinda new to Ubuntu/Linux/Unix so please bare with me. I have purchased a virtual private server and installed Ubuntu 14.04 on the server, afterwards I have Installed VirtualBox on the server and I have created a Windows 7 machine. When I try starting up my box it gives me this error.

Code: Select all

Kernel driver not Installed (rc=-1908)
    
    The VirtualBox Linux kernel driver (vboxdrv) is either not laoded or there is a permission problem with /dev/vboxdrv. Please reinstall the kernel module by executing
    
    '/sbin/rcvboxdrv setup'
    
    as root. If it is available in your distribution, you should install the DKMS package first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.
    
    where: suplibOsinit what:3
    VERR_VM_DRIVER_NOT_INSTALLED (-1908) - The support driver is not installed. On linux, open returned ENOENT.
I tried using the command '/sbin/rcvboxdrv setup' to reinstall the kernel module but after pressing enter it gave me another error.

Code: Select all

# sudo /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel modules ...done.
    Uninstalling old VirtualBox DKMS kernel modules ...done.
    Trying to register the VirtualBox kernel module using DKMSError! Your kernel headers for kernel 2.6.32-042stab113.11 cannot be found.
    Please Install the linux-headers-2.6.32-042stab113.11 package,
    or use the --kernelsourcedir option to tell DKMS where it's located 
     ...failed!
      (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules ...failed!
      (Look at /var/log/vbox-install.log to find out what went wrong)
When I do uname -r this what comes up:

Code: Select all

 # uname -r
    2.6.32-042stab113.11
I tried going on Google to search for the kernel module, but I had no luck in finding the right Linux Header. I would appreciate it if you could help me out, I'm new to Linux and I'm trying to figure out this problem I am having.

Thanks,
Matthew
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Perryg »

You are going to need the following packages on the host:
  • dkms build-essential linux-headers-$(uname -r)
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

Perryg wrote:You are going to need the following packages on the host:
  • dkms build-essential linux-headers-$(uname -r)
When I type that command it's giving me this.

Code: Select all

# dkms build-essential linux-headers-$(uname -r)
: I do not know how to handle linux-headers-2.6.32-042stab113.11.
Thanks,
Matthew
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Perryg »

Just run the following in the hosts terminal.

Code: Select all

sudo apt-get install dkms build-essential linux-headers-$(uname -r)
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

Perryg wrote:Just run the following in the hosts terminal.

Code: Select all

sudo apt-get install dkms build-essential linux-headers-$(uname -r)
It's unable to locate the package.

Code: Select all

# sudo apt-get install dkms build-essential linux-headers-$(uname -r)
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package linux-headers-2.6.32-042stab113.11
E: Couldn't find any package by regex 'linux-headers-2.6.32-042stab113.11'
Thanks,
Matthew
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Perryg »

Not much we can do about that. It appears you are running a really old host kernel and they may have suspended upgrading packages. It may be possible to get them but you would need to ask the forum of the OS in question.
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

Perryg wrote:Not much we can do about that. It appears you are running a really old host kernel and they may have suspended upgrading packages. It may be possible to get them but you would need to ask the forum of the OS in question.
Do you have the name of the forum, or link?

Thanks,
Matthew
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Perryg »

You said it was a Ubuntu host so I would go there.
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

Perryg wrote:You said it was a Ubuntu host so I would go there.
I found a website with kernels, but the one I need isn't there. Would linux-header-2.6.32.1 work?

Thanks,
Matthew
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Perryg »

Headers must match the running kernel. The only way that header would work is if you install the matching kernel. You really need to be talking to the Ubuntu folks about this. The host OS is the responsibility of the you and the host OS not VirtualBox. You will have the exact same issue compiling any other package that needs to create kernel modules.
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

Perryg wrote:Headers must match the running kernel. The only way that header would work is if you install the matching kernel. You really need to be talking to the Ubuntu folks about this. The host OS is the responsibility of the you and the host OS not VirtualBox. You will have the exact same issue compiling any other package that needs to create kernel modules.
Thank you for the suggestion. But I have found the header from OpenVZ website, It has the exact version as the one I need. I've got one question, how do I manually Install the header? I have the header file on my Ubuntu desktop, I'm just wondering how to manually Install it.

Thanks,
Matthew
Perryg
Site Moderator
Posts: 34369
Joined: 6. Sep 2008, 22:55
Primary OS: Linux other
VBox Version: OSE self-compiled
Guest OSses: *NIX

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Perryg »

It really depends on the header. You probably could use dpkg or gdebi but here again this is a question for the host OS forum. Why are you so fixed with not getting help from where it is the best? You are going to need it going forward with just about anything that you do on the host.
Matthewza
Posts: 8
Joined: 24. May 2016, 17:14

Re: VirtualBox on Ubuntu 14.04 Issue

Post by Matthewza »

Perryg wrote:It really depends on the header. You probably could use dpkg or gdebi but here again this is a question for the host OS forum. Why are you so fixed with not getting help from where it is the best? You are going to need it going forward with just about anything that you do on the host.
I've already posted a thread on the Ubuntu Forums, and so far nobody knows.

Thanks,
Matthew
Post Reply