config.vm.define :web do |web_config|
web_config.vm.box = "saucy"
web_config.vm.host_name = "web"
web_config.vm.network "private_network", ip:"192.168.100.10"
end
config.vm.define :db do |db_config|
db_config.vm.box = "saucy"
db_config.vm.host_name = "db"
db_config.vm.network "private_network", ip:"192.168.100.20"
end
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--memory", "1024"]
vb.customize ["modifyvm", :id, "--cpus", "2"]
end
我配置了两个 VM,“db”和“web”。我可以为不同的虚拟机设置不同的内存大小吗?