You can add the modifyvm commands that you use in Virtualbox to the
Vagrantfile to make those changes to each box.
Replace memory and 1024 with --natnet1 and the ip range like 127.0.1.0/24
for each VM.
config.vm.provider "virtualbox" do |vb|
# first setup requires gui to be enabled so scripts can be executed in
virtualbox guest screen
#vb.gui = true
vb.customize ["modifyvm", :id, "--memory", "1024"]
end
On Wednesday, May 27, 2015 at 5:39:16 AM UTC-5, John Stern wrote:
>
> I have a three image vagrant file with NAT
> I want to NAT ip address not port number.
>
> e.g.
> Guest1 Host
> 0.0.0.0:22 -> 127.0.1.1:22
> Guest2 Host
> 0.0.0.0:22 -> 127.0.1.2:22
> etc etc
>
> I can do this manually in Virtualbox but vagrant kicks up a fuss, and
> identifies port already in use.
>
> Is there a way I can do this nicely??
>
--
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].
For more options, visit https://groups.google.com/d/optout.