[SOLVED] VirtualBox & The New 2.6.37.3 Kernel. (Solution: DKMS Required To Install VB Kernel Module)
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Same for me. After upgrading to 13.37rc1 started seeing the following message when I tired to launch WinXP in VBox.
Code:
Mar 11 09:40:25 blackflag kernel: [37790.799348] VirtualBox[5916]: segfault at fffffff4 ip b41bf45f sp fffffff4 error 4 in VBoxSharedClipboard.so[b41b8000+b000]
I'm sure which package change is the root cause of the problem, but it was definitely something in the 13.37rc1 update.
Edit: I was able to recompile and load vboxdrv and company just fine. It's just the segfault in VBoxSharedClipboard.so that is causing me problems, but disabling Shared Clipboard for the VM works for now (it will become annoying if the shared clipboard doesn't get fixed).
Last edited by DragonWisard; 03-11-2011 at 06:22 PM.
I am not having this problem with Shared Clipboard.
I am using Slackware64-current, updated to latest update. Of course AlienBOB's multilib is installed. VirtualBox 4.0.4r70112 w/extension pack installed.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097
Original Poster
Rep:
OK, I was trying to figure this out and according to the VB docs the following are required to install the VB module:
qt4.40, or higher,
sdl-1.2.7, or higher,
and
DKMS (dynamic kernel module support).
Installed on my system are, qt-4.7.0-7abde40, sdl-1.2.14, but I can't find anything called DKMS. Is that part of another package?
Thanks.
Last edited by cwizardone; 03-11-2011 at 10:40 PM.
Same for me. After upgrading to 13.37rc1 started seeing the following message when I tired to launch WinXP in VBox.
Code:
Mar 11 09:40:25 blackflag kernel: [37790.799348] VirtualBox[5916]: segfault at fffffff4 ip b41bf45f sp fffffff4 error 4 in VBoxSharedClipboard.so[b41b8000+b000]
I'm sure which package change is the root cause of the problem, but it was definitely something in the 13.37rc1 update.
Edit: I was able to recompile and load vboxdrv and company just fine. It's just the segfault in VBoxSharedClipboard.so that is causing me problems, but disabling Shared Clipboard for the VM works for now (it will become annoying if the shared clipboard doesn't get fixed).
+1, i have this error on slackware current. It could be fixing by removing Oracle VBOX additional from WinXP Safe Mode. It will be worked without Oracle Guest Additional.
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097
Original Poster
Rep:
OK. While this has never been a problem in the past, apparently, with the new kernel, DKMS has to be installed.
I couldn't find DKMS on OSU in Slackware64 'current' or Slackware64 13.1, but googled around and found it on an Australian site.
I installed the package, re-installed VB, re-booted, and, voilą, VB now works. Well, everything, but the principal reason I run Xp in VB, my HP scanner. I'll have to re-install the software and see if that fixes the problem. However, the HP printer does work, so who knows.
Thanks to everyone for their replies and suggestions.
Last edited by cwizardone; 03-12-2011 at 10:22 AM.
Same for me. After upgrading to 13.37rc1 started seeing the following message when I tired to launch WinXP in VBox.
Code:
Mar 11 09:40:25 blackflag kernel: [37790.799348] VirtualBox[5916]: segfault at fffffff4 ip b41bf45f sp fffffff4 error 4 in VBoxSharedClipboard.so[b41b8000+b000]
I'm sure which package change is the root cause of the problem, but it was definitely something in the 13.37rc1 update.
It could have been the libXt upgrade, being this the only dependency library that's been upgrades in 13.37. Probably Vbox would just need to be recompiled, if we had the sources =D
It should be libXt that caused this problem. After libXt upgrade, this problem has been solved here. It has nothing to do with the kernel, because I am still using 2.6.35.7-smp
I am not having this problem with Shared Clipboard.
I am using Slackware64-current, updated to latest update. Of course AlienBOB's multilib is installed. VirtualBox 4.0.4r70112 w/extension pack installed.
It may only affect Slackware-current/13.37rc1 not Slackware64. I haven't upgraded my Slackware64 system yet to test it.
It should be libXt that caused this problem. After libXt upgrade, this problem has been solved here. It has nothing to do with the kernel, because I am still using 2.6.35.7-smp
Distribution: Slackware64-current with "True Multilib" and KDE4Town.
Posts: 9,097
Original Poster
Rep:
Quote:
Originally Posted by BroX
Wouldn't it be good to modify the thread title since DKMS (which I thought was a Debian thing) is not required to run virtualbox in Slackware?
Just my 2 cents.
It is, apparently, not required to run VB in Slackware, but it is required to install the VB kernel module.
Here, per the VB docs, pages 29-30:
Quote:
2.3.2 The VirtualBox kernel module
VirtualBox uses a special kernel module to perform physical memory allocation and to gain
control of the processor for guest system execution. Without this kernel module, you will still
be able to work with virtual machines in the configuration interface, but you will not be able to
start any virtual machines.
The VirtualBox kernel module is automatically installed on your system when you install
VirtualBox. To maintain it with future kernel updates, for recent Linux distributions – for ex-
ample Fedora Core 5 and later, Ubuntu 7.10 (Gutsy) and later and Mandriva 2007.1 and later –,
generally we recommend installing Dynamic Kernel Module Support (DKMS)1 . This framework
helps to build kernel modules and to deal with kernel upgrades.
If DKMS is not already installed, execute one of the following:
• On an Ubuntu system:
sudo apt-get install dkms
• On a Fedora system:
(Page 30)
yum install dkms
• On a Mandriva system:
urpmi dkms
If DKMS is available and installed, the VirtualBox kernel module should always work automat-
ically, and it will be automatically rebuilt if your host kernel is updated.
Otherwise, there are only two situations in which you will need to worry about the kernel
module:
1. The original installation fails. This probably means that your Linux system is not prepared
for building external kernel modules.
Most Linux distributions can be set up simply by installing the right packages - normally,
these will be the GNU compiler (GCC), GNU Make (make) and packages containing header
files for your kernel - and making sure that all system updates are installed and that the
system is running the most up-to-date kernel included in the distribution. The version
numbers of the header file packages must be the same as that of the kernel you are using.
• With Debian and Ubuntu releases, you must install the right version of the
linux-headers and if it exists the linux-kbuild package. Current Ubuntu releases
should have the right packages installed by default.
• In even older Debian and Ubuntu releases, you must install the right version of the
kernel-headers package.
• On Fedora and Redhat systems, the package is kernel-devel.
• On SUSE and openSUSE Linux, you must install the right versions of the
kernel-source and kernel-syms packages.
• Alternatively, if you have built your own kernel, /usr/src/linux should point to your
kernel sources. If you have not removed the files created during the build process,
then your system will already be set up correctly.
2. The kernel of your Linux host got updated. In that case, the kernel module will need to be
reinstalled by executing (as root):
/etc/init.d/vboxdrv setup
Last edited by cwizardone; 03-13-2011 at 07:01 PM.
It is, apparently, not required to run VB in Slackware, but it is required to install the VB kernel module.
It's just recommended, not required. All it does is recompile the kernel modules whenever you install a new kernel version automatically (fitting in with the philosophy of Ubuntu and Fedora of helping out the normal user and doing things behind your back). All you need to do is run as root '/etc/rc.d/rc.vboxdrv setup' when you have booted up the new kernel. It will compile and load the new modules just fine, and you can run VirtualBox as before.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.