Pages

Saturday, December 26, 2015

Vagrant Boxes

From the previous article, we have seen how we can configure a Virtual box. But in most cases building a virtual machine from scratch which is somewhat slow and time consuming, it is advisable to add the box image which helps people to clone other virtuals using that image. These base images are known as boxes in Vagrant. Boxes are added to Vagrant with command “vagrant box add”. This stores the box under a specific name so that multiple Vagrant environments can re-use it. In this article we will see how we can add a box before creating that

 [root@vx111a vagt]# vagrant box add precise32 http://files.vagrantup.com/precise32.box
==> box: Box file was not detected as metadata. Adding it directly...
==> box: Adding box 'precise32' (v0) for provider:
    box: Downloading: http://files.vagrantup.com/precise32.box
==> box: Successfully added box 'precise32' (v0) for 'virtualbox'!

Now the box for the Precise32 has been added. Check the box list to see whether the Precise32 is available or now.

[root@vx111a vagt]# vagrant box list
precise32 (virtualbox, 0)

No comments :

Post a Comment