macos-setup
  • MacOS Setup Guidance
  • Homebrew
    • Using Homebrew
    • cask
  • Terminal
    • iterm2
    • Terminal Hot keys
    • Zsh
    • Fish
    • tree
  • Git
    • Git Ignore (global)
  • Vagrant
  • Sublime TXT
    • Subl plugins
  • VIM
    • Hot keys
  • Python
    • pip
    • IPython
    • Virtualenv
  • Xcode
  • Evernote
Powered by GitBook
On this page
  • Installation
  • Configuration
  • Usage

Was this helpful?

Vagrant

PreviousGit Ignore (global)NextSublime TXT

Last updated 5 years ago

Was this helpful?

Create and configure lightweight, reproducible, and portable development environments. is a tool for managing virtual machines via a simple to use command line interface.

Installation

Vagrant uses to manage the virtual dependencies. You can and install or use Homebrew for it. Notice that macOS High Sierra 10.13 introduces a new feature that requires user approval before loading new third-party kernel extensions. In case of failure follow the instructions .

$ brew cask install virtualbox

Now install Vagrant either or use Homebrew for installing it.

$ brew cask install vagrant

helps you manage all your virtual machines in one place directly from the menu bar.

$ brew cask install vagrant-manager

Configuration

configuration file:

~/vagrant/Vagrantfile

Usage

Add the Vagrant box you want to use. We'll use Ubuntu 12.04 for the following example.

$ vagrant box add precise64 https://vagrantcloud.com/hashicorp/boxes/precise64/versions/1.1.0/providers/virtualbox.box

You can find more boxes at .

Now create a test directory and cd into the test directory. Then we'll initialize the vagrant machine.

$ vagrant init precise64

Now lets start the machine using the following command.

$ vagrant up

You can ssh into the machine now.

$ vagrant ssh

Halt the vagrant machine now.

$ vagrant halt

Other useful commands are suspend and destroy.

Vagrant
Virtualbox
directly download virtualbox
here
from the website
Vagrant-Manager
Vagrant Cloud