vagrant : Failed to mount folders in Linux guest, “vboxsf” file system is not available?

前端 未结 4 1613
借酒劲吻你
借酒劲吻你 2021-01-12 04:34

I have VirtualBox 4.3.10 and Vagrant 1.4.3 installed on my Ubuntu 14.04 64 bit Desktop.

Earlier, worked with

4条回答
  •  栀梦
    栀梦 (楼主)
    2021-01-12 04:50

    Apparently there is a bug in the VirtualBox Guest Additions 4.3.10 installer: https://www.virtualbox.org/ticket/12879

    There seems to be a simple workaround to this, by creating a symbolic link within Vagrant-VM:

    sudo ln -s /opt/VBoxGuestAdditions-4.3.10/lib/VBoxGuestAdditions \
    /usr/lib/VBoxGuestAdditions
    

    You could add this to your provisioning configuration to make sure you don't hit the bug again:

    NEWEST_VBOXGUESTADDITIONS_DIR=`find /opt/ -maxdepth 1 -mindepth 1 -name "VBoxGuestAdditions-*" | tail -n 1`;
    if [[ ! -d "/usr/lib/VBoxGuestAdditions" && -n "$NEWEST_VBOXGUESTADDITIONS_DIR" ]];
    then
        ln -s ${NEWEST_VBOXGUESTADDITIONS_DIR}/lib/VBoxGuestAdditions /usr/lib/VBoxGuestAdditions
    fi
    

提交回复
热议问题