Saturday, January 7, 2017

Install Centos on Parallels using Vagrant on OS X

It is helpful to have a local Centos Linux installation for development and testing.

Step-by-step guide

Note: run the following commands from a Terminal window.

Install Brew:
  1. Note: you might need to install the Xcode tools first, run Xcode, and accept the license agreement
  2. xcode-select –install
  3. ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Install Vagrant:
  1. brew cask install vagrant
  2. brew cask install vagrant-manager
Install Parallels Vagrant plugin:
  1. vagrant plugin install vagrant-parallels
Setup a directory for your Vagrant project:
  1. mkdir new_vagrant_project
  2. cd new_vagrant_project
Install Centos:
  1. vagrant init bento/centos-7.2
  2. vagrant up --provider parallels
SSH to your new VM:
  1. vagrant ssh
Resources:
  1. http://parallels.github.io/vagrant-parallels/docs/getting-started.html 
  2. http://www.howtogeek.com/211541/homebrew-for-os-x-easily-installs-desktop-apps-and-terminal-utilities/ 
  3. http://sourabhbajaj.com/mac-setup/Vagrant/README.html 
I hope that you found this helpful.  Now that you have it setup you can install whatever tools that you like such as Ansible, Java, etc...  Cheers.