Need advice about which tool to choose?Ask the StackShare community!

Packer

541
502
+ 1
42
Vagrant

9.1K
6.7K
+ 1
1.5K
Add tool

Packer vs Vagrant: What are the differences?

Packer: Create identical machine images for multiple platforms from a single source configuration. Packer automates the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts to install and configure the software within your Packer-made images; Vagrant: A tool for building and distributing development environments. Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.

Packer and Vagrant are primarily classified as "Infrastructure Build" and "Virtual Machine Management" tools respectively.

Some of the features offered by Packer are:

  • Super fast infrastructure deployment. Packer images allow you to launch completely provisioned and configured machines in seconds, rather than several minutes or hours.
  • Multi-provider portability. Because Packer creates identical images for multiple platforms, you can run production in AWS, staging/QA in a private cloud like OpenStack, and development in desktop virtualization solutions such as VMware or VirtualBox.
  • Improved stability. Packer installs and configures all the software for a machine at the time the image is built. If there are bugs in these scripts, they'll be caught early, rather than several minutes after a machine is launched.

On the other hand, Vagrant provides the following key features:

  • Boxes
  • Up And SSH
  • Synced Folders

"Cross platform builds" is the top reason why over 24 developers like Packer, while over 354 developers mention "Development environments" as the leading cause for choosing Vagrant.

Packer and Vagrant are both open source tools. It seems that Vagrant with 18.6K GitHub stars and 3.74K forks on GitHub has more adoption than Packer with 9.1K GitHub stars and 2.47K GitHub forks.

According to the StackShare community, Vagrant has a broader approval, being mentioned in 802 company stacks & 478 developers stacks; compared to Packer, which is listed in 115 company stacks and 21 developer stacks.

Get Advice from developers at your company using Private StackShare. Sign up for Private StackShare.
Learn More
Pros of Packer
Pros of Vagrant
  • 27
    Cross platform builds
  • 9
    Vm creation automation
  • 4
    Bake in security
  • 1
    Good documentation
  • 1
    Easy to use
  • 352
    Development environments
  • 290
    Simple bootstraping
  • 238
    Free
  • 139
    Boxes
  • 132
    Provisioning
  • 84
    Portable
  • 81
    Synced folders
  • 69
    Reproducible
  • 51
    Ssh
  • 44
    Very flexible
  • 5
    Works well, can be replicated easily with other devs
  • 5
    Easy-to-share, easy-to-version dev configuration
  • 3
    Great
  • 2
    Quick way to get running
  • 2
    Just works
  • 1
    What is vagrant?
  • 1
    Container Friendly
  • 1
    DRY - "Do Not Repeat Yourself"
  • 1
    Good documentation

Sign up to add or upvote prosMake informed product decisions

Cons of Packer
Cons of Vagrant
    Be the first to leave a con
    • 2
      Can become v complex w prod. provisioner (Salt, etc.)
    • 2
      Multiple VMs quickly eat up disk space
    • 1
      Development environment that kills your battery

    Sign up to add or upvote consMake informed product decisions

    What is Packer?

    Packer automates the creation of any type of machine image. It embraces modern configuration management by encouraging you to use automated scripts to install and configure the software within your Packer-made images.

    What is Vagrant?

    Vagrant provides the framework and configuration format to create and manage complete portable development environments. These development environments can live on your computer or in the cloud, and are portable between Windows, Mac OS X, and Linux.

    Need advice about which tool to choose?Ask the StackShare community!

    What companies use Packer?
    What companies use Vagrant?
    See which teams inside your own company are using Packer or Vagrant.
    Sign up for Private StackShareLearn More

    Sign up to get full access to all the companiesMake informed product decisions

    What tools integrate with Packer?
    What tools integrate with Vagrant?

    Sign up to get full access to all the tool integrationsMake informed product decisions

    What are some alternatives to Packer and Vagrant?
    Docker
    The Docker Platform is the industry-leading container platform for continuous, high-velocity innovation, enabling organizations to seamlessly build and share any application — from legacy to what comes next — and securely run them anywhere
    Terraform
    With Terraform, you describe your complete infrastructure as code, even as it spans multiple service providers. Your servers may come from AWS, your DNS may come from CloudFlare, and your database may come from Heroku. Terraform will build all these resources across all these providers in parallel.
    Ansible
    Ansible is an IT automation tool. It can configure systems, deploy software, and orchestrate more advanced IT tasks such as continuous deployments or zero downtime rolling updates. Ansible’s goals are foremost those of simplicity and maximum ease of use.
    AWS CloudFormation
    You can use AWS CloudFormation’s sample templates or create your own templates to describe the AWS resources, and any associated dependencies or runtime parameters, required to run your application. You don’t need to figure out the order in which AWS services need to be provisioned or the subtleties of how to make those dependencies work.
    Pulumi
    Pulumi is a cloud development platform that makes creating cloud programs easy and productive. Skip the YAML and just write code. Pulumi is multi-language, multi-cloud and fully extensible in both its engine and ecosystem of packages.
    See all alternatives