<?xml version="1.0" encoding="utf-8"?><feed xmlns="http://www.w3.org/2005/Atom" ><generator uri="https://jekyllrb.com/" version="4.4.1">Jekyll</generator><link href="https://www.krislamo.org/feed.xml" rel="self" type="application/atom+xml" /><link href="https://www.krislamo.org/" rel="alternate" type="text/html" /><updated>2026-05-30T14:52:47+00:00</updated><id>https://www.krislamo.org/feed.xml</id><title type="html">Kris Lamoureux</title><author><name>Kris Lamoureux</name></author><entry><title type="html">Why I’m building custom Vagrant boxes</title><link href="https://www.krislamo.org/2026/05/25/building-custom-vagrant-boxes.html" rel="alternate" type="text/html" title="Why I’m building custom Vagrant boxes" /><published>2026-05-25T00:00:00+00:00</published><updated>2026-05-25T00:00:00+00:00</updated><id>https://www.krislamo.org/2026/05/25/building-custom-vagrant-boxes</id><content type="html" xml:base="https://www.krislamo.org/2026/05/25/building-custom-vagrant-boxes.html"><![CDATA[<p><em>TL;DR: I’ve built custom Vagrant boxes for Debian 13 and Rocky Linux 10 using
Packer.
<a href="https://portal.cloud.hashicorp.com/vagrant/discover/krislamo.org">Grab them from the registry</a>
or <a href="https://git.krislamo.org/kris/pkrbuilds">take my configs to build them</a>
yourself.</em></p>

<p>When
<a href="https://www.theregister.com/software/2023/08/11/hashicorp-changes-its-source-licence-to-bsl/1551785">HashiCorp relicensed its free software</a>
to the non-free BSL in 2023, the two projects that received significant
community-backed forks under the existing MPL terms were Terraform (OpenTofu)
and Vault (OpenBao), unsurprisingly given their weight in maintaining production
environments across the industry. That left less consequential HashiCorp
software, like Vagrant, without the momentum to keep it free, which I’ve used
for many years to design, test, and understand systems infrastructure.</p>

<p>Despite this, nearly three years later, you can still install the
<a href="https://packages.debian.org/trixie/vagrant">free version of Vagrant on Debian</a>
because a maintainer continues to patch 2.3.7 to make it work (HashiCorp’s
non-free version is on 2.4.9 at the time of writing). Vagrant is just a
convenience wrapper that automates the lifecycle of transient test virtual
machines, so the urgency to find another solution has been low, especially as
long as Debian continues to package it.</p>

<p>Following the Debian 13 release, Debian Vagrant box updates stalled for a while
after the
<a href="https://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg2049694.html">maintainer decided to stop publishing images</a>
due to Vagrant’s non-free upstream status and breaking changes to HashiCorp’s
image hosting platform. That led me to start building
<a href="https://git.krislamo.org/kris/pkrbuilds/src/branch/main/debian-13">custom Debian 13 boxes</a>
with Packer.<sup id="fnref:packer"><a href="#fn:packer" class="footnote" rel="footnote" role="doc-noteref">1</a></sup> One clear benefit of a custom box is baking in the NFS
client for host file sharing, so it’s present from first boot, rather than
installed during the first <code class="language-plaintext highlighter-rouge">vagrant up</code>, as you’d have to on the current
official Debian image.</p>

<p>Lately, I’ve also been looking to run Rocky Linux boxes and ran into yet another
issue with official distro Vagrant boxes: the Rocky Linux registry links have
been <a href="https://git.resf.org/infrastructure/meta/issues/138">broken for months</a>,
making all official Rocky Linux boxes entirely unavailable. So now I’m building
and publishing both Debian 13 and
<a href="https://git.krislamo.org/kris/pkrbuilds/src/branch/main/rocky-10">Rocky Linux 10</a>
Vagrant boxes for the libvirt provider.</p>

<p>Thankfully, Debian appears to have resumed updating its boxes more recently,
which is great, and likely the path most people should take for Debian. Still, a
deeper understanding of building custom boxes, greater control over updates, and
the additional flexibility of baking the NFS client have led me to continue
rolling my own. I publish them mostly for my own convenience, but since they’re
public, feel free to use them or build them yourself if they’re useful.</p>

<div class="footnotes" role="doc-endnotes">
  <ol>
    <li id="fn:packer">

      <p>There’s some irony in concern for a free Vagrant and then building images
with Packer, as it’s the same BSL relicense. But it’s the obvious tool, in
the same ecosystem, and made for exactly this. And like Vagrant, it’s low
stakes enough. <a href="#fnref:packer" class="reversefootnote" role="doc-backlink">&#8617;</a></p>
    </li>
  </ol>
</div>]]></content><author><name>Kris Lamoureux</name></author><summary type="html"><![CDATA[TL;DR: I’ve built custom Vagrant boxes for Debian 13 and Rocky Linux 10 using Packer. Grab them from the registry or take my configs to build them yourself.]]></summary></entry></feed>