Book Image

Creating Development Environments with Vagrant

By : MICHAEL KEITH PEACOCK
Book Image

Creating Development Environments with Vagrant

By: MICHAEL KEITH PEACOCK

Overview of this book

Table of Contents (17 chapters)
Creating Development Environments with Vagrant Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Too many Vagrants!


Once we start using Vagrant on a range of projects, the lack of a GUI can make it easy to lose track of which projects are running or suspended on your machine. This is especially annoying when you want to boot up a new project, but an existing Vagrant project is either causing a conflict or consuming too many resources on your machine. Thankfully, there is now a command to list all active Vagrant environments on your host, for example, vagrant global-status.

This command lists the IDs, names, providers, and states of our Vagrant projects as well as the directory they are running in:

We can append the ID to the end of the vagrant command to run the command against that machine, without having to go into that folder, for example:

vagrant suspend 77e5115