我已经在我的 Ubuntu 11.04 上安装了 Virtualbox 4.0.4-OSE。我想安装 Virtualbox 的来宾添加。但我收到了这个错误:
Failed to open the CD/DVD image /home/bigbang/.VirtualBox/VBoxGuestAdditions_4.0.4.iso.
The medium '/home/bigbang/.VirtualBox/VBoxGuestAdditions_4.0.4.iso' can't be used as the requested device type.
Run Code Online (Sandbox Code Playgroud)
我安装它的步骤是:
Devices > Install Guest Additions ,然后单击 yes 从 Internet 下载所需的 .iso 文件,然后在下载文件后单击 mount 按钮,然后它给了我错误。
编辑:我的主机是 Ubuntu,来宾操作系统是 XP。
我从 ubuntu 软件中心下载了 VirtualBox 并在那里安装了Windows XP 32 位。现在,当我尝试安装来宾添加时,它说缺少来宾添加并要求下载它。当我按“下载”时,它说由于缺少链接而无法下载。
在大多数最新的 Ubuntu 版本中,当我选择该选项时,我安装在 Virtual Box 中的 VM 中,Insert Guest Additions CD image...
我很快就会被问到是否希望在那里运行什么,当我选择这样做时,会打开一个终端窗口安装它。
但是在 Lubuntu 上不是这样,它只是问我是否想用文件管理器打开它,然后即使那里有可执行文件,执行它们似乎也没有多大好处,那么怎么办我将它安装在 Lubuntu 上,为什么它不像其他 Ubuntu 版本那样运行并立即为我运行它?
我已经在 Lubuntu 14.04.4 LTS 和 15.10 中尝试过这个(尽管我目前在 VM 中有 15.10)。我正在运行最新版本的 Virtual Box。
virtualbox lubuntu virtualization executable guest-additions
首先,当我完成 ubuntu-server 12.04 的安装后,我做了一个快照,然后我像这样更新了我的服务器
sudo apt-get update && sudo apt-get upgrade
Run Code Online (Sandbox Code Playgroud)
我认为通过 ubuntu-repository 添加来宾是有问题的。因为在我重新启动后,我在 virtualbox-ubuntu-server-12.04 窗口中看不到。它只是黑色的。我正在关注本教程,它说我需要更新我的服务器。
这意味着我将从 ubuntu-repository 获取 virtualbox 来宾添加。
如何在不从 Ubuntu 存储库安装来宾添加的情况下更新升级我的 Ubuntu 服务器 12.04?
我在 VirtualBox 中安装了 Lubuntu 作为来宾操作系统,并尝试像在 Windows 中一样从“设备->插入来宾添加 CD 映像...(主机 + D)”安装来宾添加,然后运行该autorun.sh
文件。
但是,这失败了,出现了以下错误:
The make utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
The gcc utility was not found. If the following module compilation fails then
this could be the reason and you should try installing it.
Building the main Guest Additions module ...fail!
Run Code Online (Sandbox Code Playgroud) 我正在尝试配置虚拟机,以便可以在主机和来宾操作系统之间共享文件夹,但是当我尝试安装来宾添加时,我收到以下消息:
我已经完成了以下内容中描述的所有操作: VirtualBox Guest Additions won't install on Ubuntu Server 12.04
但它仍然不起作用。
[解决方案] 正如评论中所说,我所要做的就是安装最新版本。之后,它完美地工作了。
我在来宾机(均为 Ubuntu)上从主机运行命令:
VBoxManage guestcontrol Ubuntu1 run --exe "script.sh" --username xx --password xx --wait-stdout
Run Code Online (Sandbox Code Playgroud)
来宾计算机上的 shell 脚本如下
#!/bin/bash
echo $1
Run Code Online (Sandbox Code Playgroud)
执行shell脚本时如何传递参数1?
我认为它应该作为
run --exe "script.sh arg1"
Run Code Online (Sandbox Code Playgroud)
但事实并非如此。