# Kali Vagrant Rebuilt: Out With Packer, In With DebOS

DevFeed: [Kali Vagrant Rebuilt: Out With Packer, In With DebOS](<https://devfeed.tech/articles/kali-vagrant-rebuilt-out-with-packer-in-with-debos-47148.md>)

Original publisher: [Read original article](<https://www.kali.org/blog/kali-vagrant-rebuilt/>)

Published: 2025-08-21T00:00:00Z

Content type: release

Language: en

Sources: [Kali Linux](<https://devfeed.tech/sources/kali-linux.md>)

Topics: [Vagrant](<https://devfeed.tech/topics/vagrant.md>), [virtual machines](<https://devfeed.tech/topics/virtual-machines.md>), [hyper-v](<https://devfeed.tech/topics/hyper-v.md>), [Linux](<https://devfeed.tech/topics/linux.md>), [ssh](<https://devfeed.tech/topics/ssh.md>), [Windows](<https://devfeed.tech/topics/windows.md>), [Script](<https://devfeed.tech/topics/script.md>)

Tags: [advanced](<https://devfeed.tech/tags/advanced.md>), [command-line](<https://devfeed.tech/tags/command-line.md>), [distribution](<https://devfeed.tech/tags/distribution.md>), [hyper-v](<https://devfeed.tech/tags/hyper-v.md>), [kali](<https://devfeed.tech/tags/kali.md>), [kalilinux](<https://devfeed.tech/tags/kalilinux.md>), [linux](<https://devfeed.tech/tags/linux.md>), [microsoft-windows](<https://devfeed.tech/tags/microsoft-windows.md>), [penetration](<https://devfeed.tech/tags/penetration.md>), [penetration-testing](<https://devfeed.tech/tags/penetration-testing.md>), [ssh](<https://devfeed.tech/tags/ssh.md>), [template](<https://devfeed.tech/tags/template.md>), [testing](<https://devfeed.tech/tags/testing.md>), [vagrant](<https://devfeed.tech/tags/vagrant.md>), [virtual-machines](<https://devfeed.tech/tags/virtual-machines.md>)

## AI overview

Kali explains that it rebuilt its Vagrant VM images using DebOS instead of Packer. The new process builds stock and Vagrant virtual machines automatically in the same Linux-based infrastructure, while addressing Vagrant base-box requirements and compatibility with Hyper-V exports on Windows.

## Source excerpt

Vagrant files, *.box, are pre-configured Virtual Machines (VM) VM images, which when imported into HashiCorp's Vagrant, allow for VMs to be interacted with via the command line. You create, start, interact, stop, destroy VMs all without leaving the terminal. Think containers (Docker/Podman), but for VMs. Previously we have been using HashiCorp's Packer to generate our HashiCorp's Vagrant images. Packer is a wrapper, around whatever hypervisor you wish, and it will automate installing the OS (unattended setup via preseeding), run any commands or scripts, export the VM and finally compress it. The down-side to Packer is that you need to have the chosen hypervisor installed on the host OS, you can't cross-build. If you use Linux, you can't build Window's Hyper-V. For a few years now , we have been using DebOS, to automate building our VMs. This has been working great for us. Recently we realized: "Why do we have two different systems, for the same purpose?". A little bit of digging into "how to make a vagrant base box VM" boils down to just a few requirements: Fix username (vagrant) Fix/Known pubic SSH keys (default/standard insecure keypairs) Able to perform superuser actions (sudo) Simple really, just need to make sure that Vagrant can easy access the VM! Optional items (and recommended), as it helps benefits user's rather than Vagrant: Known/Fix credentials (vagrant everywhere) SSH tweaks (speed up for airgap networks) All of this can be handled in a post-install step, which we have put into our Kali-VM build-script. Now, we are building all of our VMs, automatically, in the same matter (Stock and Vagrant), all in the same infrastructure setup (Linux!). Since Microsoft Windows 10 1607 / Server 2016, when exporting VMs, there would be 3 additional "binary" files, *.vmcx/*.vmrs included as well as an *.xml. As we were no longer exporting the VM from Hyper-V, but generating it outside of, we do not have these files. Now, we could create a "template" binary which would