Skip to content

Instantly share code, notes, and snippets.

@kotaroito
Last active December 21, 2015 05:18
Show Gist options
  • Save kotaroito/6255538 to your computer and use it in GitHub Desktop.
Save kotaroito/6255538 to your computer and use it in GitHub Desktop.
Old way to use vagrant. Don't use vagrant which is installed via gem.
# install vagrant
$ gem install vagrant

# download box
$ cd ~/Downloads; 
$ curl -L http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130731.box -o CentOS-6.4-x86_64-v20130731.box

# add box
$ vagrant box add centos6.4-x86_64 ./CentOS-6.4-x86_64-v20130309.box

# initialize
$ mkdir ~/vagrant; cd ~/vagrant
$ vagrant init centos6.4-x86_64

$ cat Vagrantfile
# -*- mode: ruby -*-                                                                                                                                                                            
# vi: set ft=ruby :                                                                                                                                                                             
                                                                                                                                                                                                
Vagrant::Config.run do |config|
  config.vm.box = "CentOS-6.4-x86_64"   
  config.vm.network :bridged
end
# boot up
$ vagrant up

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