您尚未登录。

#1 2017-02-14 09:51:10

yllr
会员
注册时间: 2015-11-04
帖子: 60

【已解决】virtualbox下安装arch,增强工具安装出错

搜索了两天了,没找到解决问题的办法。请高手帮忙解答。

问题现象:win7下用vbox安装了arch,用的xfce4桌面,安装源里的virtualbox-guest-utils不起作用,就安装vbox自带的增强工具。出现错误提示如下:

➜  cd sudo sh VBoxLinuxAdditions.run
Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.14 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Removing installed version 5.1.14 of VirtualBox Guest Additions...
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Building Guest Additions kernel modules.
Failed to set up service vboxadd, please check the log file
/var/log/VBoxGuestAdditions.log for details.

然后查看/var/log/VBoxGuestAdditions.log内容如下:

➜  cd vim /var/log/VBoxGuestAdditions.log
  5
  4 Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd.service → /usr/l    ib/systemd/system/vboxadd.service.
  3 vboxadd.sh: failed: Look at /var/log/vboxadd-install.log to find out what went wrong    .
  2 vboxadd.sh: failed: Please check that you have gcc, make, the header files for your     Linux kernel and possibly perl installed..
  1 Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-service.service     → /usr/lib/systemd/system/vboxadd-service.service.
6   Created symlink /etc/systemd/system/multi-user.target.wants/vboxadd-x11.service → /u    sr/lib/systemd/system/vboxadd-x11.service.

又查看/var/log/vboxadd-install.log 内容如下:

➜  cd vim /var/log/vboxadd-install.log
  2 /tmp/vbox.0/Makefile.include.header:115: *** Error: unable to find the include direc    tory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again    .  Stop.
  1 Creating user for the Guest Additions.
3   Creating udev rule for the Guest Additions kernel module.

我倒是baidu到了这个问题的解决办法,主要是因为缺少内核源文件造成的,但是都是centos下的解决办法,解决办法如下:

#yum instal gcc.i686 kernel.i686 kernel-devel.i686

但是在arch下面不知道怎么安装内核,请高手指点解决办法,谢谢了!

最近编辑记录 yllr (2017-02-14 11:02:19)

离线

#2 2017-02-14 09:58:12

alexxey
会员
注册时间: 2016-12-28
帖子: 73

Re: 【已解决】virtualbox下安装arch,增强工具安装出错

离线

#3 2017-02-14 10:41:15

依云
会员
所在地: a.k.a. 百合仙子
注册时间: 2011-08-21
帖子: 8,384
个人网站

Re: 【已解决】virtualbox下安装arch,增强工具安装出错

  2 /tmp/vbox.0/Makefile.include.header:115: *** Error: unable to find the include direc    tory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again    .  Stop.

你缺的不是内核,是编译内核模块用的头文件,Arch 下装 linux-headers 包就可以了。
尽量用 Google、使用独立博客或者英文资料吧,墙内好多中文资料都是一知半解还互相抄来抄去的,很容易误导人。

离线

#4 2017-02-14 11:01:50

yllr
会员
注册时间: 2015-11-04
帖子: 60

Re: 【已解决】virtualbox下安装arch,增强工具安装出错


安装了linux-headers包,顺利安装,谢谢了!!

离线

#5 2017-02-14 11:02:48

yllr
会员
注册时间: 2015-11-04
帖子: 60

Re: 【已解决】virtualbox下安装arch,增强工具安装出错

依云 说:
  2 /tmp/vbox.0/Makefile.include.header:115: *** Error: unable to find the include direc    tory for your current Linux kernel. Specify KERN_INCL=<directory> and run Make again    .  Stop.

你缺的不是内核,是编译内核模块用的头文件,Arch 下装 linux-headers 包就可以了。
尽量用 Google、使用独立博客或者英文资料吧,墙内好多中文资料都是一知半解还互相抄来抄去的,很容易误导人。


说的是啊,感谢解答!

离线

页脚