Não é possível iniciar a instância do vagrant

2

Instalei o trusty64 no vagrant e, ao tentar iniciar com vagrant up , não consigo me conectar via SSH. Sua dizendo sobre SSH Time, mas tenho certeza que não é algo a ver com conectividade SSH

Por favor, verifique abaixo log

sniper@openstackm1:/playbooks$ vagrant reload
==> default: Attempting graceful shutdown of VM...
    default: Guest communication could not be established! This is usually because
    default: SSH is not running, the authentication information was changed,
    default: or some other networking issue. Vagrant will force halt, if
    default: capable.
==> default: Forcing shutdown of VM...
==> default: Clearing any previously set forwarded ports...
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
==> default: Forwarding ports...
    default: 22 (guest) => 2222 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
    default: SSH address: 127.0.0.1:2222
    default: SSH username: vagrant
    default: SSH auth method: private key

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.
    
por rɑːdʒɑ 11.01.2017 / 10:54

2 respostas

3

Tive o mesmo problema. Notei que o meu VirtualBox não tem Linux 64bit na lista de opções. Experimente o Goto Bios e ative a Tecnologia de virtualização da Intel. Funciona para mim.

    
por 06.05.2017 / 19:04
1

Seria mais fácil ajudar com Vagrantfile fornecido e pelo menos informações sobre o provedor Vagrant. Há muitas maneiras de configurar o Vagrant, provedores e muitas caixas.

Suponho que você esteja usando o provedor padrão do VirtualBox

A mensagem mais importante é esgotada enquanto aguarda a inicialização da máquina. . O Vagrant está tentando se conectar à máquina (via 127.0.0.1:2222) e não pode se conectar por algum motivo que ainda não sabemos.

Alguns passos para diagnosticar:

  1. Abra a GUI do VirtualBox, abra sua máquina convidada e verifique se ela está inicializada e pronta para efetuar login.

  2. Você provavelmente deve fazer o login no console da máquina com login vagrant e senha vagrant . (Algumas das caixas do Ubuntu usam o login ubuntu . veja )

  3. Se você conseguir fazer o login como vagrant user, verifique a rede na sua máquina virtual. A rede deve estar ativa e você deve se conectar ao mundo externo.

  4. Verifique se sua máquina virtual está executando ssh e aceitando conexões na porta 22.

  5. Verifique se a conexão TCP (em seu host) para 127.0.0.1:2222 foi encaminhada para seu convidado. Deve ser definido na configuração do computador VirtualBox (em algum lugar em Networking).

  6. Teste outra caixa Vagrant. Eu prefiro geerlingguy / ubuntu1404 pessoalmente, porque eu não gosto da abordagem do Ubuntu de não usar o padrão vagrant user.

Se algumas dessas etapas não aparecerem, tente descobrir onde o problema está oculto.

    
por 27.02.2017 / 22:18