Skip to content

Instantly share code, notes, and snippets.

@narutaro
Last active October 10, 2016 07:24
Show Gist options
  • Save narutaro/1944f32c005ea3d7ce6bb58be78881c4 to your computer and use it in GitHub Desktop.
Save narutaro/1944f32c005ea3d7ce6bb58be78881c4 to your computer and use it in GitHub Desktop.
Quick setup - vagrant with virtualbox

Install vagrant and virtualbox

Manually download from below.

Versions

Vagrant

$ vagrant -v
Vagrant 1.8.6

Virtualbox

$ vboxmanage --version
5.1.6r110634

Find an image

Find an image in the hashicorp boxes search page

Pull image and start

$ mkdir -p vagrant/ubuntu
$ cd vagrant/ubuntu
$ vagrant init

### You get Vagrantfile here. Edit it if you need ###

$ vagrant up

Status check

$ vagrant status
Current machine states:

default                   running (virtualbox)

The VM is running. To stop this VM, you can run `vagrant halt` to
shut it down forcefully, or you can run `vagrant suspend` to simply
suspend the virtual machine. In either case, to restart it again,
simply run `vagrant up`.

SSH into the VM

$ vagrant ssh
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment