HashiCorp/Vagrant

From Ever changing code
< HashiCorp
Revision as of 13:58, 24 February 2016 by Pio2pio (talk | contribs) (Created page with "= Getting started = Create Vagrant project, by creating ''Vagrantfile'' in your current directory vagrant init Add boxes (standard VMs from providers in Virtualbox, VMware o...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Getting started

Create Vagrant project, by creating Vagrantfile in your current directory

vagrant init

Add boxes (standard VMs from providers in Virtualbox, VMware or Hyper-V format)

vagrant box add hashicorp/precise64        #username: hashicorp boximage: precise64, this is preconfigured repository
#Box can be specified via URLs or local file paths
vagrant box add --force ubuntu/14.04 https://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box

Configure Vagrantfile to use the box as your base system

Vagrant.configure("2") do |config|
 config.vm.box = "ubuntu/14.04"
end

Resources