Vagrant Setup Issues

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Vagrant Setup Issues

Alan Nguyen
Hello everyone,

I am new to this Vagrant setup and I have tried to setup the Vagrant environment all day and all night yesterday (really felt like pulling out some of my hair ^-^) but to no success.  It just seems so confusing and all the videos and instructions online don't seem detailed enough to have helped.  Can someone please help me with the Vagrant environment setup?  I need it to complete a MongoDB online course I'm currently taking and I can't do anything without having the environment setup.  I would really appreciate any help. I have a Windows 10 computer and so far I have downloaded Oracle Virtual Machine, Ubuntu, and Git.  Please help, thanks.

Alan

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/54042ed0-eda1-4570-a03d-80381af970e4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Setup Issues

Alvaro Miranda Aguilera
Hello.

Vagrant does several small things, that when you mix them you can create something bigger.

Basic concepts.

Taking a template, create a VM.
Can run scripts, set hostname, add network configuration.

All this, need to be seen as "vagrant will automate what you want to do", but there is a requirement that you need to know what you vagrant to run when provisioning a VM.

Say you want to create an ubuntu box.

mkdir xenial
cd xenial
vagrant init -m ubuntu/xenial64
vagrant up


That will create a VM based on xenial box from canonical/ubuntu.

From there, you can ssh into the vm like:
vagrant ssh

From there, whatever commands you need to type to get mongodb installed up and running, can be scripted, and then (last step) vagrant can run the script at creating the VM, so you will end with a new VM with mongodb installed.

If you got Vagrant questions, please share.

If you got general linux question, also welcome.

Thanks
Alvaro

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/CAHqq0ew15k_avyN3G0xYtuHwz%2B5q2Vj%3DtdRdw7UaJvtGP0P-2Q%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Setup Issues

Alan Nguyen
Thank you very much Alvaro.  I still can't get the vagrant environment going.  I got a little further this time and was able to run vagrant up, but then when I type vagrant ssh in Git, it keeps telling me to run vagrant up when I already did.  So I can't ssh into it now.  huuuh so frustrating.  Thanks.


On Thursday, June 22, 2017 at 9:31:43 PM UTC-10, Alvaro Miranda Aguilera wrote:
Hello.

Vagrant does several small things, that when you mix them you can create something bigger.

Basic concepts.

Taking a template, create a VM.
Can run scripts, set hostname, add network configuration.

All this, need to be seen as "vagrant will automate what you want to do", but there is a requirement that you need to know what you vagrant to run when provisioning a VM.

Say you want to create an ubuntu box.

mkdir xenial
cd xenial
vagrant init -m ubuntu/xenial64
vagrant up


That will create a VM based on xenial box from canonical/ubuntu.

From there, you can ssh into the vm like:
vagrant ssh

From there, whatever commands you need to type to get mongodb installed up and running, can be scripted, and then (last step) vagrant can run the script at creating the VM, so you will end with a new VM with mongodb installed.

If you got Vagrant questions, please share.

If you got general linux question, also welcome.

Thanks
Alvaro

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/072c7e8e-0301-445e-b39b-acda645d8c05%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply | Threaded
Open this post in threaded view
|

Re: Vagrant Setup Issues

Alan Nguyen
Update:  I got the vagrant environment going now after many, many attempts.  I just need to figure out how to start up the environment and connect it to the MongoDB.  Looks like I'll be having more fun trying to figure it all out again :)  


On Friday, June 23, 2017 at 8:26:16 AM UTC-10, Alan Nguyen wrote:
Thank you very much Alvaro.  I still can't get the vagrant environment going.  I got a little further this time and was able to run vagrant up, but then when I type vagrant ssh in Git, it keeps telling me to run vagrant up when I already did.  So I can't ssh into it now.  huuuh so frustrating.  Thanks.


On Thursday, June 22, 2017 at 9:31:43 PM UTC-10, Alvaro Miranda Aguilera wrote:
Hello.

Vagrant does several small things, that when you mix them you can create something bigger.

Basic concepts.

Taking a template, create a VM.
Can run scripts, set hostname, add network configuration.

All this, need to be seen as "vagrant will automate what you want to do", but there is a requirement that you need to know what you vagrant to run when provisioning a VM.

Say you want to create an ubuntu box.

mkdir xenial
cd xenial
vagrant init -m ubuntu/xenial64
vagrant up


That will create a VM based on xenial box from canonical/ubuntu.

From there, you can ssh into the vm like:
vagrant ssh

From there, whatever commands you need to type to get mongodb installed up and running, can be scripted, and then (last step) vagrant can run the script at creating the VM, so you will end with a new VM with mongodb installed.

If you got Vagrant questions, please share.

If you got general linux question, also welcome.

Thanks
Alvaro

--
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 [hidden email].
To view this discussion on the web visit https://groups.google.com/d/msgid/vagrant-up/8a8fe1af-3af7-404f-b45e-99e25069e3c1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.