红联Linux门户
Linux帮助

VirtualBox 求助。

发布时间:2012-11-24 19:54:06来源:红联作者:lucas.w
安装好VirtualBox 之后, 运行报错 说需要DKMS 以及运行vboxdrv setup

安装dkms dkms-2.2.0.3-1.noarch
运行vboxdrv setup 报错 求解


我到/lib/modules/2.6.32-279.el6.i686 这下面看了 有个build source 但是好像是空 的 怎么回事


[root@lucas Desktop]# /etc/init.d/vboxdrv setup
Stopping VirtualBox kernel modules [ OK ]
Uninstalling old VirtualBox DKMS kernel modules [ OK ]
Trying to register the VirtualBox kernel modules using DKMSError! echo
Your kernel headers for kernel 2.6.32-279.el6.i686 cannot be found at
/lib/modules/2.6.32-279.el6.i686/build or /lib/modules/2.6.32-279.el6.i686/source.
[FAILED]
(Failed, trying without DKMS)
Recompiling VirtualBox kernel modules [FAILED]
(Look at /var/log/vbox-install.log to find out what went wrong)
[root@lucas Desktop]#


各位大大请帮助。。。。多谢
文章评论

共有 10 条评论

  1. sxmchj 于 2012-12-02 17:07:39发表:

    感谢

  2. sfy0512141 于 2012-11-28 16:04:49发表:

    感谢感谢,哈哈

  3. sfy0512141 于 2012-11-28 15:58:23发表:

    不懂,学习中

  4. zjan999 于 2012-11-26 19:33:41发表:

    最好的方法,安装KVM
    我也是安装VirtualBox后运行不正常,重新安装KVM的,嘿嘿,加了根2G的条子后,运行不错

  5. lucas.w 于 2012-11-25 11:36:11发表:

    都装过了呀。。

    [root@lucas Desktop]# rpm -qa|grep gcc
    gcc-objc-4.4.6-4.el6.i686
    gcc-4.4.6-4.el6.i686
    gcc-gnat-4.4.6-4.el6.i686
    gcc-c++-4.4.6-4.el6.i686
    gcc-java-4.4.6-4.el6.i686
    libgcc-4.4.6-4.el6.i686
    gcc-objc++-4.4.6-4.el6.i686
    gcc-gfortran-4.4.6-4.el6.i686
    [root@lucas Desktop]# rpm -qa|grep kernel-devel
    kernel-devel-2.6.32-279.14.1.el6.i686
    [root@lucas Desktop]# uname -a
    Linux lucas 2.6.32-279.el6.i686 #1 SMP Wed Jun 13 18:23:32 EDT 2012 i686 i686 i386 GNU/Linux
    [root@lucas Desktop]# /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules [ OK ]
    Trying to register the VirtualBox kernel modules using DKMSError! echo
    Your kernel headers for kernel 2.6.32-279.el6.i686 cannot be found at
    /lib/modules/2.6.32-279.el6.i686/build or /lib/modules/2.6.32-279.el6.i686/source.
    [FAILED]
    (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules [FAILED]
    (Look at /var/log/vbox-install.log to find out what went wrong)
    [root@lucas Desktop]#

  6. Promises 于 2012-11-25 08:49:30发表:

    路过

  7. HONWEA 于 2012-11-24 23:31:19发表:

    #yum install kernel-devel
    #yum install gcc

  8. alick 于 2012-11-24 23:12:35发表:

    你没有安装对应 kernel 版本的 kernel-headers 软件包吧?

  9. lucas.w 于 2012-11-24 21:39:51发表:

    [i=s] 本帖最后由 lucas.w 于 2012-11-24 22:01 编辑 [/i]

    我就是按照上面的步骤安装的。。
    group 中有个vboxusers
    而且已经将root 帐号加入这个组中了。

    usermod -G vboxusers root

    [root@lucas Downloads]# cat /etc/group|grep vboxusers
    vboxusers:x:500:root


    我加了 还是报错呢。。


    [root@lucas Downloads]# usermod -G vboxusers root
    [root@lucas Downloads]#
    [root@lucas Downloads]#
    [root@lucas Downloads]#
    [root@lucas Downloads]# /etc/init.d/vboxdrv setup
    Stopping VirtualBox kernel modules [ OK ]
    Uninstalling old VirtualBox DKMS kernel modules [ OK ]
    Trying to register the VirtualBox kernel modules using DKMSError! echo
    Your kernel headers for kernel 2.6.32-279.el6.i686 cannot be found at
    /lib/modules/2.6.32-279.el6.i686/build or /lib/modules/2.6.32-279.el6.i686/source.
    [FAILED]
    (Failed, trying without DKMS)
    Recompiling VirtualBox kernel modules [FAILED]
    (Look at /var/log/vbox-install.log to find out what went wrong)
    [root@lucas Downloads]#

  10. wangzf137 于 2012-11-24 21:20:51发表:

    先安装kernel-devel和dkms包,然后再安装virtualbox.安装完成后将自己加入virtbox组就行了