From 7dd369f36f6d5b0d84cfddf9ed4accde793d03e2 Mon Sep 17 00:00:00 2001 From: Chagara Date: Sat, 2 Jul 2016 10:06:55 -0400 Subject: [PATCH] added a getting started doc for vagrant --- docs/getting-started-vagrant.md | 42 +++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 docs/getting-started-vagrant.md diff --git a/docs/getting-started-vagrant.md b/docs/getting-started-vagrant.md new file mode 100644 index 000000000..0dca84ae2 --- /dev/null +++ b/docs/getting-started-vagrant.md @@ -0,0 +1,42 @@ +

Getting Started with Vagrant using Virtualbox

+ +This guide assumes that the latest versions of [Vagrant](https://www.vagrantup.com/downloads.html) and [Virtualbox](https://www.virtualbox.org/wiki/Downloads) are already installed in your host. + +# Quickstart + +Create a vagrant directory: + +``` +mkdir -p ~/vagrant +cd ~/vagrant + +``` +The vagrant is hosted on dropbox since vagrant charges for hosting the files. + +Download from and put into your ~/vagrant: +https://www.dropbox.com/s/frlh9ul4n0wna46/package.box?dl=0 + + +This install uses this default user and passwd for all the services: +* user: vagrant +* password: vagrant + +When I say all the services this includes the ssh log-in, postgresql and the netbox +Gui log-in. + +Do the following inside ~/vagrant: +vagrant box add netbox ~/vagrant/package.box +vagrant init netbox +vagrant up +vagrant ssh + + open up a browser and put 127.0.0.1:2223 and log-in! + +# if you cannot ssh or bring up the GUI check the virtualbox settings: +* In the Virtualbox GUI click on your VM then settings. +* Go to the networking and click on "port forwarding". +* Make sure that ssh and nginx port are there. If not add them +* rule: [Name: SSH, Protocol: TCP, Host IP: blank, Host Port: 2222, Guest IP: blank, Guest Port: 22] +* rule: [Name: nginx, Protocol: TCP, Host IP: blank, Host Port: 2223, Guest IP: blank, Guest Port: 80] + +You can change the Host port since that is the port your host is going to use but, keep the Guest port the same as above since those are the default.