SKM IT World

Just another blog about IT


Leave a comment

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

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.

rw,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.

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

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.

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

Links