Packer VS Vagrant

Compare Packer vs Vagrant and see what are their differences.

Packer

Packer is a tool for creating identical machine images for multiple platforms from a single source configuration. (by hashicorp)

Vagrant

Vagrant is a tool for building and distributing development environments. (by hashicorp)
Our great sponsors
  • WorkOS - The modern identity platform for B2B SaaS
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • SaaSHub - Software Alternatives and Reviews
Packer Vagrant
65 115
14,872 25,835
0.5% 0.5%
9.4 9.0
6 days ago 18 days ago
Go Ruby
GNU General Public License v3.0 or later MIT License
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

Packer

Posts with mentions or reviews of Packer. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-02-20.
  • The 2024 Web Hosting Report
    37 projects | dev.to | 20 Feb 2024
    To manage a VM, you can use something as simple as just manual actions over SSH, or can use tools like Ansible, Hashicorp's Packer and Terraform or other automations. For an app where there is minimal load and security/reliability concern, VMs are still a great option that provide a lot of value for the buck
  • Avoiding DevOps tool hell
    9 projects | dev.to | 24 Jul 2023
    Server templating: Using Packer has never been easier to create reusable server configurations in a platform-independent and documented manner.
  • How to create an iso image of a finished system
    1 project | /r/linux4noobs | 19 Jun 2023
    I'll give you hard, but rewarding and easy to modify(once you know what you're doing) way. Packer may be a thing you're looking for.
  • 13.2 ZFS root AMIs in AWS
    1 project | /r/freebsd | 17 May 2023
    It is straightforward to build them with packer (I have built AMIs for 13.0 and 13.1, but 13.2 should be exactly the same). I've been meaning to write a blog post about it for a while, but have not gotten to it yet... In any case, what I am doing is using the EBS Surrogate Builder to start an instance running the official FreeBSD 13.2 image with an extra volume attached and run a script to create a zpool on the extra volume and bootstrap and configure FreeBSD 13.2-RELEASE on it. After that packer takes care of creating an AMI out of that extra volume, so you can use it... If you have any issues, let me know, and maybe I will finally get to writing that blog post...
  • DevOps Tooling Landscape
    12 projects | dev.to | 4 Apr 2023
    HashiCorp Packer is a tool for creating machine images for a variety of platforms, including AWS, Azure, and VMware. It allows you to define machine images as code and supports a wide range of configuration options.
  • auto-provisioning multiple raspberry pi's
    2 projects | /r/selfhosted | 19 Mar 2023
    Packer is a tool that can be used to build machine images. Basically, it takes a base image, runs a series of steps to provision that image, and then burns a new image. In my workplace we use it heavily to build AWS AMIs. But it has an ARM plugin that looks to be very very suitable for building customised Raspberry Pi images (my quick read of the doco there says it can go ahead and write the final image to an SD card for you too).
  • How do hosting companies immediately create vm right after purchasing one?
    2 projects | /r/linux | 5 Mar 2023
  • Packer preseed file seems to not be read
    1 project | /r/hashicorp | 18 Feb 2023
    Seems related to https://github.com/hashicorp/packer/issues/12118 But the workaround discribed in the comments doesn’t seems to work anymore
  • How to create AMI which also copies the user data?
    1 project | /r/aws | 5 Jan 2023
    I'd suggest using a tool like Packer to build a gold image based on your base AMI and all your changes. Then you'll have your own AMI you can launch new instances with.
  • Is migrate for compute engine M4CE suitable for migrating VMs (to GCP) which are part of auto scaling groups in AWS ?
    1 project | /r/googlecloud | 3 Jan 2023
    Your assumption sounds correct. It sounds like you shouldn't focus on migrating specific instances, but instead migrating the template image used for autoscaling into GCP. I tend to prefer Packer for this job, or otherwise recreating the golden image directly on GCP.

Vagrant

Posts with mentions or reviews of Vagrant. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-04-20.
  • Ask HN: Please recommend how to manage personal serverss
    3 projects | news.ycombinator.com | 20 Apr 2024
    Take a look at Vagrant! https://www.vagrantup.com/ In my admittedly limited understanding I believe it offers closer to a nix like reproducable rather than repeatable deployments.
  • Software Company HashiCorp Is Weighing a Potential Sale
    4 projects | news.ycombinator.com | 16 Mar 2024
    on the off chance one hasn't been tracking it, there were several "we don't need your stinking BuSL" projects when this drama first started:

    https://github.com/opentofu#why-opentofu (Terraform)

    https://github.com/openbao/openbao#readme (Vault)

    and I know of several attempts at Vagrant <https://github.com/hashicorp/vagrant/forks> but I don't believe one of them has caught traction yet

    There are also some who have talked about an "open Nomad" but since I don't play in that space I can't speak to it

  • Ask HN: Cleanest way to manage Windows OS?
    4 projects | news.ycombinator.com | 22 Feb 2024
    It sounds like you're using Nix as a sort of configuration management solution. CM just isn't worth it for managing a single desktop IMO. It triples the effort for whenever you need to add or remove a package, as you must now add that also to your nix configuration. You're supposed to be able to make that back up in time saved restoring to the next machine, but inevitably the next machine will be different enough that you'll have to edit it all anyway. In the end I just got tired of trying to manage my own machine with infrastructure as code (though in fairness I was using puppet at the time not nix).

    I keep a git repository with all my dot files in it[1]. This seems to work the best. It has a Windows folder as well, and I copy that out whenever I need to set up Windows.

    A lot of people like using WSL but I hate how it hogs on my memory. Hyper-V is a terrible virtualization engine for consumer-grade use cases because it can't thin provision RAM. If I need to use docker, I will spin up a small Linux VM using vagrant[3] with Virtualbox[4] and put Docker on there. Vagrant is an extremely underrated tool in my opinion, particularly in a Windows context.

    I use scoop for packages. Typically I will scoop install msys2 and then pin it so that it doesn't get blown away by the next upgrade.

    Then I basically do all of my development inside of msys2. I can get most things running in there without virtualization. In my case that means sbcl and roswell for common lisp, senpai for irc, and tmux and nvim for sanity. Msys2 uses the pacman package manager and this is good enough.

    All In all, I set up my Windows machine affresh after a while of not using it and it took me about 3 hours. Most of that time was just getting through upgrades though, I felt like it was pretty fast.

    1: https://git.sr.ht/~skin/dotfiles

    2: https://www.msys2.org/

    3: https://www.vagrantup.com/

    4: https://www.virtualbox.org/

  • A Developer's Journal: Simplifying the Twelve-Factor App
    9 projects | dev.to | 3 Dec 2023
    Tools like Docker and Vagrant can be used to allow local environments to mimic production environments.
  • Is there any place where I can download an already configured Virtual machine? For example with Linux Ubuntu or Windows 10 preinstalled?
    1 project | /r/virtualbox | 20 Nov 2023
  • UTM – Virtual Machines for iOS and macOS
    9 projects | news.ycombinator.com | 30 Aug 2023
    There's an open issue [1]. A scripting interface has since been added [2], and updated [3], so there's progress.

    [1] https://github.com/hashicorp/vagrant/issues/12518

  • Vagrant license changed to BUSL-1.1
    1 project | news.ycombinator.com | 10 Aug 2023
  • HashiCorp Adopts Business Source License
    25 projects | news.ycombinator.com | 10 Aug 2023
    Someone should fork and maintain Vagrant with an MPL open source license:

    https://github.com/hashicorp/vagrant

  • Codespaces but open-source, client-only, and unopinionated
    18 projects | news.ycombinator.com | 20 Jun 2023
    https://github.com/hashicorp/vagrant/blob/v2.3.7/CHANGELOG.m... ?

    The changelog lists both improvements and bug fixes and there's even apparently some effort to port it away from ruby: https://github.com/hashicorp/vagrant/blob/v2.3.7/internal/cl...

  • Vagrant Fatal Error: Runtime BSDThread_Register Error
    1 project | /r/u_bugfreesoft | 5 Jun 2023
    If you’ve ever encountered the dreaded “Vagrant fatal error: runtime BSDThread_Register error,” you’re not alone. This perplexing error message can be frustrating and confusing, especially if you’re new to Vagrant and virtualization. But fear not! In this article, we’ll unravel the mystery behind this error, explain its meaning, and provide solutions to help you overcome it.

What are some alternatives?

When comparing Packer and Vagrant you can also consider the following projects:

helm - The Kubernetes Package Manager

Ansible - Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy and maintain. Automate everything from code deployment to network configuration to cloud management, in a language that approaches plain English, using SSH, with no agents to install on remote systems. https://docs.ansible.com.

oVirt - oVirt website

QEMU - Official QEMU mirror. Please see https://www.qemu.org/contribute/ for how to submit changes to QEMU. Pull Requests are ignored. Please only use release tarballs from the QEMU website.

cloud-init-vmware-guestinfo - A cloud-init datasource for VMware vSphere's GuestInfo interface

Capistrano - A deployment automation tool built on Ruby, Rake, and SSH.

kubernetes - Production-Grade Container Scheduling and Management

Puppet - Server automation framework and application

BOSH - Cloud Foundry BOSH is an open source tool chain for release engineering, deployment and lifecycle management of large scale distributed services.

vscode-dev-containers - NOTE: Most of the contents of this repository have been migrated to the new devcontainers GitHub org (https://github.com/devcontainers). See https://github.com/devcontainers/template-starter and https://github.com/devcontainers/feature-starter for information on creating your own!