首页 文章

如何在Ubuntu服务器10.04上安装virtualbox共享文件夹GUI / sbin / mount.vboxsf mouning失败,错误:没有这样的设备

提问于
浏览
25

我是这个论坛的新手,但我偶尔会成为vbox用户 . 我有Windows 7主机和ubuntu 9.10来宾,安装vboxadditions工作正常,共享文件夹和一切都很完美 . 现在进行一些模拟我需要使用x-window安装ubuntu服务器10.04 . 我做了什么,到目前为止这么好 .

现在我现在遇到的问题是,对于服务器我似乎无法挂载共享文件夹 . 按照相同的过程:

-install dkms -update -upgrade -mount主机虚拟驱动器中的vboxadditions iso并将其安装在guest虚拟机中 - 安装vboxadditions(sudo sh ./VBoxLinuxAdditions-x86.run)-restart guest OS - 创建的ubuntu_share文件夹在/ media / ubuntu_share下

任何时候我试图使用此命令在我的驱动器D(D:/ Ubuntu_Share)上安装文件夹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服务器10.04有什么问题吗?或者我只是在某个地方错过了标记?感谢您阅读并帮助我 .

10 回答

  • 5

    在Ubuntu上,即使安装了guest添加内容,我仍然无法安装它 . 这两个命令为我修复了它:

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

    祝好运 .

  • 1

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

  • 4

    以下命令对我有用 -

    modprobe -a vboxguest vboxsf vboxvideo
    

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

    VirtualBox: mount.vboxsf: mounting failed with the error: No such device

  • 27

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

    sudo apt-get install make gcc
    
  • 0

    我通过从ubuntu存储库安装guest添加项解决了这个问题 .

  • 0

    即使我已经安装了guest虚拟机添加,再次安装它(完全相同的版本)修复它 .

  • -4

    我在Ubuntu Lucid上做了同样的事情,我使用了VirtualBox 4.1.12 .

    尝试在VirtualBox附加CD-ROM中找到一个shell脚本,它被称为 VBoxLinuxAdditions****.run

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

    这就像James A Wilson所做的那样 .

  • 2

    试试这个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
    
  • 1

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

    # 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

  • 13

    文件夹和共享文件夹不能使用相同的名称

相关问题