Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Vagrant up with ethereum-dev-env/vagrantfile fails #8956

Closed
jamesray1 opened this issue Sep 9, 2017 · 4 comments
Closed

Vagrant up with ethereum-dev-env/vagrantfile fails #8956

jamesray1 opened this issue Sep 9, 2017 · 4 comments

Comments

@jamesray1
Copy link

jamesray1 commented Sep 9, 2017

Note sure if this is this is a bug with vagrant itself, it seems like it could be with the vagrant file or Homestead, so I posted here as well: https://groups.google.com/forum/#!topic/vagrant-up/6YCXpBJmhsM

Vagrant version

Vagrant 1.9.1

Host operating system

Ubuntu 17.04 x64

Guest operating system

Ubuntu 17.04 x64

Vagrantfile

$installScript = <<SCRIPT
sudo apt update && \
sudo apt install -y  git g++ make python-minimal silversearcher-ag && \
wget https://nodejs.org/dist/v8.3.0/node-v8.3.0-linux-x64.tar.xz && \
tar -xvf node-v8.3.0-linux-x64.tar.xz && \
sudo mv node-v8.3.0-linux-x64/bin/* /usr/bin/ && \
sudo mv node-v8.3.0-linux-x64/lib/* /usr/lib/ && \
cp /vagrant/.tmux.conf /home/vagrant/.tmux.conf
SCRIPT

Vagrant.configure("2") do |config|
  config.vm.box = "ubuntu/zesty64"

  config.vm.provider "virtualbox" do |v|
    v.memory = 4096
    v.cpus = 1
  end

  config.vm.provision "shell", "inline": $installScript
end

The command completes successfully with a vanilla Vagrantfile (deleting any vagrant file in the current directory, running vagrant init then vagrant up—using an unmodified vagrantfile from vagrant)

Debug output

https://gist.github.com/jamesray1/25e36c9be5fd9668ac7f9a099d2f9914

Expected behavior

The vagrant up command is probably successful, completing with a zero exit status.

Actual behavior

The vagrant up command is not successful, completing with a non-zero exit status.

Steps to reproduce

  1. Install VirtualBox: Zesty 64 virtualbox-5.1_5.1.26-117224-Ubuntu-zesty_amd64.deb. Direct download link here.
  2. Install Vagrant, debian 64 bit: direct download here.
  3. Open a terminal and run vagrant init.
  4. Modify the vagrantfile, changing it to the one here. Otherwise, running vagrant up with the unmodified vagrantfile works.
  5. Run vagrant up.

References

Are there any other GitHub issues (open or closed) that should be linked here?
None that I have found.

@jamesray1
Copy link
Author

jamesray1 commented Sep 10, 2017

On Gitter chat with @jwasinger. I needed to clone his directory. But now that's done, I'm still getting an SSH error for james@james-Streacom:~/ethereum-dev-env/ethereumjs$ vagrant up > vagrantUp201709102123.txt:

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

vagrantUp201709102123.txt

@chrisroberts
Copy link
Member

Can you please provide a gist with debug output enable:

vagrant up --debug

Thanks.

@jamesray1
Copy link
Author

It's OK I've sorted it out. The gateway of my router doesn't have SSH enabled.

@ghost
Copy link

ghost commented Mar 31, 2020

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@hashicorp hashicorp locked and limited conversation to collaborators Mar 31, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants