Hi, there.
I'm using this MultiVM configuration, but network is very unstable.
---
Vagrant.configure("2") do |config|
config.vm.box = "base"
config.vm.define :web do |web|
config.vm.box = "base+apache2"
web.vm.hostname = "web"
web.vm.network :private_network, ip: "192.168.33.10"
commands =<<EOM
...script...
EOM
web.vm.provision :shell, :inline => commands
end
config.vm.define :db do |db|
config.vm.box = "base+mysql"
db.vm.hostname = "db"
db.vm.network :private_network, ip: "192.168.33.11"
commands=<<EOM
...script...
EOM
db.vm.provision :shell, :inline => commands
end
end
---
Boxes "base+apache2"/"base+mysql" is based on Ubuntu server 12.04(package update+apache2/mysql).
Sometimes, after "vagrant up web", unable to connect web:80 from host(but ping is OK), and, sometimes "ping from web to db" failed.
Where do I check my configration and host setting?
Thanks.
--