Reputation: 11
and thank you for reading my question.
The problem arises when running vagrant up. The virtual machine is fetched and added but
The guest machine entered an invalid state while waiting for it to boot. Valid states are 'starting, running'. The machine is in the 'poweroff' state. Please verify everything is configured properly and try again.
By looking around I found that it means that the CPU does not support VT-X technology. I tried a workaround changing the vagrant file to only use one cpu.
CPU_COUNT = 1
The procedure then gets further but there comes a second problem. I cannot connect through ssh to this virtual machine.
*==> default: Preparing network interfaces based on configuration...**
** default: Adapter 1: nat**
** default: Adapter 2: hostonly**
**==> default: Forwarding ports...**
** default: 22 => 2222 (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**
** default: Warning: Connection timeout. Retrying...**
** default: Warning: Connection timeout. Retrying...**
** default: Warning: Connection timeout. Retrying...**
** default: Warning: Connection timeout. Retrying...**
** default: Warning: Connection timeout. Retrying...**
** default: Warning: Connection timeout. Retrying...*
So multiple questions:
If I cannot connect, it can mean that the machine hasn't booted up, so the problem can come from using only one CPU instead of two ?
The problem might come from the port 2222 not being open. If so, why can't I connect to the machine directly through ssh on 192.168.33.10, as defined in the vagranfile ? Does vagrant need this initial ssh connection to actually set up the ip inside of the machine ?
I thought this would be the virtual machine's ip.
**config.vm.network :private_network, ip: "192.168.33.10"**
Note: When I am doing the fullstack installation on my machine and not on the remote, everything is working perfectly.
Upvotes: 1
Views: 994
Reputation: 6259
Hi I had the same issue.
Option 1
I added v.gui = true as follows: ................................
config.vm.provider :virtualbox do |v, override|
v.gui=true
end
................................
Just after "vagrant up --provider=virtualbox". I can see the gui of VirtualBox for a second, but it closes at once.
Option 2
goto BIOS configuration --
Turn on VT-x/AMD-V hardware acceleration
Upvotes: 1