VirtualBox 中“共享文件夹”功能不起作用

VirtualBox 中“共享文件夹”功能不起作用

我有 Ubuntu 11.10 作为主机,还有另一个 Linux 2.6 发行版作为客户机。

当我尝试设置访客添加功能时,出现此错误消息

Building the shared folder support module .. fail

因此,当我在终端中运行以下命令时

mount -t vboxsf shared /root/shared

我收到以下错误消息

mount: unknown filesystem type 'vboxsf'

请问有什么建议吗?

编辑

抱歉,提到的错误信息不完整,就是这样。

Building the shared folder support module ...fail!
(Look at /var/log/vboxadd-install.log to find out what went wrong)

这是 vboxadd-install.log 的内容

    Uninstalling modules from DKMS
    Attempting to install using DKMS

    Creating symlink /var/lib/dkms/vboxguest/4.1.2/source ->
                     /usr/src/vboxguest-4.1.2

    DKMS: add Completed.

    Kernel preparation unnecessary for this kernel.  Skipping...

    Building module:
    cleaning build area....
    make KERNELRELEASE=3.2.6 -C /lib/modules/3.2.6/build M=/var/lib/dkms/vboxguest/4.1.2/build..........................(bad exit status: 2)

    Error! Bad return status for module build on kernel: 3.2.6 (i686)
    Consult the make.log in the build directory
    /var/lib/dkms/vboxguest/4.1.2/build/ for more information.
    0
    0
    ERROR: binary package for vboxguest: 4.1.2 not found
    Failed to install using DKMS, attempting to install without
    make KBUILD_VERBOSE=1 -C /lib/modules/3.2.6/build SUBDIRS=/tmp/vbox.0 SRCROOT=/tmp/vbox.0 modules
    test -e include/generated/autoconf.h -a -e include/config/auto.conf || (        \
        echo;                               \
        echo "  ERROR: Kernel configuration is invalid.";       \
        echo "         include/generated/autoconf.h or include/config/auto.conf are missing.";\
        echo "         Run 'make oldconfig && make prepare' on kernel src to fix it.";  \
        echo;                               \
        /bin/false)
    mkdir -p /tmp/vbox.0/.tmp_versions ; rm -f /tmp/vbox.0/.tmp_versions/*

      WARNING: Symbol version dump /usr/src/linux-source-3.2.6/Module.symvers
               is missing; modules will have no dependencies and modversions.

实际上日志文件非常大,超出了 30000 个字符的限制。我怎样才能在此处上传整个日志文件?

答案1

最后,它现在可以工作了。

Ubuntu 存储库中的 virtualbox 版本似乎未更新。存储库中的最新版本是 v4.1.2,而官方网站提供的最新版本是 v4.1.12。安装最新版本后,一切都运行正常。谢谢大家。

相关内容