I usually use Vagrant in Development Environment. I need Vagrant to create Ubuntu Server on Windows 10 Desktop. Everthing work fine until one day, I met an error “Failed to mount folders in Linux guest”.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
==> nodeone: Setting hostname... ==> nodeone: Configuring and enabling network interfaces... ==> nodeone: Mounting shared folders... nodeone: /vagrant => E:/Vagrant/bean-seed 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 /sbin/mount.vboxsf: mounting failed with the error: No such device |
So I fixed it by command below:
1 |
vagrant plugin install vagrant-vbguest |
If you meet an error as below
1 2 3 4 5 |
$ vagrant plugin install vagrant-vbguest The directory where plugins are installed (the Vagrant home directory) has a space in it. On Windows, there is a bug in Ruby when compiling plugins into directories with spaces. Please move your Vagrant home directory to a path without spaces and try again. |
You have to change Vagrant Home Directory to a path without spaces.
1 2 |
# just an example export VAGRANT_HOME="/e/Vagrant/" |