总结

总结

我使用远程机器 ubuntu 12.04(仅控制台)

分销商 ID:Ubuntu 描述:Ubuntu 12.04.4 LTS

我有一些奇怪的内核 uname -a Linux 2.6.38.2-grsec-xxxx-grs-ipv6-64 #1 SMP Fri Apr 15 17:44:15 UTC 2011 x86_64 x86_64 x86_64 GNU/Linux

-也许 beeter 正在切换到其他内核?怎么办?

(我尝试在此服务器上安装虚拟机)

apt-get 安装 virtualbox

Konfigurowanie virtualbox (4.1.12-dfsg-2ubuntu0.5) ...
 * Stopping VirtualBox kernel modules                                                                             Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
                                                                                                           [ OK ]
 * Starting VirtualBox kernel modules                                                                             Opening /proc/modules: No such file or directory
 * No suitable module for running kernel found
                                                                                                           [fail]


Loading new virtualbox-4.1.12 DKMS files...                                                                       
First Installation: checking all kernels...                                                                        
dpkg: ostrzeżenie: wersja "*-*" ma złą składnię: version number does not start with digit                          
It is likely that 2.6.38.2-grsec-xxxx-grs-ipv6-64 belongs to a chroot's host                                       
Building initial module for 2.6.38-10-generic                                                                       
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-10-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-10-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-10-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-10-generic/updates/dkms/

depmod....

DKMS: install completed.
Building initial module for 2.6.38-11-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-11-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-11-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-11-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-11-generic/updates/dkms/

depmod....

DKMS: install completed.
Building initial module for 2.6.38-14-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-14-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-14-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-14-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-14-generic/updates/dkms/

depmod....

DKMS: install completed.
Building initial module for 2.6.38-8-generic
Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-8-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-8-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-8-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/2.6.38-8-generic/updates/dkms/

depmod....

DKMS: install completed.
Building initial module for 3.2.0-60-generic

Done.

vboxdrv:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-60-generic/updates/dkms/

vboxnetadp.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-60-generic/updates/dkms/

vboxnetflt.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-60-generic/updates/dkms/

vboxpci.ko:
Running module version sanity check.
 - Original module
   - No original module exists within this kernel
 - Installation
   - Installing to /lib/modules/3.2.0-60-generic/updates/dkms/

depmod....

DKMS: install completed.
 * Stopping VirtualBox kernel modules                                                                             Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
Opening /proc/modules: No such file or directory
                                                                                                           [ OK ]
 * Starting VirtualBox kernel modules                                                                             Opening /proc/modules: No such file or directory
 * No suitable module for running kernel found
                                                                                                           [fail]
invoke-rc.d: initscript virtualbox, action "restart" failed.
Konfigurowanie virtualbox-qt (4.1.12-dfsg-2ubuntu0.5) ...

我找到了一些信息,我必须安装内核头文件,但是

sudo apt-get install linux-headers-$(uname -r) 
Czytanie list pakietów... Gotowe
Budowanie drzewa zależności       
Odczyt informacji o stanie... Gotowe
E: Nie udało się odnaleźć pakietu linux-headers-2.6.38.2-grsec-xxxx-grs-ipv6-64

(未找到)

我找到了安装内核头文件的信息,但是:

sudo apt-get install linux-headers-$(uname -r) 
Reading package lists... Done
Building dependency tree       
Reading state information... Done
E: Unable to locate package linux-headers-2.6.38.2-grsec-xxxx-grs-ipv6-64
E: Couldn't find any package by regex 'linux-headers-2.6.38.2-grsec-xxxx-grs-ipv6-64'

我能做些什么 ?

答案1

升级软件包后,我遇到了同样的错误linux-image。为了构建模块,您需要virtualbox-sourcevirtualbox-dkms软件包。我以virtualbox-dkms软件包结束。

所以我安装了缺失的linux-headers-amd64

$ sudo apt-get install linux-headers-amd64

然后重建virtualbox.ko

$ sudo dpkg-reconfigure --priority low virtualbox-dkms 

并加载模块:

$ sudo service virtualbox start

最后 VirtualBox 能够运行客户机了!

答案2

此外apt-get install virtualbox您还必须运行(以 root 身份), apt-get install virtualbox-source module-assistant m-a prepare m-a a-i virtualbox-source 然后/etc/init.d/virtualbox start才能工作。

通过各种 Google 搜索拼凑起来,并在 Linux Mint 17(Ubuntu 14.04)上为我工作

答案3

以上方法对我都不起作用。实际上我在网上找到的方法也都不起作用……

总结

如果你们有同样的问题,这是我修复它的方法:

# cleanup old stuff    
apt-get autoremove --purge virtualbox virtualbox-dkms virtualbox-qt

# install 
echo "deb http://http.debian.net/debian/ wheezy-backports main contrib" > /etc/apt/sources.list.d/backports.list
apt-get update
apt-get install linux-headers-$(uname -r|sed 's,[^-]*-[^-]*-,,')
apt-get -t wheezy-backports install virtualbox

笔记

安装完成后我有一个有效的 virtualbox 设置即使我在过程中收到了错误消息 =>[FAIL] Starting VirtualBox kernel modules[....] No suitable module for running kernel found ... failed!

所以,当你稍后有线路DKMS: install completed.并且能够运行后,不要担心vboxmanage --version

眼镜

我的 Linux 服务器由

Distributor ID: Debian
Description:    Debian GNU/Linux 7.8 (wheezy)
Release:        7
Codename:       wheezy
Kernel:         3.16.0-0.bpo.4-amd64

相关内容