I have vagrant 1.1.2 and this Vagrantfile
Vagrant.configure("2") do |config|
config.vm.box = "precise"
config.vm.box_url = "http://files.vagrantup.com/precise32.box"
config.vm.provider :virtualbox do |v|
v.gui = false
config.vm.synced_folder "data/", "/vagrant/data"
config.vm.define :master do |master|
master.vm.hostname = "master.vm"
master.vm.network :forwarded_port, guest: 8080, host: 8080
master.vm.network :forwarded_port, guest: 80, host: 3000
master.vm.network :private_network, ip: "22.214.171.124"
config.vm.define :slave do |slave|
slave.vm.hostname = "slave.vm"
slave.vm.network :private_network, ip: "126.96.36.199"
After 1st start:
I reload, slave and ip address set correctly to 188.8.131.52. Hostname still some.
Any suggestion what's wrong?
I upgrade to 1.1.4 and ip address is now correctly set. But problem with /etc/hosts are the some.
Thanks, great to hear it is working!
Vagrant doesn't manage /etc/hosts. However, if it is necessary for proper host name setting for a guest, I'm happy to merge any pull requests for the guest integration (plugin/guests in core).