各位大大

Kvm、VMware、Virtualbox、Xen、Qemu 等
回复
头像
cnmew
帖子: 9
注册时间: 2011-05-17 21:52
送出感谢: 0
接收感谢: 0

各位大大

#1

帖子 cnmew » 2011-06-02 17:49

cnmew@mlinux:~$ sudo /etc/init.d/vboxdrv start
* Starting VirtualBox kernel modules
* modprobe vboxdrv failed. Please use 'dmesg' to find out why


:em20
头像
tenzu
论坛版主
帖子: 36913
注册时间: 2008-11-21 20:26
送出感谢: 0
接收感谢: 21 次

Re: 各位大大

#2

帖子 tenzu » 2011-06-02 17:56

Please use 'dmesg' to find out why
头像
pocoyo
论坛版主
帖子: 25878
注册时间: 2008-03-25 15:49
来自: 谁知道?
送出感谢: 5 次
接收感谢: 9 次
联系:

Re: 各位大大

#3

帖子 pocoyo » 2011-06-02 18:06

估计没有装内核头文件包 装vbox的时候 没有正确生成vboxdrv模块
sudo apt-get install linux-headers-`uname -r`
再重装一下vbox看看。
头像
cnmew
帖子: 9
注册时间: 2011-05-17 21:52
送出感谢: 0
接收感谢: 0

Re: 各位大大

#4

帖子 cnmew » 2011-06-02 18:11

代码: 全选

[color=#00FF00]cnmew@mlinux:~$ sudo /etc/init.d/vboxdrv setup
[sudo] password for cnmew: 
 * Stopping VirtualBox kernel modules                                    [ OK ] 
 * Uninstalling old VirtualBox DKMS kernel modules                       [ OK ] 
 * Trying to register the VirtualBox kernel modules using DKMS                  
Error! Bad return status for module build on kernel: 2.6.38-8-generic (i686)
Consult the make.log in the build directory
/var/lib/dkms/vboxhost/4.0.8/build/ for more information.

 * Failed, trying without DKMS
 * Recompiling VirtualBox kernel modules                                       
 * Look at /var/log/vbox-install.log to find out what went wrong[/color]
make.log

代码: 全选

DKMS make.log for vboxhost-4.0.8 for kernel 2.6.38-8-generic (i686)
2011年 06月 02日 星期四 18:02:53 CST
make:进入目录'/usr/src/linux-headers-2.6.38-8-generic'
  LD      /var/lib/dkms/vboxhost/4.0.8/build/built-in.o
  LD      /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/built-in.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/linux/SUPDrv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/SUPDrv.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/SUPDrvSem.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/alloc-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/initterm-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/memobj-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/mpnotification-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/powernotification-r0drv.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/assert-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/alloc-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/initterm-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/memobj-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/memuserkernel-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/mp-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/mpnotification-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/process-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/semevent-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/semeventmulti-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/semfastmutex-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/semmutex-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/spinlock-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/thread-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/thread2-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/time-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/timer-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/generic/semspinmutex-r0drv-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/alloc/alloc.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/checksum/crc32.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/checksum/ipv4.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/checksum/ipv6.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/err/RTErrConvertFromErrno.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/err/RTErrConvertToErrno.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/log/log.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/log/logellipsis.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/log/logrel.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/log/logrelellipsis.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/log/logcom.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/log/logformat.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg1Weak.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg2.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg2Add.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg2AddWeak.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg2AddWeakV.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg2Weak.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/RTAssertMsg2WeakV.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/assert.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/handletable.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/misc/handletablectx.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/string/RTStrCopyP.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/string/strformat.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/string/strformatrt.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/string/strformattype.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/string/strprintf.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/string/strtonum.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/common/time/time.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/r0drv/linux/RTLogWriteDebugger-r0drv-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTAssertShouldPanic-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTLogWriteStdErr-stub-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTLogWriteStdOut-stub-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTLogWriteUser-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTMpGetArraySize-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTSemEventWait-2-ex-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTSemEventWaitNoResume-2-ex-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTSemEventMultiWait-2-ex-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTSemEventMultiWaitNoResume-2-ex-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/RTTimerCreate-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/mppresent-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/generic/uuid-generic.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/VBox/log-vbox.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/math/gcc/divdi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/math/gcc/moddi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/math/gcc/qdivrem.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/math/gcc/udivdi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/math/gcc/umoddi3.o
  LD [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/vboxdrv.o
  LD      /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/built-in.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/linux/VBoxNetAdp-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/VBoxNetAdp.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/math/gcc/divdi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/math/gcc/moddi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/math/gcc/qdivrem.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/math/gcc/udivdi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/math/gcc/umoddi3.o
  LD [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetadp/vboxnetadp.o
  LD      /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/built-in.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/linux/VBoxNetFlt-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/VBoxNetFlt.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/SUPR0IdcClient.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/SUPR0IdcClientComponent.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/linux/SUPR0IdcClient-linux.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/math/gcc/divdi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/math/gcc/moddi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/math/gcc/qdivrem.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/math/gcc/udivdi3.o
  CC [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/math/gcc/umoddi3.o
  LD [M]  /var/lib/dkms/vboxhost/4.0.8/build/vboxnetflt/vboxnetflt.o
  Building modules, stage 2.
  MODPOST 3 modules
  CC      /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/vboxdrv.mod.o
In file included from /var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/vboxdrv.mod.c:2:0:
include/linux/vermagic.h:1:34: error: include/generated/utsrelease.h: 输入/输出错误
/var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/vboxdrv.mod.c:5:1: error: expected ‘,’ or ‘;’ before ‘UTS_RELEASE’
make[1]: *** [/var/lib/dkms/vboxhost/4.0.8/build/vboxdrv/vboxdrv.mod.o] 错误 1
make: *** [modules] 错误 2
make:离开目录“/usr/src/linux-headers-2.6.38-8-generic”
回复

回到 “虚拟机和虚拟化”