【问题标题】:Cannot install Guest Additions on Kali 2.0无法在 Kali 2.0 上安装 Guest Additions
【发布时间】:2015-11-10 13:06:33
【问题描述】:

我正在安装新的 Kali (2.0),但无法成功安装来宾添加。

我向你解释我所做的所有步骤:

首先我确保我有正确的存储库(我认为这些是正确的):

deb http://http.kali.org/kali sana main non-free contrib
deb http://security.kali.org/kali-security sana/updates main contrib non-free
deb-src http://http.kali.org/kali sana main non-free contrib
deb-src http://security.kali.org/kali-security sana/updates main contrib non-free

我已经更新升级了。

然后我已经安装了 linux-headers(也许错误在这里,但我不这么认为)

apt-get install linux-headers-$(uname -r)
apt-get install dkms linux-source linux-headers-$(uname -r)

然后我安装了 CD,给它 755 权限并执行它。这是我得到的:

Building the main Guest Additions module ...done.
Building the shared folder support module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)
Doing non-kernel setup of the Guest Additions ...done.
Installing the Window System drivers
Warning: unknown version of the X Window System installed.  Not installing
X Window System drivers.
 ...done.
Installing graphics libraries and desktop services components ...done.

我已经安装了以下内容:

apt-get install virtualbox-guest-x11
apt-get install open-vm-tools

但我仍然得到相同的结果。

更多信息,这是我的内核:

root@kali:~# uname -r
4.0.0-kali1-686-pae

好像我已经安装了模块,但它不起作用:

root@kali:~# lsmod | grep vbox
vboxguest             180224  5

我的 virtualbox 版本是 4.3.20 任何的想法?非常感谢。

/var/log/vboxadd-install.log

In file included from /tmp/vbox.0/dirops.c:19:0:
/tmp/vbox.0/dirops.c: In function ‘sf_getdent’:
/tmp/vbox.0/dirops.c:129:29: error: ‘struct file’ has no member named ‘f_dentry’
     sf_g = GET_GLOB_INFO(dir->f_dentry->d_inode->i_sb);
                             ^
/tmp/vbox.0/vfsmod.h:144:60: note: in definition of macro ‘GET_GLOB_INFO’
 # define GET_GLOB_INFO(sb)       ((struct sf_glob_info *) (sb)->s_fs_info)
                                                            ^
/tmp/vbox.0/dirops.c:135:16: error: ‘struct file’ has no member named ‘f_dentry’
     inode = dir->f_dentry->d_inode;
                ^
/usr/src/linux-headers-4.0.0-kali1-common/scripts/Makefile.build:263: recipe for target '/tmp/vbox.0/dirops.o' failed
make[4]: *** [/tmp/vbox.0/dirops.o] Error 1
/usr/src/linux-headers-4.0.0-kali1-common/Makefile:1407: recipe for target '_module_/tmp/vbox.0' failed
make[3]: *** [_module_/tmp/vbox.0] Error 2
Makefile:145: recipe for target 'sub-make' failed
make[2]: *** [sub-make] Error 2
Makefile:8: recipe for target 'all' failed
make[1]: *** [all] Error 2
/tmp/vbox.0/Makefile.include.footer:79: recipe for target 'vboxsf' failed
make: *** [vboxsf] Error 2
Creating user for the Guest Additions.
Creating udev rule for the Guest Additions kernel module.

【问题讨论】:

  • Look at /var/log/vboxadd-install.log to find out what went wrong?
  • 是的,抱歉,我编辑了它

标签: linux virtualbox kernel-module


【解决方案1】:

在搜索引擎中输入“no member named 'f_dentry'”表明这是内核 3.19 的 known issuestruct file 引入了重大更改,这使得(较旧的)VirtualBox 4.3.20 代码无法编译。

关于Linux kernel maintainers' policy on such breaking changes 咬我的舌头,恐怕您只需要弄清楚降级内核或升级您的 VirtualBox 是否是解决您问题的“正确”解决方案。

【讨论】:

  • 比起目前可用的替代方案,我更喜欢 Linux,但无论是作为用户还是作为软件架构师,这个特殊的问题已经让我不止一次陷入困境。
  • 你推荐给我什么 virtualbox 版本??谢谢你
  • @aDoN:我自己不使用 VirtualBox,也不知道您的要求。也许你最好在 VirtualBox 论坛(我的第一个链接)中提出这样的问题,它们在 SO 上并不完全是主题。
猜你喜欢
  • 1970-01-01
  • 2015-09-27
  • 2019-08-13
  • 2017-03-14
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多