virtualbox - How vagrantfile use dowloaded vagrant box -
after download centos6.6 vagrant box official site of vagrant . how use them ,in vagrantfile ?
to add box have downloaded in vagrant use command :
vagrant box add {title} {url or path .box}
you can list box installed command:
vagrant box list # example output : hashicorp/precise32 (virtualbox, 1.0.0) mitchellh/boot2docker (virtualbox, 1.2.0)
to use box, simpliest way put parameter in vagrantfile
:
# -*- mode: ruby -*- # vi: set ft=ruby : vagrant.configure(2) |config| config.vm.box = "mitchellh/boot2docker" end
then in folder run command :
vagrant
Comments
Post a Comment