Running Vagrant 1.72 in Ubuntu 14.04 following the tutorials in Ansible: Up
and Running book. I've had one vagrant machine running, no problem, now
trying to run multiple vagrant machines. My Vagrantfile:
####################################################
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
#Use the same key for each machine
config.ssh.insert_key=false
config.vm.define "vagrant1" do |vagrant1|
vagrant1.vm.box = "ubuntu/trusty64"
vagrant1.vm.network "forwarded_port", guest: 80, host: 8080
vagrant1.vm.network "forwarded_port", guest: 443, host: 8443
end
config.vm.define "vagrant2" do |vagrant2|
vagrant2.vm.box = "ubuntu/trusty64"
vagrant2.vm.network "forwarded_port", guest: 80, host: 8081
vagrant2.vm.network "forwarded_port", guest: 443, guest: 8444
end
config.vm.define "vagrant3" do |vagrant3|
vagrant3.vm.box = "ubuntu/trusty64"
vagrant3.vm.network "forwarded_port", guest: 80, host: 8082
vagrant3.vm.network "forwarded_port", guest: 443, host: 8445
end
end
#####################################################
and my console output:
#####################################################
vagrant up
Bringing machine 'vagrant1' up with 'virtualbox' provider...
Bringing machine 'vagrant2' up with 'virtualbox' provider...
Bringing machine 'vagrant3' up with 'virtualbox' provider...
==> vagrant1: Checking if box 'ubuntu/trusty64' is up to date...
==> vagrant1: Clearing any previously set forwarded ports...
==> vagrant1: Clearing any previously set network interfaces...
==> vagrant1: Preparing network interfaces based on configuration...
vagrant1: Adapter 1: nat
==> vagrant1: Forwarding ports...
vagrant1: 80 => 8080 (adapter 1)
vagrant1: 443 => 8443 (adapter 1)
vagrant1: 22 => 2222 (adapter 1)
==> vagrant1: Booting VM...
==> vagrant1: Waiting for machine to boot. This may take a few minutes...
vagrant1: SSH address: 127.0.0.1:2222
vagrant1: SSH username: vagrant
vagrant1: SSH auth method: private key
vagrant1: Warning: Remote connection disconnect. Retrying...
==> vagrant1: Machine booted and ready!
==> vagrant1: Checking for guest additions in VM...
==> vagrant1: Mounting shared folders...
vagrant1: /vagrant => /home/richard/playbooks
==> vagrant1: Machine already provisioned. Run `vagrant provision` or use
the `--provision`
==> vagrant1: to force provisioning. Provisioners marked to run always will
still run.
There are errors in the configuration of this machine. Please fix
the following errors and try again:
vm:
* Forwarded port definitions require a "host" and "guest" value
* Ports to forward must be 1 to 65535
#######################################################
What ridiculously obvious thing am I missing?
regards, Richard
--
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.