Ubuntu Desktop 16.4
Vagrant 1.8.5
VMware Workstation 12 Pro
I have multiple VMs running (guests are Ubuntu servers) and I have each of
them with different forwarded ssh and https ports (of course).
ssh and https to each remotely works fine until i bring another VM up and
*ALL* the forwarded port connections are reset.
For example: I vagrant up 3 VMs and then SSH into each of them. I vagrant
up the fourth and all connections to first 3 are killed. This is causing a
lot of problems for the developers I'm supporting. Any ideas?
Vagrantfile
boxes = [
{
:name => "ff1",
:ssh_port => "2221",
:https_port => "4441"
},
{
:name => "ff2",
:ssh_port => "2222",
:https_port => "4442"
},
{
:name => "ff3",
:ssh_port => "2223",
:https_port => "4443"
}
]
Vagrant.configure(2) do |config|
boxes.each do |opts|
config.vm.define opts[:name] do |config|
config.vm.network :forwarded_port, guest: 22, host: opts[:ssh_port],
id: 'ssh'
config.vm.network :forwarded_port, guest: 443, host: opts[:https_port]
config.vm.provider "vmware_workstation" do |v|
<snip>
SSH into the boxes from my mac like so:
ssh -p2221 [email protected]
ssh -p2222 [email protected]
or http:
https://hostbox.com:4441
https://hostbox.com:4442
Bring up one of the boxes:
$ vagrant up ff1
Bringing machine 'ff1' up with 'vmware_workstation' provider...
==> ff1: Verifying vmnet devices are healthy...
==> ff1: Preparing network adapters...
==> ff1: Starting the VMware VM...
==> ff1: Waiting for machine to boot. This may take a few minutes...
ff1: SSH address: 172.16.136.153:22
ff1: SSH username: niska
ff1: SSH auth method: private key
ff1: Warning: Host unreachable. Retrying...
ff1: Warning: Host unreachable. Retrying...
ff1: Warning: Host unreachable. Retrying...
==> ff1: Machine booted and ready!
==> ff1: Forwarding ports...
ff1: -- 22 => 2221
ff1: -- 443 => 4441
==> ff1: Setting hostname...
==> ff1: Configuring network adapters within the VM...
==> ff1: Waiting for HGFS to become available...
==> ff1: Enabling and configuring shared folders...
ff1: -- /home/niska/boxes/ff: /vagrant
==> ff1: Machine already provisioned. Run `vagrant provision` or use the
`--provision`
==> ff1: flag to force provisioning. Provisioners marked to run always will
still run.
--
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/87acc2f3-398f-4610-a8ca-cc9b604785e7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.