Thursday, January 29, 2015

AWS Vagrant "No host IP was given to the Vagrant core NFS helper"


During the provision of an AWS environment with vagrant:

vagrant up --provision aws 

This command returned

No host IP was given to the Vagrant core NFS helper. This is an internal error that should be reported as a bug.

It was quite hard understand why vagrant is trying to use NFS, even because it should be disabled, on AWS synced_folder are copied using rsync. 
At last I found this link "Error: No host IP was given to the Vagrant core NFS helper" in 0.2.0 #5 https://github.com/gosddc/vagrant-vcenter/issues/5

where is suggested to use

config.nfs.functional = false

If you have a multi environment configuration like me, I suggest to use:

  config.vm.provider :aws do |aws, override|
    ...
    override.nfs.functional = false
  end