安装 VirtualBox 来宾添加时构建主来宾添加模块时出错

Pra*_*ati 35 virtualbox guest-additions

我已经使用 VirtualBox 在 Ubuntu 12.04 主机上安装了 Ubuntu 12.10 Guest。一切都来自存储库,没有直接安装。当我安装来宾添加时,控制台中显示以下错误。在运行命令之前,我在来宾中映射了 VBoxGuestAdditions.iso。

我能得到的最接近的是这篇文章,它说要安装最新版本的 VirtualBox(不是存储库中的那个)。有没有替代解决方案?

sudo ./VBoxLinuxAdditions.run

Verifying archive integrity... All good.  
Uncompressing VirtualBox 4.1.12 Guest Additions for Linux.........  
VirtualBox Guest Additions installer  
Removing installed version 4.1.12 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  
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 ...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.
Run Code Online (Sandbox Code Playgroud)

Nic*_*Tux 29

对于 VirtualBox 版本 4.2.0 。甲骨文的版本。

安装软件包virtualbox-guest-x11,你会没事的。

在此处输入图片说明

从终端(虚拟系统)

sudo apt-get install virtualbox-guest-x11
Run Code Online (Sandbox Code Playgroud)

重新启动您的虚拟系统。


小智 14

即使安装了“完整的通用 Linux 内核和头文件”(Ubuntu 12.10 在 Windows Server 2003/Q6600 上的 VirtualBox 下运行),我还是收到了可怕的“找不到当前正在运行的内核的头文件”。所以我检查了这个页面......

为了清楚起见,您复制粘贴者的精确命令(其中包括我,因此我发现需要进行一些澄清)是:

sudo apt-get install build-essential linux-headers-`uname -r` dkms
Run Code Online (Sandbox Code Playgroud)

这进一步意味着在“设备”下首先将“共享剪贴板”打开为“双向”(为了便于使用)

然后打开一个终端窗口(点击顶部的“Dash”按钮,在搜索框中输入“终端”,点击终端图标打开同一个)

然后通过在终端窗口中右键单击将上述 sudo apt-get 命令复制/粘贴到终端窗口中

然后在提示时输入您的 root/admin 密码

然后通过 VirtualBox 设备/安装来宾添加

而且,与上述顺序无关,但仍是关于访客添加的主题,最新/最好的始终可以从以下位置下载/安装为 CD

http://download.virtualbox.org/virtualbox/

Ubuntu 12.10 的附加信息,因为我后来发现我必须

  1. apt-get purge xserver-xorg-video-vmware

  2. 从 4.6.2 .iso 重新安装来宾添加(可从上面的 URL 获得)

  3. 在 /etc/modules 中添加“vboxvideo”(我

    sudo gedit /etc/modules
    
    Run Code Online (Sandbox Code Playgroud)

    但可以

    sudo bash -c 'echo vboxvideo >> /etc/modules' 
    
    Run Code Online (Sandbox Code Playgroud)

    )

  4. 停止虚拟机

  5. 设置/显示/启用 3D 加速

以获得更好的性能。现在我得到:

Not software rendered:    yes
Not blacklisted:          yes
GLX fbconfig:             yes
GLX texture from pixmap:  yes
GL npot or rect textures: yes
GL vertex program:        yes
GL fragment program:      yes
GL vertex buffer object:  yes
GL framebuffer object:    yes
GL version is 1.4+:       yes
Run Code Online (Sandbox Code Playgroud)

以及来自命令的与台面表相关的一些不那么令人愉快的 OpenGL 警告

/usr/lib/nux/unity_support_test -p
Run Code Online (Sandbox Code Playgroud)


小智 6

  1. 启动终端并输入:

    sudo apt-get install build-essential linux-headers-`uname -r` dkms
    
    Run Code Online (Sandbox Code Playgroud)
  2. 然后从设备重新安装VirtualBox Guest Addition ?安装来宾添加

在 Windows 7 作为主机与 VirtualBox 2.2.4 进行测试


归档时间:

查看次数:

87470 次

最近记录:

7 年,6 月 前