How to get back IP addresses for Vagrant provisioned VM's ?
3,813 views
Skip to first unread message
Mark Carter
unread,
Jul 15, 2015, 6:14:05 PM7/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vagra...@googlegroups.com
Hey,
Sorry if this is an RTFM, but couldn't find the answer.
We are using Vagrant to automate the provisioning of 3 VM's on VMware fusion in order to setup a local dev environment.
Once the 3 boxes are provisioned, I need to somehow get back the IP address assigned to each of the VM's so they can be used by an automated script to connect to each of the boxes and install packages.
Is there a programatic way to get back the dynamically assigned IP for each VM provisioned by Vagrant ?
Same question apply when using either Vagran + Fusion and Vagrant + VirtualBox.
Guidance appreciated,
Mark
Alvaro Miranda Aguilera
unread,
Jul 15, 2015, 7:07:03 PM7/15/15
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vagra...@googlegroups.com
Hello,
Easiest trick is let the first ip on eth0 be used by vagrant
and add a 2nd nic with a known ip that you can use for that