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

Thread: virtualbox won't start

  1. #1
    Join Date
    Sep 2012
    Location
    New Panvel, India.
    Posts
    98

    Default virtualbox won't start

    rahul@localhost:~> uname -a
    Linux localhost 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 09:36:26 UTC 2012 (641c197) x86_64 x86_64 x86_64 GNU/Linux

    rahul@localhost:~> cat /etc/*release
    LSB_VERSION="core-2.0-noarch:core-3.2-noarch:core-4.0-noarch:core-2.0-x86_64:core-3.2-x86_64:core-4.0-x86_64"
    NAME=openSUSE
    VERSION="12.2 (Mantis)"
    VERSION_ID="12.2"
    PRETTY_NAME="openSUSE 12.2 (Mantis) (x86_64)"
    ID=opensuse
    ANSI_COLOR="0;32"
    CPE_NAME="cpe:/opensusepensuse:12.2"
    openSUSE 12.2 (x86_64)
    VERSION = 12.2
    CODENAME = Mantis


    rahul@localhost:~> virtualbox
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
    available for the current kernel (3.4.6-2.10-desktop) or it failed to
    load. Please recompile the kernel module and install it by


    sudo /etc/init.d/vboxdrv setup


    You will not be able to start VMs until this problem is fixed.

  2. #2
    Join Date
    Mar 2009
    Location
    United States
    Posts
    612

    Default Re: virtualbox won't start

    Make sure the package virtualbox-host-kmp-desktop is installed. Edit, unless you downloaded it from virtualbox web site. You need gcc, gcc-c++, make, kernel-devel installed. And then run the virtualbox setup from a root terminal, or reinstall virtualbox rpm.

  3. #3
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,469
    Blog Entries
    14

    Default Re: virtualbox won't start

    Quote Originally Posted by nightwishfan View Post
    Make sure the package virtualbox-host-kmp-desktop is installed. Edit, unless you downloaded it from virtualbox web site. You need gcc, gcc-c++, make, kernel-devel installed. And then run the virtualbox setup from a root terminal, or reinstall virtualbox rpm.
    If the OP runs kernel-default this is not going to help.
    Installed from the repos: install virtualbox-host-kmp-$YOURKERNELFLAVOR
    Installed from the download from the vbox website:
    Code:
    su -c '/etc/init.d/vboxdrv setup'
    Another thing is to install "dkms" from the Packman repo. On a kernel upgrade/change, dkms will take care that the vbox kernel module is rebuilt.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  4. #4
    Join Date
    Sep 2012
    Location
    New Panvel, India.
    Posts
    98

    Default Re: virtualbox won't start

    Thank you both for the replies. The system seems to have latest versions of the mentioned packages installed. Some more console log:

    Code:
    rahul@localhost:~> uname -a
    Linux localhost 3.4.6-2.10-desktop #1 SMP PREEMPT Thu Jul 26 09:36:26 UTC 2012 (641c197) x86_64 x86_64 x86_64 GNU/Linux
    
    rahul@localhost:~> sudo zypper in virtualbox-host-kmp-2.4.6-2.10-desktop
    root's password:
    Retrieving repository 'KDE:KDE3' metadata .............................................................[done]
    Building repository 'KDE:KDE3' cache ..................................................................[done]
    Loading repository data...
    Reading installed packages...
    'virtualbox-host-kmp-2.4.6-2.10-desktop' not found in package names. Trying capabilities.
    No provider of 'virtualbox-host-kmp-2.4.6-2.10-desktop' found.
    Resolving package dependencies...
    
    
    Nothing to do.
    
    rahul@localhost:~> sudo zypper in virtualbox-host-kmp-desktop
    root's password:
    Sorry, try again.
    root's password:
    Loading repository data...
    Reading installed packages...
    'virtualbox-host-kmp-desktop' is already installed.
    No update candidate for 'virtualbox-host-kmp-desktop-4.1.18_k3.4.6_2.10-1.3.1.x86_64'. The highest available version is already installed.
    Resolving package dependencies...
    
    
    Nothing to do.
    
    rahul@localhost:~> sudo zypper in dkms
    Loading repository data...
    Reading installed packages...
    'dkms' is already installed.
    No update candidate for 'dkms-2.1.1.2-1.1.noarch'. The highest available version is already installed.
    Resolving package dependencies...
    
    
    Nothing to do.
    
    rahul@localhost:~> virtualbox
    WARNING: The vboxdrv kernel module is not loaded. Either there is no module
             available for the current kernel (3.4.6-2.10-desktop) or it failed to
             load. Please recompile the kernel module and install it by
    
    
               sudo /etc/init.d/vboxdrv setup
    
    
             You will not be able to start VMs until this problem is fixed.
    /usr/bin/virtualbox: line 77: /usr/lib/virtualbox/VirtualBox: Permission denied
    /usr/bin/virtualbox: line 77: exec: /usr/lib/virtualbox/VirtualBox: cannot execute: Permission denied
    
    rahul@localhost:~> sudo /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel modules                                                                done
    Uninstalling old VirtualBox DKMS kernel modules                                                   done
    Trying to register the VirtualBox kernel modules using DKMS
    Error! Your kernel headers for kernel 3.4.6-2.10-desktop cannot be found at
    /lib/modules/3.4.6-2.10-desktop/build or /lib/modules/3.4.6-2.10-desktop/source.
                                                                                                      failed
      (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules                                                             failed
      (Look at /var/log/vbox-install.log to find out what went wrong)
    
    rahul@localhost:~> cat /var/log/vbox-install.log
    Uninstalling modules from DKMS
      removing old DKMS module vboxhost version  4.2.0
    
    
    ------------------------------
    Deleting module version: 4.2.0
    completely from the DKMS tree.
    ------------------------------
    Done.
    Attempting to install using DKMS
    
    
    Creating symlink /var/lib/dkms/vboxhost/4.2.0/source ->
                     /usr/src/vboxhost-4.2.0
    
    
    DKMS: add Completed.
    You can use the --kernelsourcedir option to tell DKMS where it's located.
    Failed to install using DKMS, attempting to install without
    Makefile:181: *** Error: unable to find the sources of your current Linux kernel. Specify KERN_DIR=<directory> and run Make again.  Stop.

  5. #5
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    20,469
    Blog Entries
    14

    Default Re: virtualbox won't start

    You don't have the kernel sources installed. Before going any further, please first go into Yast - Software Management and do this:
    - select "Patterns" from the View option
    - click the "Linux Kernel Development Pattern" for install.
    After installing the (amongst others) kernel sources, repeat
    Code:
    su -c '/etc/init.d/vboxdrv setup'
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  6. #6
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Smile Re: virtualbox won't start

    I normally suggest you do the following steps. I would uninstall VirtualBox from YaST, if it was not a downloaded file from Oracle that you installed, but included in the repository and not the latest version. Then I use YaST to install some required software.

    Open YaST / Software / Software Management - Select the View Button on the top left and pick Patterns. Now, you will see several Patterns listed and you want to select:

    Code:
       Development 
    
    [X] Base Development
    [X] Linux Kernel Development
    [X] C/C++ Development
    Then Press the Accept button on the bottom right and allow these applications to install. I also suggest you add the Packman repository then search for and install dkms in YaST, which comes from Packman. I normally suggest you install VirtualBox outside of YaST, directly from Oracle. See the Article here on the subject:

    http://forums.opensuse.org/content/5...umbleweed.html

    I have links for the most recent VirtualBox version 4.2 you can find here:

    http://forums.opensuse.org/english/g...box-4-2-a.html

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

  7. #7
    Join Date
    Mar 2008
    Location
    Oz
    Posts
    11,729
    Blog Entries
    2

    Default Re: virtualbox won't start

    @missingfaktor
    A drive-by comment: there are two versions of VBox used in openSUSE. One is from the www.virtualbox.org siteand is named VirtualBox-4.x in zypper, the other is from the openSUSE repo and is named virtualbox in zypper. The second I mentioned uses and needs the package virtualbox-host-kmp-blahblah. The first I mentioned does not use or need the package virtualbox-host-kmp-blahblah.

    You probably need to be clear which version you have. This command in a console window will reveal it to you: zypper se -s virtualbox. If you get an i in the leading column beside a package named VirtualBox, you have the first named version. If you get an i in the leading column beside a package named virtualbox, you have the second named. If you've got the former, then get rid ofvirtualbox-host-kmp-blahblah.
    Leap 42.3 & 15.1 &KDE
    FYIs from the days of yore

  8. #8

  9. #9
    Join Date
    Sep 2012
    Location
    New Panvel, India.
    Posts
    98

    Default Re: virtualbox won't start

    Thank you everyone for the replies! They were a great help.

    I purged all installed vbox packages, and installed Oracle VirtualBox as instructed. It's working great now.

    Cheers.

  10. #10
    Join Date
    Mar 2010
    Location
    Austin - Texas
    Posts
    10,140
    Blog Entries
    48

    Default Re: virtualbox won't start

    Quote Originally Posted by missingfaktor View Post
    Thank you everyone for the replies! They were a great help.

    I purged all installed vbox packages, and installed Oracle VirtualBox as instructed. It's working great now.

    Cheers.
    That is great news missingfaktor and happy to hear of your success.

    Thank You,
    My Blog: https://forums.opensuse.org/blogs/jdmcdaniel3/

    Software efficiency halves every 18 months, thus compensating for Moore's Law

    Its James again from Austin, Texas

Page 1 of 2 12 LastLast

Posting Permissions

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