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

Unable to install and download vagrant #5

Open
reenamadamwar opened this issue Oct 9, 2017 · 15 comments
Open

Unable to install and download vagrant #5

reenamadamwar opened this issue Oct 9, 2017 · 15 comments

Comments

@reenamadamwar
Copy link

I followed https://github.com/vlead/setup-ovpl-centos/blob/develop/user-docs/run-ads-using-vagrant-box.org this document but unable to download and install vagrant box.

@sivashankerN
Copy link

sivashankerN commented Jan 9, 2018

Deleted the text

@sivashankerN
Copy link

Good morning Shiva
I downloaded and install virtualbox 5.1
then i did apt-get install linux-headers-generic
apt-get install linux-image-generic
then I reboot the machine
uname -r
uname -a
/sbin/vboxconfig
same timed out error is coming

@reenamadamwar
Copy link
Author

I followed this document and installed VirtualBox 5.2 and Vagrant 2.0.1

But when I run vagrant up, I get a timeout error:

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ads-on-centos'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: ads-on-centos_default_1515483550170_27117
==> 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: 22 (guest) => 2200 (host) (adapter 1)
==> default: Booting VM...
==> default: Waiting for machine to boot. This may take a few minutes...
default: SSH address: 127.0.0.1:2200
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.

Can someone please help me on this.

@sivashankerN
Copy link

sivashankerN commented Jan 9, 2018

@reenamadamwar

  1. Destroy the vagrant box that you have created.
    vagrant destroy
  2. Uninstall VirtualBox 5.2 version
  3. Install VirtualBox 5.1 version
  4. and follow the steps mentioned in the document.

@reenamadamwar
Copy link
Author

I searched this issue on google and got this issue and I found that by adding vb.customize ["modifyvm", :id, "--cableconnected1", "on"] this in vagrantfile it should work.

Now after running vagrant up, I get following result :

vagrant up
/home/vlab/ads-on-centos/Vagrantfile:36:in block in <top (required)>': undefined local variable or method vb' for main:Object (NameError)
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/v2/loader.rb:37:in load' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:125:in block (2 levels) in load'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:119:in each' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:119:in block in load'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:116:in each' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/config/loader.rb:116:in load'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/vagrantfile.rb:28:in initialize' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:810:in new'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:810:in vagrantfile' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:556:in host'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:214:in block in action_runner' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/action/runner.rb:33:in run'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:543:in hook' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/lib/vagrant/environment.rb:792:in unload'
from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/bin/vagrant:141:in ensure in <main>' from /opt/vagrant/embedded/gems/gems/vagrant-2.0.1/bin/vagrant:141:in

'
vlab@coep:~/ads-on-centos$

What it means can somebody tell me?

@sivashankerN
Copy link

@reenamadamwar

  1. Destroy the vagrant box that you have created.
    vagrant destroy
  2. Uninstall VirtualBox 5.2 version
  3. Install VirtualBox 5.1 version
  4. and follow the steps mentioned in the document.

@sivashankerN
Copy link

To destroy the vagrant box that you have created
Go to the directory where you have run "vagrant up". There you can see Vagrantfile in that directory.
Then execute the below command
vagrant destroy

@reenamadamwar
Copy link
Author

after vagrant destroy got this result
default: VM not created. Moving on...

And still I am able to see ads-on-centos box in vagrant box list

@reenamadamwar
Copy link
Author

able to destroy with the help of this command vagrant box remove -f ads-on-centos

@sivashankerN
Copy link

Fine then.
now, follow the steps mentioned in the document except downloading ads box( wget command).

@reenamadamwar
Copy link
Author

  1. Destroyed vagrant box which was downloaded.
  2. Un-installed VirtualBox 5.2 version and installed VirtualBox 5.1 version from link as suggested.
  3. Followed the steps as given in the document. But in step 7 i.e. on vagrant up command, getting timed out error

Bringing machine 'default' up with 'virtualbox' provider...
==> default: Importing base box 'ads-on-centos'...
==> default: Matching MAC address for NAT networking...
==> default: Setting the name of the VM: ads-on-centos_default_1515493646086_98964
==> 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: 22 (guest) => 2222 (host) (adapter 1)
==> 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.

@reenamadamwar
Copy link
Author

@sivashankerN As you suggested, I have installed teamviewer. You can connect to my machine now.

@sivashankerN
Copy link

@reenamadamwar

maybe the problem with ads box that you downloaded.

Can you try creating one box ( not ads box) with any os? and try doing "vagrant up"

Please google it for how to run vagrant boxes

Please follow the steps mentioned at http://www.vagrantbox.es/
$ vagrant box add {title} {url}
$ vagrant init {title}
$ vagrant up

@reenamadamwar
Copy link
Author

@sivashankerN Yes the problem was with ads box. So I downloaded envimation/ubuntu-xenial box from http://www.vagrantbox.es/ and it works

@ksripathi Please confirm OS version that support analytics-dashboard service

@reenamadamwar
Copy link
Author

reenamadamwar commented Jan 23, 2018

@ksripathi

While following document to run ADS service, in step 18 after giving lab id and lab sources url in http://local-ads.com:8080. It is throwing error shown in below image

screenshot from 2018-01-23 11 03 26

And in log files getting some object has no attribute "output" error

screenshot from 2018-01-19 17 08 06

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants