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

Popular posts from this blog

jquery - How do you format the date used in the popover widget title of FullCalendar? -

asp.net mvc - SSO between MVCForum and Umbraco7 -

Python Tkinter keyboard using bind -