Page 1 of 2 12 LastLast
Results 1 to 10 of 20

Thread: install DKMS package? VM problem

  1. #1
    Join Date
    Feb 2009
    Beans
    75
    Distro
    Ubuntu 8.04 Hardy Heron

    install DKMS package? VM problem [SOLVED]

    my sun VirtualBox stopped working after the last kernel update. when i try to virtualize windows, it gives me the following error msg:

    VERR_VM_DRIVER_NOT_INSTALLED (rc=-1908)

    The VirtualBox Linux kernel driver (vboxdrv) is either not loaded or there is a permission problem with /dev/vboxdrv. Re-setup the kernel module by executing

    '/etc/init.d/vboxdrv setup'

    as root. Users of Ubuntu or Fedora should install the DKMS package at first. This package keeps track of Linux kernel changes and recompiles the vboxdrv kernel module if necessary.


    just running $sudo /etc/init.d/vboxdrv setup does not appear to get the VM running windows again. how do i install the DKMS package?

    Thanks in advance for any suggestions.
    Last edited by nachos99; May 6th, 2009 at 09:46 AM.

  2. #2
    Join Date
    Nov 2008
    Location
    Stockbridge, GA
    Beans
    1,001
    Distro
    Ubuntu Development Release

    Re: install DKMS package? VM problem

    Quote Originally Posted by nachos99 View Post
    how do i install the DKMS package?
    With this command:

    Code:
    sudo apt-get install dkms
    Then try to rebuild the module with the command that you already listed.
    -o)
    /\\
    _\_V
    Message void if penguin is violated...Don't mess with the penguin.

  3. #3
    Join Date
    Feb 2009
    Beans
    75
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: install DKMS package? VM problem

    as suggested, i did

    Code:
    sudo apt-get install dkms
    sudo /etc/init.d/vboxdrv setup
    after restarting my computer, i can run windows in my virtualBox again.

    thank you, spcwingo.

  4. #4
    Join Date
    Nov 2008
    Location
    Stockbridge, GA
    Beans
    1,001
    Distro
    Ubuntu Development Release

    Re: install DKMS package? VM problem

    No prob. Glad I could help.
    -o)
    /\\
    _\_V
    Message void if penguin is violated...Don't mess with the penguin.

  5. #5
    Join Date
    Dec 2008
    Beans
    8

    Re: install DKMS package? VM problem

    Hi spcwingo,
    Maybe you can help? I get the same error as nachos99 when trying to open vbox, but after vbox 2.2 has failed to install. The gdeb installer dialog just says "Installation finished, failed to install package 'virtualbox-2.2... Ubunto_hardy_i386.deb" and a blank terminal window.

    Apparently it got part way, because trying to open vbox results in the error nachos saw (VERR_VM_DRIVER_NOT_INSTALLED). "sudo apt-get.." installs the latest DKMS, but "/etc/init.d/vboxdrv setup" results in:

    annaa@ubuntu-desktop:~$ /etc/init.d/vboxdrv setup
    open: Permission denied
    * Stopping VirtualBox kernel module open: Permission denied
    * done.
    open: Permission denied
    * Recompiling VirtualBox kernel module /etc/init.d/vboxdrv: 342: cannot create /var/log/vbox-install.log: Permission denied

    open: Permission denied
    * Look at /var/log/vbox-install.log to find out what went wrong
    annaa@ubuntu-desktop:~$

    The vbox-install.log starts with:
    make KBUILD_VERBOSE=1 -C /lib/modules/2.6.24-23-generic/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
    test -e include/linux/autoconf.h -a -e include/config/auto.conf || ( \
    echo; \
    echo " ERROR: Kernel configuration is invalid."; \
    echo " include/linux/autoconf.h or include/config/auto.conf are missing."; \
    echo " Run 'make oldconfig && make prepare' on kernel src to fix it."; \
    echo; \
    /bin/false)
    mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*
    make -f scripts/Makefile.build obj=/tmp/vbox.0 ...

    followed by yards of "gcc -m32" stuff, incomprehensible to a non-techie of no talent with computer guts.
    I tried running the "make oldconfig && make prepare" in terminal, and get "*** No rule to make target `oldconfig'. Stop."

    Is there any hope for a fix?

    Thank you so much for any help you can provide!

  6. #6
    Join Date
    Nov 2008
    Location
    Stockbridge, GA
    Beans
    1,001
    Distro
    Ubuntu Development Release

    Re: install DKMS package? VM problem

    I believe the reason you're getting errors is you need to add sudo (super user do) in front of the commands. So instead of:

    Code:
    /etc/init.d/vboxdrv setup
    It should be:

    Code:
    sudo /etc/init.d/vboxdrv setup
    -o)
    /\\
    _\_V
    Message void if penguin is violated...Don't mess with the penguin.

  7. #7
    Join Date
    Dec 2008
    Beans
    8

    Re: install DKMS package? VM problem

    Hey spcwingo - you rock! Thank you for your kind answer to a dumb question.

  8. #8
    Join Date
    Feb 2008
    Location
    Montreal, Canada
    Beans
    86
    Distro
    Ubuntu 10.10 Maverick Meerkat

    Re: install DKMS package? VM problem

    .
    Last edited by faintscrawl; December 11th, 2009 at 06:39 PM. Reason: answer my own question

  9. #9
    Join Date
    Sep 2008
    Location
    Manchester UK
    Beans
    48
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Re: install DKMS package? VM problem

    Hopefully someone can help. I have followed the instructions here, using SUDO, and still hitting problems.

    I've attached the log output, so if someone could interpret and make a suggestion, that would be most appreciated.

    Thanks in advance.
    Attached Files Attached Files

  10. #10
    Join Date
    Aug 2008
    Beans
    8
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: install DKMS package? VM problem

    Quote Originally Posted by nachos99 View Post
    as suggested, i did

    Code:
    sudo apt-get install dkms
    sudo /etc/init.d/vboxdrv setup
    after restarting my computer, i can run windows in my virtualBox again.

    thank you, spcwingo.

    Same here.
    Thanks very much for providing the solution!
    BTW, I got a different error code, still the solution worked perfect!
    Last edited by berlinblue; December 30th, 2010 at 01:13 AM. Reason: extending the qouted text - makes more clear.

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •