Skip to content

Instantly share code, notes, and snippets.

@initcron
Created July 21, 2015 12:33
Show Gist options
  • Select an option

  • Save initcron/8636d2b5fb2a7c69b2fd to your computer and use it in GitHub Desktop.

Select an option

Save initcron/8636d2b5fb2a7c69b2fd to your computer and use it in GitHub Desktop.
cmad setup with virtualbox and vagrant
1. Install the following softwares,
a. Virtualbox
b. Vagrant
c. On windows , install git for windows in addition
2. Copy over the box file (VM template) cmad_minimal_v2.box to your laptop along with "cmad" directory
3. Open iterm on mac or "git bash" terminal on windows and browse to the directory which contains the box file cmad_minimal_v2.box. Run the following command to add the VM template
$ vagrant box add cmad2 cmad_minimal_v2.box
4. Validate above box is being added by running the following command,
$ vagrant box list
[output should contain a box by name cmad2]
5. Browse to the cmad directory using iterm/git bash and run the following commands to start the vm and connect to it,
$ cd cmad
$ ls
[make sure Vagrantfile is present]
$ vagrant up
$ vagrant ssh
After running vagrant up and ssh, you should have the VM running ( should be able to validate it from Virtualbox GUI as well) and logged into the virtual environment.
6. To check the IP address, run the following command
$ ifonfig
Following are the details of the host ,
Hostname : cmad2
IP address: 192.168.34.11
This virtual environment contains:
- MySQL Server 5.X
- Java 7
- Tomcat 7
- git
- Python 3.x
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment