Olá
Estou tendo problemas quando tento subir novamente as máquinas já criadas, retornando o erro abaixo.
Sendo necessário eu realizar um 'vagrant destroy ' para depois 'vagrant up' para funcionar.
Coloquei o conteúdo do arquivo vagrante o do erro.
Se alguém saber como me orientar, eu agradeço.
wordpress: SSH address: 127.0.0.1:2222
wordpress: SSH username: vagrant
wordpress: SSH auth method: private key
wordpress: Warning: Connection aborted. Retrying...
wordpress: Warning: Connection aborted. Retrying...
wordpress: Warning: Connection aborted. Retrying...
Timed out while waiting for the machine to boot. This means that
Vagrant was unable to communicate with the guest machine within
the configured ("config.vm.boot_timeout" value) time period.
If you look above, you should be able to see the error(s) that
Vagrant had when attempting to connect to the machine. These errors
are usually good hints as to what may be wrong.
If you're using a custom box, make sure that networking is properly
working and you're able to connect to the machine. It is a common
problem that networking isn't setup properly in these boxes.
Verify that authentication configurations are also setup properly,
as well.
If the box appears to be booting properly, you may want to increase
the timeout ("config.vm.boot_timeout") value.
Vagrant.configure("2") do |config|
config.vm.box="ubuntu/trusty64"
config.ssh.insert_key = false
config.vm.provider "virtualbox" do |v|
v.memory=1024
end
config.vm.define "wordpress" do |m|
m.vm.network "public_network", ip: "192.168.0.240"
m.vm.provision "shell",
inline: "cat /vagrant/chaves/chave.pub >> .ssh/authorized_keys"
end
config.vm.define "mysql" do |mysql|
mysql.vm.network "public_network", ip: "192.168.0.242"
mysql.vm.provision "shell",
inline: "cat /vagrant/chaves/chave.pub >> .ssh/authorized_keys"
end
config.vm.define "ansibleHost" do |ansiblehost|
ansiblehost.vm.box = "ubuntu/bionic64"
ansiblehost.vm.network "public_network", ip: "192.168.0.241"
ansiblehost.vm.provision "shell",
inline: "apt-get update && \
apt-get install -y software-properties-common && \
apt-add-repository --yes --update ppa:ansible/ansible && \
apt-get install -y ansible"
ansiblehost.vm.provision "shell",
inline: "cp /vagrant/chaves/chave /home/vagrant && \
chmod 600 /home/vagrant/chave && \
chown vagrant:vagrant /home/vagrant/chave"
ansiblehost.vm.provision "shell",
inline: "cat /vagrant/chaves/chave.pub >> .ssh/authorized_keys"
end
end