Vagrant Home and Vagrant Dot File On NTFS Partition Mounted In A Linux System

Share on:

I use Vagrant together with VirtualBox  on an Ubuntu based Linux system.  Because my internal SSD drive isn't so large, I outsource the location of VirtualBox's VMs to an external HDD drive with a NTFS partition. Additionally, I set Vagrant's environment variables VAGRANT_DOTFILE_PATH and VAGRANT_HOME so, that the directories .vagrant and .vagrant.d are also on the external HDD drive. External HDD drive with NTFS partition are auto-mounted with the following mount options on an Ubuntu based Linux system.

1rw,auto,user,fmask=0111,dmask=0000

For typical Vagrant commands like vagrant up, vagrant destroy, vagrant halt these mount options are sufficient. After using Vagrant for a while, I wanted to install some Vagrant plugins. The command for plugin installation in Vagrant is vagrant plugin install <plugin name>. The plugin installation failed with following error message.

1An error occurred while installing nokogiri (1.6.3.1), and Bundler cannot continue.
2Make sure that gem install nokogiri -v '1.6.3.1' succeeds before bundling.
3ERROR vagrant: Bundler, the underlying system Vagrant uses to install plugins,
4reported an error. The error is shown below. These errors are usually
5caused by misconfigured plugin installations or transient network
6issues.

A hint on the Vagrant project's issue tracker brings me to try out several mount options for the NTFS partition. Finally, the NTFS partition has to be mounted with following mount option and then the plugin installation is successful.

1rw,auto,user,uid=skosmalla,guid=skosmalla,exec,fmask=0022,dmask=0000