vbox安装suse 12后安装增强工具

来源:互联网 发布:苹果cydiapp助手源码 编辑:程序博客网 时间:2024/06/10 18:46

在VirtualBox中安装SUSE 12后,分辨率等需要安装增强工具,加载增强工具盘后执行:

# ./VBoxLinuxAdditions.run

Verifying archive integrity... All good.
Uncompressing VirtualBox 5.1.22 Guest Additions for Linux...........
VirtualBox Guest Additions installer
Copying additional installer modules ...
Installing additional modules ...
vboxadd.sh: Starting the VirtualBox Guest Additions.
Failed to set up service vboxadd, please check the log file

/var/log/VBoxGuestAdditions.log for details.


安装失败,根据提示查看日志,可以看出内核文件缺少,在yast2中安装kernel-devel,再次安装再次出错,日志内容变为:

# cat /var/log/VBoxGuestAdditions.log
vboxadd.sh: failed: modprobe vboxguest failed.


执行如下命令:


# modprobe vboxsf
modprobe: ERROR: module 'vboxguest' is unsupported
modprobe: ERROR: Use --allow-unsupported or set allow_unsupported_modules 1 in
modprobe: ERROR: /etc/modprobe.d/10-unsupported-modules.conf
modprobe: ERROR: could not insert 'vboxsf': Operation not permitted

根据提示编辑如下配置文件:


# vi /etc/modprobe.d/10-unsupported-modules.conf


将allow_unsupported_modules的值由0改为1,再次执行安装程序:


./VBoxLinuxAdditions.run


提示成功,注销重新登录,分辨率、共享剪切板和双向拖拽功能都可正常使用。

原创粉丝点击