25

我是这个论坛的新手,但我偶尔是 vbox 用户。我有 Windows 7 主机和 ubuntu 9.10 来宾,它们可以在安装 vboxadditions、共享文件夹和一切完美的情况下正常工作。现在对于一些模拟,我需要安装带有 x 窗口的 ubuntu 服务器 10.04。我做了什么,到目前为止一切都很好。

现在我现在遇到的问题是,对于服务器,我似乎无法安装共享文件夹。遵循相同的过程:

-install dkms
-update
-upgrade
- 将 vboxadditions iso 挂载到主机虚拟驱动器中,并将它也挂载到来宾中
-install vboxadditions (sudo sh ./VBoxLinuxAdditions-x86.run) -重新
启动来宾操作系统
- 在下创建 ubuntu_share 文件夹/媒体/ubuntu_share

任何时候我尝试使用以下命令将文件夹 ubuntu_share 挂载到我的驱动器 D (D:/Ubuntu_Share) 上:

 mount -t vboxsf ubuntu_share /media/ubuntu_share

我总是得到:

/sbin/mount.vboxsf mouning failed with error: no such device


locate mount.vboxsf output this:
/opt/VBoxGuestAdditions-3.2.6/lib/VBoxGuestAdditions/mount.vboxsf
/sbin/mount.vboxsf

ubuntu server 10.04有什么问题吗?或者我只是在某处错过了标记?感谢您阅读本文并帮助我。

4

10 回答 10

27

在 Ubuntu 上,即使安装了来宾添加,我仍然无法安装它。这两个命令为我修复了它:

    apt-get install dkms
    /etc/init.d/vboxadd setup

祝你好运。

于 2014-02-13T20:28:25.147 回答
13

我发现内核版本和内核头文件版本不同。我从 synapic 获得了最新的内核和内核头文件并重建了访客添加。工作正常。感谢至少阅读:D

于 2010-10-07T09:46:51.770 回答
5

以下命令对我有用 -

modprobe -a vboxguest vboxsf vboxvideo

我不确定,但我认为这使用 VirtualBox 共享文件夹内核模块来重新检测可用共享。归功于以下链接 -

VirtualBox:mount.vboxsf:安装失败并出现错误:没有这样的设备

于 2015-09-09T10:03:01.520 回答
4

一些重要的细节。在安装 VirtualBox 来宾添加之前,请确保您已完成此操作:

sudo apt-get install make gcc
于 2012-10-15T17:12:28.143 回答
2

我通过从 ubuntu 存储库安装来宾添加解决了这个问题。

于 2011-12-07T14:04:05.927 回答
1

我在 Ubuntu Lucid 上也有同样的情况,我使用了 VirtualBox 4.1.12。

尝试在VirtualBox的添加光盘中找到一个shell脚本,它被称为VBoxLinuxAdditions****.run

我已经通过运行解决了这个问题sudo ./VBoxLinuxAdditions.run

就像詹姆斯·威尔逊所做的那样。

于 2012-04-11T09:27:44.117 回答
1

即使我已经安装了来宾添加,再次安装它(完全相同的版本)修复了它。

于 2013-05-07T21:29:47.920 回答
0

为 OpenGL 试试这个

yum update -y
...
yum install dkms binutils gcc make patch libgomp glibc-headers glibc-devel kernel-headers kernel-devel -y

#export MAKE='/usr/bin/gmake -i'
#./VBoxLinuxAdditions.run
于 2014-01-16T12:45:48.903 回答
0

我正在运行 VirtualBox 5.1.20,并且遇到了类似的问题。这是我找到修复程序的 URL,以及我实施的修复程序:

# https://dsin.wordpress.com/2016/08/17/ubuntu-wrong-fs-type-bad-option-bad-superblock/
if [ "5.1.20" == "${VBOXVER}" ]; then
  rm /sbin/mount.vboxsf
  ln -s /usr/lib/VBoxGuestAdditions/mount.vboxsf /sbin/mount.vboxsf
fi

该链接的内容类似于 /usr/lib/VBoxGuestAdditions/other/mount.vboxsf,而不是我在脚本摘录中的内容。

对于我在 vagrant 中用于添加的构建脚本:

https://github.com/rburkholder/vagrant/blob/master/scripts/additions.sh

似乎是https://www.virtualbox.org/ticket/16670的修复

于 2017-04-25T10:09:48.493 回答
-4

文件夹和共享文件夹不能同名

于 2010-08-23T19:31:06.730 回答