页次: 1
搜索了两天了,没找到解决问题的办法。请高手帮忙解答。
问题现象: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 /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、使用独立博客或者英文资料吧,墙内好多中文资料都是一知半解还互相抄来抄去的,很容易误导人。
离线
离线
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、使用独立博客或者英文资料吧,墙内好多中文资料都是一知半解还互相抄来抄去的,很容易误导人。
说的是啊,感谢解答!
离线
页次: 1