virtualbox安装不了增强功能(已解决)

其他Linux/Unix/BSD/OSX等发行版讨论
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: virtualbox安装不了增强功能

#16

帖子 人在井天 » 2011-06-19 19:30

tenzu 写了:kernel-header26没装吧
你指的是虚拟机arch,提示找不到.
长头发的和尚
帖子: 12134
注册时间: 2008-01-11 17:02

Re: virtualbox安装不了增强功能

#17

帖子 长头发的和尚 » 2011-06-19 19:31

要不真机安装吧,多看看wiki就行了
你往幸福的方向挥挥手,从此我便追随你永不回头。
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: virtualbox安装不了增强功能

#18

帖子 人在井天 » 2011-06-19 19:36

人在井天 写了:
tenzu 写了:kernel-header26没装吧
你指的是虚拟机arch,提示找不到.

晕,是kernel26-headers

安装之后再装:

代码: 全选

$ sudo ./VBoxLinuxAdditions.run  
Verifying archive integrity... All good.
Uncompressing VirtualBox 4.0.8 Guest Additions for Linux.........
VirtualBox Guest Additions installer
Removing installed version 4.0.8 of VirtualBox Guest Additions...
:: Removing existing VirtualBox DKMS kernel modules                                                                   [DONE] 
:: Removing existing VirtualBox non-DKMS kernel modules                                                               [DONE] 
:: Building the VirtualBox Guest Additions kernel modules                                                             [BUSY] 
:: Building the main Guest Additions module                                                                           [DONE] 
:: Building the shared folder support module                                                                          [DONE] 
:: Building the OpenGL support module                                                                                 [DONE] 
:: Doing non-kernel setup of the Guest Additions                                                                      [DONE] 
:: Starting the VirtualBox Guest Additions                                                                            [DONE] 
:: Installing the Window System drivers                                                                               [BUSY] 
:: Installing X.Org Server 1.10 modules                                                                               [DONE] 
:: Setting up the Window System to use the Guest Additions                                                            [DONE] 
You may need to restart the hal service and the Window System (or just restart
the guest system) to enable the Guest Additions.

:: Installing graphics libraries and desktop services components                                                      [DONE] 

重启电脑之后,终于发现成功啦! :em06
上次由 人在井天 在 2011-06-19 19:43,总共编辑 1 次。
人在井天
帖子: 1081
注册时间: 2009-04-29 21:22

Re: virtualbox安装不了增强功能

#19

帖子 人在井天 » 2011-06-19 19:40

长头发的和尚 写了:要不真机安装吧,多看看wiki就行了
虚拟机都没玩转,不可能真机安装的.
zhkzyth
帖子: 7
注册时间: 2010-09-22 17:03

Re: virtualbox安装不了增强功能(已解决)

#20

帖子 zhkzyth » 2012-12-20 11:33

我也遇到类似的问题了,我的环境如下:

宿主:win7(64位)
vbox版本:4.1.16
挂的ubuntu版本:(用 sudo lsb_release -a 查看)
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 12.04.1 LTS
Release: 12.04
Codename: precise

安装VboxGuesstAddition的时候,死活不行,每次都报下面的错误:

....
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.
...
Installing graphics libraries and desktop services components ...fail.
.....


尝试了楼上的方法,
sudo apt-get install dkms build-essential linux-headers-$(uname -r)
sudo /etc/init.d/vboxdrv setup
发现我这个机子上没有/etc/init.d/vboxdrv 这个文件,后来查了下,有个类似的

代码: 全选

/etc/init.d/vboxadd
,发现两者都是一样的。运行之后,再次跑安装增强功能,就没再报fail的错误了。

但重启虚拟机之后还是不行,发现错误提示里面让我去查一个log文件,具体地址忘了,但里面有这段记录:
“install_x11_startup_app:no script given”
上网goole了下,找到一个解决方法,目测是因为之前安装的遗留问题导致的。

“Before installing the new guest additions version, you need to remove manually 2 symlinks:

代码: 全选

 rm /usr/lib64/VBoxGuestAdditions
 rm /usr/share/VBoxGuestAdditions


原地址:http://gallinar.blogspot.com/2012/07/vi ... grade.html
fordlee
帖子: 1
注册时间: 2017-07-24 13:46
系统: win7

Re: virtualbox安装不了增强功能(已解决)

#21

帖子 fordlee » 2017-07-24 13:51

请问楼主kernel26-headers怎么装上的啊,引用sudo apt-get install dkms build-essential linux-headers-$(uname -r)之后sudo /etc/init.d/vboxdrv setup命令表示找不到文件,怎么解决啊?
v8t4u
帖子: 1
注册时间: 2017-09-04 16:30

Re: virtualbox安装不了增强功能(已解决)

#22

帖子 v8t4u » 2017-09-04 16:34

好像既没有/etc/init.d/vboxdrv
也没有/etc/init.d/vboxadd
init.d目录下只有一个virtualbox-guest-utils

我也有
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
这个问题。。。

要被逼疯了
头像
lilydjwg
论坛版主
帖子: 4248
注册时间: 2009-04-11 23:46
系统: Arch Linux
联系:

Re: virtualbox安装不了增强功能(已解决)

#23

帖子 lilydjwg » 2017-09-04 21:08

v8t4u 写了:好像既没有/etc/init.d/vboxdrv
也没有/etc/init.d/vboxadd
init.d目录下只有一个virtualbox-guest-utils

我也有
Your system does not seem to be set up to build kernel modules.
Look at /var/log/vboxadd-install.log to find out what went wrong.
这个问题。。。

要被逼疯了
旧东西当然没有了。你是不是没安装 linux-headers?

另外让你看日志你就看看呗。
回复