Adding Vagrant Plugins

15 minutes
  • 3 Learning Objectives

About this Hands-on Lab

While Vagrant offers plenty of features out of the box, it’s not uncommon to come across a Vagrantfile that requires some kind of additional plugin to run properly. Vagrant plugins can be managed via the `vagrant plugin` command, and are generally single-command installs. In this hands-on lab, we will add, remove, and otherwise manage various plugins to ensure we have the proper setup to support our Vagrantfile.

Learning Objectives

Successfully complete this lab by achieving the following learning objectives:

Review and Update Current Vagrant Setup
  1. List current plugins:

    vagrant plugin list
  2. Remove existing plugins; any of the following commands will work:

    vagrant plugin uninstall vagrant-hostmanager
    vagrant plugin expunge
Add Required Provider and Plugin
  1. Install the LXC provider:

    vagrant plugin install vagrant-lxc
  2. Install the vagrant-git plugin:

    vagrant plugin install vagrant-git
Run the Vagrantfile
  1. We can check that we have the proper plugins installed by running the provided Vagrantfile:

    cd lxc-env
    vagrant up

Additional Resources

You have been promoted to the role of DevOps Engineer. Your team uses Linux Containers (LXC) to deploy various application containers that run much of the company's product, and provides a simple Vagrantfile that can be used to deploy a local version of the company's environment. To use this Vagrantfile, you need to install both the LXC provider and the vagrant-git plugin.

Your previous team had briefly used Vagrant, so you already have Vagrant installed. However, you want to remove any old plugins from your workstation before adding new ones. Take the time to review your current Vagrant setup, uninstall any existing plugins, and then add the new provider along with vagrant-git.

When you have finished updating the Vagrant setup, ensure that you have the needed providers and plugins by running vagrant up in the provided lxc-env directory.

For detailed instructions on how to complete these tasks, expand each learning objective below, or click the Guide tab above the video player.

What are Hands-on Labs

Hands-on Labs are real environments created by industry experts to help you learn. These environments help you gain knowledge and experience, practice without compromising your system, test without risk, destroy without fear, and let you learn from your mistakes. Hands-on Labs: practice your skills before delivering in the real world.

Get Started
Who’s going to be learning?

How many seats do you need?

  • $499 USD per seat per year
  • Billed Annually
  • Renews in 12 months

Ready to accelerate learning?

For over 25 licenses, a member of our sales team will walk you through a custom tailored solution for your business.


$2,495.00

Checkout
Sign In
Welcome Back!

Psst…this one if you’ve been moved to ACG!