今日在啓動vagrant時報錯:ubuntu
==> default: Mounting shared folders... default: /vagrant => E:/VmWork/ubuntu14.04 Failed to mount folders in Linux guest. This is usually because the "vboxsf" file system is not available. Please verify that the guest additions are properly installed in the guest and can work properly. The command attempted was: mount -t vboxsf -o uid=`id -u vagrant`,gid=`getent group vagrant | cut -d: -f3` vagrant /vagrant mount -t vboxsf -o uid=`id -u vagrant`,gid=`id -g vagrant` vagrant /vagrant The error output from the last command was: stdin: is not a tty mount: unknown filesystem type 'vboxsf'
以下圖所示:
bash
通過上網查詢,原來是沒有安裝VBoxGuestAdditions,下面來手工安裝VitrualBox的這個加強功能:ui
使用命令vagrant halt
中止已在運行的虛擬機spa
直接在VirtualBox中啓動虛擬機,以下所示進行登陸:
vagrant
掛載辦法以下所示:設備->安裝加強功能
以後使用如下命令安裝VBoxGuestAdditions3d
bashsudo mount /dev/cdrom /media/cdrom cd /media/cdrom/ sudo ./VBoxLinuxAddtions.run
安裝過程以下所示:
code
以後就能夠愉快地vagrant up
了blog