O'Reilly logo

Creating Development Environments with Vagrant by Michael Peacock

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. Managing Vagrant Boxes and Projects

In this chapter, we will learn the basics of using Vagrant. We will look at initializing projects, importing base boxes to be used as our operating system, and controlling the virtual machine by powering on and off, suspending and resuming, and connecting to the box. Finally, we will also learn how to configure some of the key integration points between our own machine and our Vagrant-controlled virtual machine, including:

  • Port forwarding
  • Folder mapping
  • Networking

Creating Vagrant projects

Now that we have Vagrant installed on our machine, let's look at creating projects. There are three different ways we can do this:

  • Create a new project with a named base box and a location where the box can be downloaded ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required