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

2 comments:

Unknown said...

You saved my life. Thank you!

Anonymous said...

This fix works -- thank you for posting this. Surprisingly, the work around wasn't noted on the open issue: https://github.com/mitchellh/vagrant-aws/issues/331