ADD VAGRANT BOX

Use “vagrant box add” command to add a vagram box (image) to your local drive. NOTE: This is not virtual machine deployment step.

To add CentOS 7 box to our local repositiry execute “vagrant box add centos/7”. “centos/7” is the name of the vagrant box in “https://app.vagrantup.com/centos/boxes/7“. I’m going to use Oracle Virtualbox (option 3)

C:>vagrant box add centos/7
==> box: Loading metadata for box 'centos/7'
box: URL: https://vagrantcloud.com/centos/7
This box can work with multiple providers! The providers that it
can work with are listed below. Please review the list and choose
the provider you will be working with.
1) hyperv
2) libvirt
3) virtualbox
4) vmware_desktop
Enter your choice: 3
==> box: Adding box 'centos/7' (v1811.02) for provider: virtualbox
box: Downloading: https://vagrantcloud.com/centos/boxes/7/versions/1811.02/providers/virtualbox.box
box: Download redirected to host: cloud.centos.org
box: Progress: 100% (Rate: 556k/s, Estimated time remaining: --:--:--)
==> box: Successfully added box 'centos/7' (v1811.02) for 'virtualbox'!
C:>

Leave a Reply

Your email address will not be published. Required fields are marked *

one × 4 =