OpenSUSE 12.3 solves an error when installing Virtualbox. the following error occurs:
Sincerefly @ linux-eq1f :~ /Downloads/iso $ sudo rpm-Uivh dkms-2.2.0.3-1.noarch.rpm
Root's password:
Preparing... ################################# [100%]
Package dkms-2.2.0.3-1.noarch is already installed
Sincerefly @ linux-eq1f :~ /Downloads/iso $ 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 DKMSError! Echo
Your kernel headers for kernel 3.7.10-1.16-desktop cannot be found
/Lib/modules/3.7.10-1.16-desktop/build or/lib/modules/3.7.10-1.16-desktop/source.
Failed
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules failed
I don't know what the reason is. I don't know why the virtual machine doesn't work. I learned CentOS, and I didn't know why the experiment was not safe in the real system. But fortunately, there was Baidu. Is there a problem to be solved?
Found
Sudo apt-get install dkms build-essential linux-headers-$ (uname-r)
Sudo/etc/init. d/vboxdrv setup
It's just a debian command (not sure)
Later, the group prompts and helps solve the problem.
The reason is that the corresponding kernel package is missing. Although I have run the kernel-devel installation command before, the kernel-devel corresponding to the uek kernel is not installed, the correct method is kernel-uek-devel.
The "kernel-devel installation command" misled me for half a day and suddenly woke up as a software package.
This is easy to do. search by zypper search kernel-devel.
After installation, run
Successful!
At this time, my VB will be able to run.