Creating a local VM using the Vagrant CLI
Now that we have written the configuration file, we can create our VM locally.
To perform this, we will use several Vagrant CLI commands. To display all of the available commands, we will run the vagrant --help
command:
Note
All details about the Vagrant CLI commands are documented at https://www.vagrantup.com/docs/cli.
In the next section we will learn how to create the VM, then we will connect to this VM, and finally we will perform some scripts.
Creating the VM
To create the VM, navigate to the folder in which we created the Vagrantfile
file, and run the following command:
vagrant up
The output is shown in the following screenshot:
The execution of the preceding command performs the following steps:
- Import the box from Vagrant Cloud.
- Create...