Woutje99's avatar

Homestead vagrant up error

Hi,

I have installed the new homestead and want to vagrant up. When I do vagrant up in my terminal i get the following error message:

bash-3.2# vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'laravel/homestead'...
==> default: Matching MAC address for NAT networking...
==> default: Checking if box 'laravel/homestead' is up to date...
==> default: Setting the name of the VM: homestead-7
==> default: Fixed port collision for 22 => 2222. Now on port 2200.
==> default: Clearing any previously set network interfaces...
==> default: Preparing network interfaces based on configuration...
    default: Adapter 1: nat
    default: Adapter 2: hostonly
==> default: Forwarding ports...
    default: 80 (guest) => 8000 (host) (adapter 1)
    default: 443 (guest) => 44300 (host) (adapter 1)
    default: 3306 (guest) => 33060 (host) (adapter 1)
    default: 5432 (guest) => 54320 (host) (adapter 1)
    default: 22 (guest) => 2200 (host) (adapter 1)
==> default: Running 'pre-boot' VM customizations...
==> default: Booting VM...
An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.

If the problem persists, please report a bug to the net-ssh project.

timeout during server version negotiating

The error is: timeout during server version negotiating...

Can someone help me to fix this error?

0 likes
16 replies
bashy's avatar

I suggest removing Homestead completely (saving Homestead.yaml I guess), updating VirtualBox/Vagrant and running through it again.

Woutje99's avatar

@bashy That's not working for me, unfortunately. I have now two times install all again, still get this error or an other error..

Search for someone that can take a look at it, with teamviewer or something.. Still working for 8 hours on this issue but can't fix it. Maybe you can further help?

Woutje99's avatar

Yeah, two times, I deleted vagrant, homestead and VirtualBox.. and install it again

Woutje99's avatar

Yeah a few times, after deleting and installing the applications.

bashy's avatar

This

Setting the name of the VM: homestead-7

Makes me believe you still have an old version somewhere. This was the php7 branch but is now the master one. Can you show what you deleted and how you installed Homestead again?

Woutje99's avatar

@bashy : Yeah there is still a version global installed by composer, do i have to delete that one? In that homestead.yaml stays: box: laravel/homestead-7

But the vagrant up I run is in a other directory where I now installed homestead...

I installed it by the post above;

-  vagrant box add laravel/homestead and save the sites you have setup (if required) in ~/.homestead/Homestead.yaml

- rm -rf ~/Homestead ~/.homestead

- cd ~

- git clone https://github.com/laravel/homestead.git Homestead

- cd Homestead

- bash init.sh

- edit new ~/.homestead/Homestead.yaml file

- vagrant up or vagrant reload --provision

I removed now laravel/homestead from the composer.json file

Woutje99's avatar

I don't know if it's neccesary but in the GUI of virtual box there is also no virtual machine..

bashy's avatar

Okay so you do this after that?

cd ~/Homestead
vagrant up

Can you also do this so we can see what versions

vagrant box list
Woutje99's avatar

@bashy

Yeah i do vagrant up and then the error messages is showing up

I found out how to see my virtual machines in VirtualBox to running it in terminal with: sudo virtualbox gui

I saw a lot of vm's, i deleted all and started again, but when I vagrant up again after adding homestead he stills add homestead-7

But in homestead.rb file it stands also:

vb.name = settings["name"] ||= "homestead-7

When i'm running vagrant box list, one thing is showing up:

laravel/homestead (virtualbox, 0.4.0)

So what can I do now?

Woutje99's avatar

@bashy

I changed this line in homestead.rb:

vb.name = settings["name"] ||= "homestead-7

to:

vb.name = settings["name"] ||= "homestead

When I now running VAGRANT UP, the console said:

==> default: VirtualBox VM is already running.

But when I look in the GUI of VirtualBox there is only one machine with the name: homestead-7

bashy's avatar

Don't edit the homestead.rb file. It is actually called homestead-7 in my VirtualBox so forget about that part.

Not sure what else to check.

Woutje99's avatar
Woutje99
OP
Best Answer
Level 1

FInd out the solution

In my home directory ~, There was an old directory .vagrant and .vagrant.d, you have to delete these and add the laravel/homestead box again. Then it should work.

Thanks for the response guys!

Please or to participate in this conversation.