Vagrant
$ vagrant Official High Riskvagrant provisions and manages virtual machine environments defined in Ruby-based Vagrantfile descriptors across VirtualBox, VMware, Libvirt, and cloud providers. While --machine-readable provides CSV-like event lines, VM lifecycle operations are slow, stateful, and lack --json output.
brew install --cask vagrant Local hypervisor and VM lifecycle controller; requires host-level virtualization drivers unavailable to remote MCP servers.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Offers --machine-readable CSV-formatted output and vagrant validate, but lacks --json, runs slowly over Ruby/hypervisor IPC, and can prompt interactively on destroy without -f.
- Uses custom
--machine-readableCSV format instead of JSON - Prompts for confirmation on
vagrant destroyunless-fis passed
vagrant destroy irreversibly deletes VM disks and snapshots, and Vagrantfile executes arbitrary Ruby code on evaluation.
Vagrantfileexecutes arbitrary Ruby duringvalidateorstatus- No
--dry-runflag onvagrant uporvagrant destroy
Installers exist for macOS, Linux, and Windows, but requires a heavy external hypervisor (VirtualBox, VMware, or Libvirt) and fails on Apple Silicon for x86 boxes without emulation.
- Requires external hypervisor installation; heavy footprint
Useful for legacy VM workflows, though containers and Lima/OrbStack/Colima are much faster for agent test loops.
- Slow VM boot/box download loops compared to containers
Official HashiCorp tool (hashicorp/vagrant), though relicensed to BSL-1.1 in 2023 and slower-moving than cloud-native tools.
- Official HashiCorp repository under BSL-1.1
Extensive official documentation at developer.hashicorp.com/vagrant/docs.
- Comprehensive CLI and provider docs on HashiCorp Developer
Security, Auth & Guardrails
Local hypervisors require no login; Vagrant Cloud tokens and provider keys live in ~/.vagrant.d/data or env vars like VAGRANT_CLOUD_TOKEN.
BSL-1.1 license (free for internal/non-competing use); optional paid VMware plugin or HCP Vagrant Registry tiers.
# Vagrant Agent Rules - Always run `vagrant validate` and `vagrant status --machine-readable` first. - Never run `vagrant destroy -f` without explicit user approval, as it permanently deletes VM disks. - Pass `-f` / `--force` only when user confirmed non-interactive destruction.
Agent-Ready Command Recipes
Safe Read-Only Queries
vagrant status --machine-readable
Emits comma-separated state records for machines in the current Vagrantfile without starting or stopping VMs.
vagrant validate
Checks the Vagrantfile Ruby syntax and basic configuration without provisioning machines.
Controlled Writes & Previews
vagrant up --no-provision
Starts the VM defined in Vagrantfile while skipping potentially destructive provisioning scripts.
Strengths for Agents
- +
vagrant validateandvagrant status --machine-readablecheck config and state safely. - + Supports multiple hypervisor providers behind one
Vagrantfileworkflow. - + Detailed official documentation across providers and provisioners.
Caveats & Pitfalls
- ! No JSON output (
--machine-readableemits CSV-style lines). - ! Evaluating
Vagrantfileexecutes arbitrary Ruby, andvagrant destroy -fpermanently deletes VM disks without--dry-run.