You can either create both VMs as part of a single Vagrantfile and I think this allows them to access each other via hostname on the same "network", or you can assign static IP addresses in the vagrantfile and simply use that address to access each VM. The one thing you'll want to do is make sure if you need passwordless access for provisioning, you can add the vagrant key to each VM (they should already trust it, but they'll need an actual copy to use it to access another machine) and then make your connections using that key. You could also try the ssh-agent-forwarding, but I haven't messed with multi-VM setups very much.
On Thursday, July 16, 2015 at 7:12:07 AM UTC-5, Anthony Green wrote: > > I'm using Vagrant to build VMs to test some Ansible scripts. > > I'd like to be able to SSH between one guest (an Ubuntu VM) and another > (an OS X VM) > Is it possible for Vagrant to configure both VMS correctly to do this ? > > -- 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/ba896536-2e7f-410d-abb2-19c579b35592%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
