Now move into the newly created directory and run the vagrant init command, which will create a vagrant configuration file in your project directory. You can create this directory in any location you want in your file system. Open the terminal and create a project directory by running the following command. Let’s start creating a project and download a vagrant box. On the site, you can search for different box flavors (CentOS, Ubuntu, Arch, etc.) and you also have the option to choose a Provider (here we using VirtualBox as provider). There are boxes hosted on the vagrant site which is already packaged and ready to use. You can create your own custom box and share it among others and use an identical environment or download the boxes from the vagrant site. There are two ways you can get the boxes. When I say boxes throughout this series I am just referring to a virtual machine. When you download or package a virtual machine to be used in vagrant it will be in box format. The vagrant box is a package format for the vagrant environment. In this article, you will learn how to create a Vagrant project to install a vagrant box, configure a guest machine, and understand core aspects of vagrant and important configurations and commands. In the previous article, we have seen how to set up vagrant in your Linux distribution.
0 Comments
Leave a Reply. |