Vagrant is for virtual machines what Docker is for containers. Vagrant is a wrapper for different hypervisor programs like VMware Workstation Pro, VMware Player, VirtualBox, Hyper-V, VMware vSphere, etc. Vagrant uses a simple text-based configuration file called Vagrantfile to quickly set up a development environment with one of the supported virtual machine providers/hypervisors.

Vagrant can quickly configure virtual machines based on your project requirement and get them up and running. Vagrant command-line interface provides easy management for the virtual machines as well. You can easily SSH into any Vagrant-managed virtual machines, configure them, destroy them and recreate them on the fly. Vagrant simplifies managing virtual machines for development projects and saves a lot of time.

Vagrant also makes sharing your work with other people really easy. All you have to do is share the Vagrantfile of your project, and the person on the other side can recreate everything with Vagrant.

In this article, I will show you how to install the latest version of Vagrant on Ubuntu 20.04 LTS and configure Vagrant to use VMware Workstation Pro 16 as a virtual machine provider. So, let’s get started.

Table of Contents

  1. Things You Will Need
  2. Installing Required Dependencies
  3. Installing Vagrant
  4. Installing Vagrant VMware Utility
  5. Installing Vagrant VMware Desktop Provider Plugin
  6. Getting Started with Vagrant VMware Desktop Provider
  7. Conclusion
  8. References

Things You Will Need

To set up Vagrant to use VMware Workstation Pro 16 as a virtual machine provider, you must have VMware Workstation Pro 16 installed on your computer.

If you need any assistance in installing VMware Workstation Pro 16 on your computer, you may check out the following articles.

  1. How to Install VMware Workstation Pro 16 on Windows
  2. How to Install VMware Workstation Pro 16 on Linux

Installing Required Dependencies

The latest version of Vagrant can be downloaded from the official package repository of Vagrant. To add the official Vagrant package repository on Ubuntu 20.04 LTS, you will have to download the GPG key of the official Vagrant package repository and add it to the APT package manager.  You will need to use curl to do that from the command line.

You can install curl from the official package repository of Ubuntu 20.04 LTS.

First, update the APT package repository cache as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-01.png" data-lazy- height="220" src="data:image/svg xml,” width=”624″>

To install curl, run the following command:

$ sudo apt install curl -y

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-02.png" data-lazy- height="116" src="data:image/svg xml,” width=”624″>

curl should be installed.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-03.png" data-lazy- height="352" src="data:image/svg xml,” width=”624″>

Installing Vagrant

In this section, I will show you how to install the latest version of Vagrant on Ubuntu 20.04 LTS from the official package repository of Vagrant.

First, download the HashiCorp GPG key and add it to the APT package manager with the following command:

$ curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add –

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-04.png" data-lazy- height="78" src="data:image/svg xml,” width=”624″>

Add the official Vagrant package repository to the APT package manager with the following command:

$ sudo apt-add-repository “deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main”

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-05.png" data-lazy- height="42" src="data:image/svg xml,” width=”624″>

The official Vagrant package repository should be added.

Update the APT package repository cache with the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-06.png" data-lazy- height="204" src="data:image/svg xml,” width=”624″>

To install the latest version of Vagrant, run the following command:

$ sudo apt install vagrant -y

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-07.png" data-lazy- height="88" src="data:image/svg xml,” width=”624″>

The APT package manager should download the latest version of Vagrant from the official package repository of Vagrant.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-08.png" data-lazy- height="204" src="data:image/svg xml,” width=”624″>

Once the latest version of Vagrant is downloaded, it will install it on your computer.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-09.png" data-lazy- height="348" src="data:image/svg xml,” width=”624″>

At this point, the latest version of Vagrant should be installed.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-10.png" data-lazy- height="288" src="data:image/svg xml,” width=”624″>

Once Vagrant is installed, you should be able to run the vagrant command from the command-line as any other command.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-11.png" data-lazy- height="132" src="data:image/svg xml,” width=”624″>

Installing Vagrant VMware Utility

To use VMware Workstation Pro 16 with Vagrant, you must install the Vagrant VMware Utility.

To download the latest version of Vagrant VMware Utility, navigate to the link VMware Utility Downloads | Vagrant by HashiCorp from your favorite web browser.

Once the page loads, click on Debian > 64-bit as marked in the screenshot below.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-12.png" data-lazy- height="438" src="data:image/svg xml,” width=”624″>

Your browser should prompt you to save the vagrant-vmware-utility-*.deb package file. Select Save File and click on OK.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-13.png" data-lazy- height="442" src="data:image/svg xml,” width=”624″>

The vagrant-vmware-utility-*.deb package file should be downloaded.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-14.png" data-lazy- height="440" src="data:image/svg xml,” width=”624″>

Now, navigate to the ~/Downloads directory as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-15.png" data-lazy- height="130" src="data:image/svg xml,” width=”494″>

The vagrant-vmware-utility_1.0.20_x86_64.deb package file that you’ve just downloaded should be here.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-16.png" data-lazy- height="170" src="data:image/svg xml,” width=”624″>

To install the vagrant-vmware-utility_1.0.20_x86_64.deb package file, run the following command:

$ sudo apt install ./vagrant-vmware-utility_1.0.20_x86_64.deb

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-17.png" data-lazy- height="50" src="data:image/svg xml,” width=”624″>

The APT package manager should start installing the vagrant-vmware-utility_1.0.20_x86_64.deb package.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-18.png" data-lazy- height="356" src="data:image/svg xml,” width=”624″>

The package file vagrant-vmware-utility_1.0.20_x86_64.deb should be installed.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-19.png" data-lazy- height="324" src="data:image/svg xml,” width=”624″>

Installing Vagrant VMware Desktop Provider Plugin

Once you have installed Vagrant and Vagrant VMware Utility, you can easily install the Vagrant plugin vagrant-vmware-desktop with the following command:

$ vagrant plugin install vagrant-vmware-desktop

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-20.png" data-lazy- height="80" src="data:image/svg xml,” width=”624″>

Vagrant should download all the required files from the internet. It may take a few seconds to complete.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-21.png" data-lazy- height="86" src="data:image/svg xml,” width=”624″>

At this point, the Vagrant plugin vagrant-vmware-desktop should be installed.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-22.png" data-lazy- height="130" src="data:image/svg xml,” width=”624″>

Getting Started with Vagrant VMware Desktop Provider:

In this section, I will show you how to get a Vagrant project up and running. I will set up a simple Apache 2 web server for the demonstration. So, let’s get started.

Create a new project directory ~/http-server (let’s say) with the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-23.png" data-lazy- height="92" src="data:image/svg xml,” width=”560″>

Navigate to the newly created project directory as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-24.png" data-lazy- height="122" src="data:image/svg xml,” width=”624″>

Now, you need to create a new file Vagrantfile, specify the Vagrant Box that you want to use for the webserver, and configure it using the Vagrantfile.

A Vagrant Box is the base virtual machine image that Vagrant will use to create new virtual machines.

You can find all the available Vagrant Boxes on the official website of Vagrant.

Visit the link Discover Vagrant Boxes – Vagrant Cloud from your favorite web browser, and you should see the following page.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-25.png" data-lazy- height="440" src="data:image/svg xml,” width=”624″>

To search for VMware Workstation Pro 16 Vagrant Boxes, select vmware as the Provider, type in the name of the operating system you want to search for, and press .

You should see a list of Vagrant Boxes matching your search query. You can use the Vagrant Box that you like on your project. All you need is the name of the Vagrant Box.

For example, the marked Vagrant Box is called hashicorp/bionic64. It is a Ubuntu 18.04 LTS Vagrant Box.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-26.png" data-lazy- height="438" src="data:image/svg xml,” width=”624″>

In this article, I will use the generic/ubuntu2004 Vagrant Box for setting up the webserver. It is a Ubuntu 20.04 LTS Vagrant Box.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-27.png" data-lazy- height="436" src="data:image/svg xml,” width=”624″>

You can click on any Vagrant Box from the search page to see more information about the Vagrant Box.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-28.png" data-lazy- height="440" src="data:image/svg xml,” width=”624″>

Once you’ve decided on what Vagrant Box to use, create a new Vagrantfile with the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-29.png" data-lazy- height="88" src="data:image/svg xml,” width=”624″>

Type in the following lines of codes in the Vagrantfile.

Vagrant.configure(“2”) do |config|


config.vm.box = “generic/ubuntu2004”


config.vm.provision :shell, path: “bootstrap.sh”


config.vm.synced_folder “html/”, “https://linuxhint.com/var/www/html”


config.vm.network :forwarded_port, guest: 80, host: 8080


end

Once you’re done, press X followed by Y and to save the Vagrantfile.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-30.png" data-lazy- height="352" src="data:image/svg xml,” width=”624″>

The line config.vm.box is used to configure the Vagrant Box to use for this project. In this case, the Vagrant Box is generic/ubuntu2004.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-31.png" data-lazy- height="42" src="data:image/svg xml,” width=”582″>

To start the Vagrant project, run the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-32.png" data-lazy- height="112" src="data:image/svg xml,” width=”572″>

Vagrant will download the Vagrant Box generic/ubuntu2004 from the internet as you’re using this Vagrant Box for the first time.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-33.png" data-lazy- height="226" src="data:image/svg xml,” width=”624″>

The download may take a while to complete depending on the size of the Vagrant Box image.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-34.png" data-lazy- height="220" src="data:image/svg xml,” width=”624″>

Once the Vagrant Box is downloaded, Vagrant should create the required virtual machines for the project, configure them, and start them.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-35.png" data-lazy- height="316" src="data:image/svg xml,” width=”624″>

In this case, only 1 virtual machine default is created. It is using the vmware_desktop plugin, and it’s running, as you can see in the screenshot below.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-36.png" data-lazy- height="248" src="data:image/svg xml,” width=”624″>

You can SSH into the virtual machine as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-37.png" data-lazy- height="96" src="data:image/svg xml,” width=”576″>

You should be connected to the virtual machine’s console via SSH, as shown in the screenshot below.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-38.png" data-lazy- height="116" src="data:image/svg xml,” width=”624″>

You can run any command you want in the virtual machine.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-39.png" data-lazy- height="312" src="data:image/svg xml,” width=”624″>

Once you’re done, you can exit out of the SSH session as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-40.png" data-lazy- height="148" src="data:image/svg xml,” width=”472″>

That’s how you use Vagrant.

Now, let’s set up a simple web server with Vagrant.

First, create a new directory html/ in the Vagrant project directory ~/http-server as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-41.png" data-lazy- height="80" src="data:image/svg xml,” width=”624″>

Create an index.html file in the newly created html/ directory as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-42.png" data-lazy- height="100" src="data:image/svg xml,” width=”624″>

Type in the following line in the index.html file.

Once you’re done, press X followed by Y and to save the index.html file.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-43.png" data-lazy- height="340" src="data:image/svg xml,” width=”624″>

Create a bootstrap.sh shell script in the Vagrant project directory ~/http-server as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-44.png" data-lazy- height="88" src="data:image/svg xml,” width=”624″>

In the bootstrap.sh file, I will type in all the commands that I want Vagrant to automatically run on the virtual machine to set up the webserver. In Vagrant’s terms, it’s called provisioning.

Type in the following lines of codes in the bootstrap.sh file.

#!/usr/bin/env bash

apt-get update


apt-get install -y apache2

Once you’re done, press X followed by Y and to save the bootstrap.sh file.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-45.png" data-lazy- height="334" src="data:image/svg xml,” width=”624″>

Open the Vagrantfile with the nano text editor as follows:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-46.png" data-lazy- height="80" src="data:image/svg xml,” width=”624″>

Type in the following lines of codes in the Vagrantfile.

Vagrant.configure(“2”) do |config|


config.vm.box = “generic/ubuntu2004”


config.vm.provision :shell, path: “bootstrap.sh”


config.vm.synced_folder “html/”, “https://linuxhint.com/var/www/html”


config.vm.network :forwarded_port, guest: 80, host: 8080


end

Once you’re done, press X followed by Y and to save the Vagrantfile file.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-47.png" data-lazy- height="336" src="data:image/svg xml,” width=”624″>

Here, the line config.vm.provision is used to run the shell script bootstrap.sh (that you’ve just written) for provisioning the virtual machine.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-48.png" data-lazy- height="26" src="data:image/svg xml,” width=”542″>

The line config.vm.synced_folder is used to mount the html/ directory from the Vagrant project directory ~/http-server on the /var/www/html directory of the virtual machine.

Note that /var/www/html is the default webroot of the Apache 2 web server.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-49.png" data-lazy- height="28" src="data:image/svg xml,” width=”548″>

Finally, the line config.vm.network is used to forward port 80 of the virtual machine to port 8080 of your computer so that you can access the webserver from your computer.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-50.png" data-lazy- height="24" src="data:image/svg xml,” width=”624″>

For the changes to take effect and to run the provisioning script, run the following command:

$ vagrant reload –provision

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-51.png" data-lazy- height="74" src="data:image/svg xml,” width=”624″>

Vagrant should automatically install the Apache webserver on the virtual machine, mount the ~/http-server/html directory on the /var/www/html directory of the virtual machine, and forward the port 80 to port 8080 of your computer.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-52.png" data-lazy- height="316" src="data:image/svg xml,” width=”624″>

As you can see, the virtual machine (guest) port 80 is forwarded to port 8080 of your computer (host).

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-53.png" data-lazy- height="196" src="data:image/svg xml,” width=”624″>

Now, open a web browser and visit http://localhost:8080, and you should see the following page. It means that everything is working just fine.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-54.png" data-lazy- height="328" src="data:image/svg xml,” width=”624″>

If you have made any changes to the Vagrantfile (i.e., changed forward port, added new shared folders), you will need to run the following command for the changes to take effect if the Vagrant project is already up/running.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-55.png" data-lazy- height="74" src="data:image/svg xml,” width=”624″>

If you have made any changes to the provisioning script bootstrap.sh, you will have to run the following command for the changes to take effect.

$ vagrant reload –provision

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-56.png" data-lazy- height="74" src="data:image/svg xml,” width=”624″>

If you want to suspend all the virtual machines used in your Vagrant project, run the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-57.png" data-lazy- height="88" src="data:image/svg xml,” width=”624″>

If you want to resume the suspended virtual machines used in your Vagrant project, run the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-58.png" data-lazy- height="92" src="data:image/svg xml,” width=”624″>

If you want to shut down the virtual machines used in your Vagrant project, run the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-59.png" data-lazy- height="92" src="data:image/svg xml,” width=”618″>

If you’ve shut down all the virtual machines used in your Vagrant project, you can bring them all up with the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-60.png" data-lazy- height="88" src="data:image/svg xml,” width=”556″>

If you want to remove all the virtual machines used in your Vagrant project for good, run the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-61.png" data-lazy- height="72" src="data:image/svg xml,” width=”624″>

Even if you completely destroy all the virtual machines used in your Vagrant project, you can use the following command to recreate everything.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/How-to-Install-VMware-Workstation-Pro-16-on-Linux-62.png" data-lazy- height="88" src="data:image/svg xml,” width=”556″>

Conclusion

In this article, I have shown you how to install the latest version of Vagrant on Ubuntu 20.04 LTS. I have also shown you how to install Vagrant VMware Utility and Vagrant VMware Desktop Provider plugin to configure Vagrant to use VMware Workstation Pro 16 as the virtual machine provider. I have shown you a simple Vagrant example where you set up an Apache 2 web server using Vagrant.

References

[1] Downloads | Vagrant by HashiCorp


[2] VMware Utility Downloads | Vagrant by HashiCorp


[3] Installation – VMware Provider | Vagrant by HashiCorp


[4] Command-Line Interface | Vagrant by HashiCorp

About the author

<img data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2021/10/echo/photo2-150×150.png6165064eaf242.jpg" height="112" src="data:image/svg xml,” width=”112″>

Shahriar Shovon

Freelancer & Linux System Administrator. Also loves Web API development with Node.js and JavaScript. I was born in Bangladesh. I am currently studying Electronics and Communication Engineering at Khulna University of Engineering & Technology (KUET), one of the demanding public engineering universities of Bangladesh.