2
respostas

vagrant up bionic não finaliza instalação - time out ssh

Bom dia Amigos,

Estou tentando "subir" a VM bionic64 conforme descrito no curso, porém ela não finaliza, segue abaixo trecho do erro e vagrantfile.

Vagrant.configure("2") do |config| config.vm.box = "ubuntu/bionic64" config.vm.network "forwarded_port", guest: 80, host:8080 end

$ vagrant up Bringing machine 'default' up with 'virtualbox' provider... ==> default: Importing base box 'ubuntu/bionic64'... ==> default: Matching MAC address for NAT networking... ==> default: Checking if box 'ubuntu/bionic64' version '20210415.0.0' is up to date... ==> default: Setting the name of the VM: bionic_default_1619784290813_42458 ==> default: Clearing any previously set network interfaces... ==> default: Preparing network interfaces based on configuration... default: Adapter 1: nat ==> default: Forwarding ports... default: 80 (guest) => 8080 (host) (adapter 1) 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.

Log da Console: [ 0.008016] Calibrating delay loop (skipped) preset value.. 6185.94 BogoMIPS (lpj=12371896) [ 0.012006] pid_max: default: 32768 minimum: 301 [ 0.016108] Security Framework initialized [ 0.020011] Yama: becoming mindful. [ 0.024155] AppArmor: AppArmor initialized [ 0.041844] Dentry cache hash table entries: 131072 (order: 8, 1048576 bytes) [ 0.049943] Inode-cache hash table entries: 65536 (order: 7, 524288 bytes) [ 0.052149] Mount-cache hash table entries: 2048 (order: 2, 16384 bytes) [ 0.056165] Mountpoint-cache hash table entries: 2048 (order: 2, 16384 bytes)

Abs e obrigado.

Gilberto Carvalho

2 respostas

Tentei redirecionar a porta mas sem sucesso.

Ufa consegui!!!

Após a atualização do VirtualBOx da versão 6.1.18 para 6.1.22, tudo funcionou.

vagrant@ubuntu-bionic:$ uptime 01:57:49 up 1 min, 1 user, load average: 0.96, 0.43, 0.16 vagrant@ubuntu-bionic:$

Abs,

GIlberto Carvalho

Quer mergulhar em tecnologia e aprendizagem?

Receba a newsletter que o nosso CEO escreve pessoalmente, com insights do mercado de trabalho, ciência e desenvolvimento de software