在 Virtualbox 4.2.10 中安装 Xubuntu 13.10 客户操作系统的客户添加项时遇到问题

在 Virtualbox 4.2.10 中安装 Xubuntu 13.10 客户操作系统的客户添加项时遇到问题

我使用 Ubuntu 13.04 64 位作为我的主持人运行 Virtual Box 4.2.10 的操作系统。当我告诉 virtualbox 安装 guest additions(CTRL+D)、在 guest OS 中安装卷并使用 root 运行 VBoxLinuxAdditions.run 文件时,我收到此消息:

sudo ./VBoxLinuxAdditions.run

它启动然后出现以下错误消息:

Verifying archive integrity... All good.
Uncompressing VirtualBox 4.2.10 Guest Additions for Linux..........
VirtualBox Guest Additions installer
Removing existing VirtualBox non-DKMS kernel modules ...done.
Building the VirtualBox Guest Additions kernel modules
The headers for the current running kernel were not found. If the following
module compilation fails then this could be the reason.

    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.
    Installing modules ...done.
    Installing graphics libraries and desktop services components ...done.
    allusers@allusers-VirtualBox:/media/allusers/VBOXADDITIONS_4.2.10_84104$ 

我关注了VirtualBox 官方手册:安装 Linux 客户端附加组件 我使用了一些其他命令,例如:

sudo apt-get install build-essential linux-headers-$(uname -r) dkms

和:

sudo apt-get install virtualbox-guest-x11

执行完这些命令后我重启了系统,但仍然无法正常工作。系统仍然提示缺少内核模块,窗口不流畅。知道问题出在哪里吗?以下是日志文件vboxadd-安装日志

答案1

我在 Debian Wheezy 主机上遇到了同样的问题,运行 VirtualBox 4.1.8(以 Kubuntu 13.10 作为客户机)。

经过一番挖掘,似乎在最近的 13.10 衍生 Linux 发行版(例如您的:Xubuntu 13.10)上安装客户机添加项需要在主机上运行至少 4.3 版本的 VirtualBox。

要将 VirtualBox 版本更新至 4.3:

将官方存储库添加到您的 /etc/apt/sources.list 文件中:

deb http://download.virtualbox.org/virtualbox/debian raring contrib

添加官方 Oracle 存储库密钥并更新您的存储库列表:

wget -q http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc -O- | sudo apt-key add -
sudo apt-get update

选择任何正在运行的 virtualbox 守护进程的 id:

ps -aux | grep virtualbox

并杀死他们。

安装新版本的VirtualBox(它会自动删除以前的版本)

sudo apt-get install virtualbox-4.3

从 VirtualBox 界面启动您的客户机,并在您的 Linux 13.10 客户机上安装 4.3 .iso 中的 Guest Additions,方法与您之前所做的一样(sudo./VBoxLinuxAdditions.run).内核模块会找到合适的linux头文件进行编译。

希望这可以帮助。

有关信息,请参阅VirtualBox 通用 Linux 发行版安装教程

相关内容