Ignore setting the memory for now and just try to get 4 boxes to come up...
Try this...
# -*- mode: ruby -*-
# vi: set ft=ruby ts=2 :
hosts = {
"sys1" => { :ip => "192.168.56.101" },
"sys2" => { :ip => "192.168.56.102" },
"sys3" => { :ip => "192.168.56.103" },
"sys4" => { :ip => "192.168.56.104" },
}
Vagrant.configure("2") do |config|
config.vm.box = "centos/7"
hosts.each_with_index do |(hostname,info), index|
config.vm.define hostname do |cfg|
cfg.vm.provider :virtualbox do |vb, override|
override.vm.hostname = hostname
override.vm.network "private_network", ip: info[:ip]
end # end config
end # end hosts
end # end configure
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/0c2b1276-61c1-43dc-9a72-17ad735b7c86%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.