ssh freeze while running vagrant up

250 views
Skip to first unread message

midhun raj

unread,
Sep 10, 2018, 3:31:35 AM9/10/18
to Vagrant

I am trying to setup an RHCE lab on my machine.I installed vagrant version Vagrant 2.1.4 and virtualbox 5 on ubuntu 16.04. I downloaded centos-7.0-x86_64.box from [https://computingforgeeks.com/how-to-addinstall-and-run-centos-7-vagrant-box-to-virtualbox-using-vagrant/][1]

I installed vagrant plugins vagrant plugin vagrant-vbguest && sahara

Here is my vagrant script



# -*- mode: ruby -*-
# vi: set ft=ruby :
server_disk='server.vdi'
desktop_disk='desktop.vdi'
Vagrant.configure(2) do |config|
 config.vm.box = "centos/7"
 config.vm.define "classroom" do |s|
  s.vbguest.auto_update = false
  s.vm.network "private_network", ip: "192.168.33.254"
  s.vm.synced_folder ".", "/vagrant", disabled: true
  #s.vm.synced_folder "../repos", "/repos", owner: "root", group: "root"
  s.vm.synced_folder "scripts/classroom", "/usr/local/scripts", type: "rsync", owner: "root", group: "root"
  s.vm.provision "shell", inline: <<-SHELL
   chmod u+x /usr/local/scripts/classroom.sh
   /usr/local/scripts/classroom.sh
  SHELL
 end

 config.vm.define "server" do |a|
  a.vbguest.auto_update = false
  a.vm.provider "virtualbox" do |v|
   unless File.exist?(server_disk)
    v.customize ['createhd', '--filename', server_disk, '--size', 20 * 1024]
   end
   v.customize ['storageattach', :id, '--storagectl', 'IDE Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', server_disk]
   end
  a.vm.network "private_network", ip: "192.168.33.11"
  a.vm.synced_folder ".", "/vagrant", disabled: true
  a.vm.synced_folder "scripts/server", "/usr/local/scripts", type: "rsync", owner: "root", group: "root"
  a.vm.provision "shell", inline: <<-SHELL
   chmod u+x /usr/local/scripts/server.sh
   /usr/local/scripts/server.sh
  SHELL
  end



When i run sudo vagrant up

I get error

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

I am following this https://github.com/frezbo/lab .Please do help me.









Alvaro Miranda Aguilera

unread,
Sep 12, 2018, 2:59:45 AM9/12/18
to vagra...@googlegroups.com
hello


what is sahara?

Also, try a different box first.

mkdir p64
vagrant init -m hashicorp/precise64
vagrant up

does this work?

Whats your host OS ?

--
This mailing list is governed under the HashiCorp Community Guidelines - https://www.hashicorp.com/community-guidelines.html. Behavior in violation of those guidelines may result in your removal from this mailing list.
 
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups "Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vagrant-up+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/cce1126f-b791-429c-abc5-76112e19f875%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


--
Alvaro

midhun raj

unread,
Sep 12, 2018, 4:42:02 AM9/12/18
to vagra...@googlegroups.com
When i used centos/7 box it was resolved .Thanks for your interst in helping me 

Alvaro Miranda Aguilera

vagrant box add centos/7

Reply all
Reply to author
Forward
0 new messages