Xpersona
V

Vagrant Skill

CLAWHUB · Unverified

Disposable VMs for safe testing — full sudo, Docker, Go, nested KVM, destroy and recreate. Use when you need a sandbox to build, test, or break things withou...

62
Rank
84
Safety
1.1k
Downloads

About

What it does, and when to use it.

Capability contract not published. No trust telemetry is available yet. 1.1K downloads reported by the source. Last updated 10/11/2026.

Avoid when

  • Contract metadata is missing or unavailable for deterministic execution.

Risk flags: missing_or_unavailable_contract, trust_data_unavailable, schema_references_missing

Install and run

Setup complexity: low.

clawhub skill install s17ahv4y43fkzkc5qajcv7ys9n83jm87:vagrant-skill
  1. Install using `clawhub skill install s17ahv4y43fkzkc5qajcv7ys9n83jm87:vagrant-skill` in an isolated environment before connecting it to live workloads.
  2. No published capability contract is available yet, so validate auth and request/response behavior manually.
  3. Review the upstream CLAWHUB listing at https://clawhub.ai/jpoley/vagrant-skill before using production credentials.

Contract: missing

curl -s "https://www.xpersona.co/api/v1/agents/clawhub-jpoley-vagrant-skill/snapshot"

Run-check

$0.02 USD

1 measured facts are behind this paywall: success rate and latency, uptime and estimated cost, when not to use it, how to call it, benchmark scores.

Agents pay $0.02 in USDC. A card payment is $0.50, the smallest a card allows.

Documentation

CLAWHUB

147,179 characters of source documentation, loaded on request.

Extracted files

5 files captured from the source.

SKILL.md

---
name: vagrant
description: >-
  Disposable VMs for safe testing — full sudo, Docker, Go, nested KVM, destroy
  and recreate. Use when you need a sandbox to build, test, or break things
  without affecting the host. Use when the user says "spin up a VM", "test in
  isolation", "run with sudo", "try something dangerous", "set up a dev
  environment", "I need Docker", "test firewall rules", "clean environment",
  or needs root access, network testing, or safe experimentation.
license: Apache-2.0
compatibility: >-
  Requires vagrant binary and at least one provider: Parallels (Mac Apple
  Silicon), libvirt (Linux), or VirtualBox (cross-platform). Designed for
  terminal-based AI agents and interactive developer use.
allowed-tools: "Bash(vagrant:*) Bash(bats:*) Read Write"
metadata:
  author: jpoley
  version: "0.1.0"
  category: infrastructure
  tags: [vm, sandbox, testing, docker, devops, isolation, kvm]
  openclaw:
    requires:
      bins:
        - vagrant
      anyBins:
        - VBoxManage
        - virsh
        - prlctl
---

## User Input

```text
$ARGUMENTS
```

You **MUST** consider the user input before proceeding (if not empty).

## Execution Instructions

This skill provides a **disposable VM sandbox** for safe development and testing. All privileged operations (sudo, iptables, Docker, systemd, KVM) happen inside the VM — the host is never modified.

**You (the agent) should NEVER need host-level sudo.** Instead, use this Vagrant workflow to get a fully provisioned, disposable VM where you have unrestricted root access.

### Prerequisites

Before using this workflow, verify a provider is available:

```bash
# Check Vagrant is installed
command -v vagrant

# Check for a provider (any one is sufficient)
command -v prlctl        # Parallels (Mac Apple Silicon — recommended)
vagrant plugin list | grep libvirt  # libvirt (Linux — nested KVM)
command -v VBoxManage    # VirtualBox (fallback)
```

See [references/platform-setup.md](references/platform-setup.md) for detailed provider installation.

---

## Core Workflow

### Step 1: Create a Vagrantfile in the User's Project

If the user's project does not already have a `Vagrantfile`, you MUST create a real, working one in their project directory. This is not a template or example — it must work end-to-end with `vagrant up`.

**Requirements for the Vagrantfile you create:**
- Base box: `bento/ubuntu-24.04`
- Sync the project root into the VM: `config.vm.synced_folder ".", "/project", type: "rsync"`
- Include all three providers (Parallels, libvirt, VirtualBox) so it works on any platform
- Provision with the actual tools the project needs (inspect the project first — look for `go.mod`, `package.json`, `requirements.txt`, `Makefile`, `Dockerfile`, etc.)
- Use `set -euo pipefail` in provisioning scripts
- Make provisioning idempotent

Here is the **base Vagrantfile** — you MUST customize the provisioning section based on what the project actually uses:

```ruby
# -*- mode: ruby -*-
# Vagrantfi

README.md

# vagrant-skill

**Disposable VMs for safe testing — an [Agent Skills](https://agentskills.io) standard skill**

| | |
|---|---|
| **Repo** | [daax-dev/vagrant-skill](https://github.com/daax-dev/vagrant-skill) |
| **Stack** | Vagrant, Shell, Ubuntu 24.04 |
| **Skill** | [Agent Skills](https://agentskills.io) standard |
| **Compatible** | Claude Code, Claude.ai, OpenClaw, Cursor, Gemini CLI, and [30+ agents](https://agentskills.io) |
| **License** | Apache 2.0 |

## What It Does

Provides disposable, fully-provisioned Ubuntu 24.04 VMs for safe experimentation:

- **Full sudo access** — agents and humans can do anything without risk to the host
- **Pre-installed tooling** — Go 1.24, Docker, mage, build-essential, network tools
- **Nested KVM** — hardware virtualization passthrough (Linux with libvirt)
- **Configurable** — sync any project, adjust CPU/RAM/Go version via env vars
- **Destroy and recreate** — VMs are ephemeral, nothing persists unless you want it
- **Cross-platform** — tested on Mac (Parallels), Linux (libvirt), with VirtualBox as fallback

---

## Quick Start

```bash
# Start VM (no project sync)
vagrant up

# Start VM with your project synced into /project
PROJECT_SRC=~/myproject vagrant up

# Run commands inside (agent workflow — no interactive SSH needed)
vagrant ssh -c "sudo apt-get install -y something"
vagrant ssh -c "cd /project && make test"

# Sync code changes from host
vagrant rsync

# Destroy and start fresh
vagrant destroy -f
```

## Examples

Three self-contained examples, one per platform. Each has a `Vagrantfile`, a `scripts/provision.sh`, and a `test/e2e.bats` suite. Run them the same way:

```bash
vagrant up
bats test/e2e.bats
vagrant destroy -f
```

---

### Linux — nginx-hardened (`examples/nginx-hardened/`)

Deploys nginx with a hardened iptables firewall (INPUT DROP by default, allow SSH + HTTP only). **16 bats tests.**

**Why it needs a VM:** `iptables -F INPUT` + `-P INPUT DROP` on the host locks you out of your own SSH session. Provider: **libvirt**.

```bash
cd examples/nginx-hardened
vagrant up
bats test/e2e.bats
vagrant destroy -f
```

**Ask the LLM:**
> `/vagrant` Run the nginx-hardened example in `examples/nginx-hardened/`, show me the full bats output, then destroy the VM.

---

### Mac — docker-compose (`examples/mac-docker-compose/`)

Runs a Docker Compose stack: nginx on port 80 proxying a Python JSON API on port 8000 (internal only). **14 bats tests.**

**Why it needs a VM:** Docker Desktop requires a commercial license and proxies port bindings through a hyperkit shim. Docker CE in a Parallels VM has no restrictions. Provider: **Parallels** (Apple Silicon).

```bash
cd examples/mac-docker-compose
vagrant up --provider=parallels
bats test/e2e.bats
vagrant destroy -f
```

**Ask the LLM:**
> `/vagrant` Run the mac-docker-compose example in `examples/mac-docker-compose/`, show me the bats results proving the stack is up, then tear it down.

---

### Windows — systemd-service (`examples/windows-systemd-

_meta.json

{
  "ownerId": "kn70tgxkyzsmmeqeng7fgakz9h800gb2",
  "slug": "vagrant-skill",
  "version": "0.7.4",
  "publishedAt": 1774408307699
}

references/platform-setup.md

# Platform Setup Reference

Detailed provider installation and configuration for each platform.

## Mac (Apple Silicon — M1/M2/M3/M4) — Parallels

VirtualBox on Apple Silicon is experimental and unreliable. **Use Parallels.**

```bash
# 1. Install Parallels Desktop (requires license)
#    Download from https://www.parallels.com/products/desktop/

# 2. Install Vagrant
brew install --cask vagrant

# 3. Install the Parallels provider plugin
vagrant plugin install vagrant-parallels

# 4. Start
vagrant up --provider=parallels
```

**Verified working:** macOS 26.3, Apple Silicon (arm64), Parallels Desktop, Vagrant 2.4.9, bento/ubuntu-24.04 arm64 box. Setup provisions Go 1.24.3 (arm64), Docker, mage. 11/11 checks pass.

**KVM note:** Nested KVM is not available on Mac (no `/dev/kvm`). The VM still provides Docker, Go, mage, and full sudo. If you need nested KVM (e.g., for Firecracker microVM testing), use a Linux host.

## Mac (Intel) — VirtualBox

```bash
# 1. Install VirtualBox
brew install --cask virtualbox

# 2. Install Vagrant
brew install --cask vagrant

# 3. Start
vagrant up --provider=virtualbox
```

## Linux — libvirt/KVM (Recommended)

This is the most capable setup — includes nested KVM for microVM testing.

```bash
# 1. Install KVM + libvirt
sudo apt-get install -y qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils

# 2. Install Vagrant + libvirt plugin
sudo apt-get install -y vagrant
vagrant plugin install vagrant-libvirt

# 3. Start
vagrant up --provider=libvirt
```

**Nested KVM** is automatically enabled (`cpu_mode: host-passthrough`). Verify:
```bash
# Host must have KVM
test -e /dev/kvm && echo "KVM OK"

# After vagrant up, verify nested KVM inside VM
vagrant ssh -c "test -e /dev/kvm && echo 'Nested KVM OK'"
```

## Windows (WSL2) — VirtualBox

```bash
# 1. Install VirtualBox on Windows (not inside WSL2)
#    Download from https://www.virtualbox.org/wiki/Downloads

# 2. Inside WSL2, install Vagrant
sudo apt-get install -y vagrant

# 3. Tell Vagrant to use the Windows VirtualBox
export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"
export PATH="$PATH:/mnt/c/Program Files/Oracle/VirtualBox"

# 4. Start
vagrant up --provider=virtualbox
```

## Provider Capabilities

| Feature | Parallels (Mac) | libvirt (Linux) | VirtualBox |
|---------|:-:|:-:|:-:|
| Nested KVM | No | Yes | Limited |
| Performance | Excellent | Excellent | Good |
| Apple Silicon | Native | N/A | Experimental |
| Docker-in-VM | Yes | Yes | Yes |
| Auto-detect | Yes | Yes | Yes |

references/vm-contents.md

# VM Contents Reference

Detailed reference of what's installed inside the VM and where to find it.

## Installed Software

| Tool | Version | Install Method | Notes |
|------|---------|---------------|-------|
| Ubuntu | 24.04 LTS | Base box (bento/ubuntu-24.04) | arm64 or amd64 |
| Go | 1.24.3 (configurable) | Binary download from go.dev | SHA256 verified |
| Docker | Latest CE | Official Docker repo | Daemon running, vagrant user in docker group |
| mage | Latest | `go install` | Go build tool |
| build-essential | System | apt-get | gcc, make, etc. |
| iptables | System | apt-get | Firewall management |
| dnsmasq | System | apt-get | DNS filtering (disabled by default) |
| iproute2 | System | apt-get | `ip` command |
| dnsutils | System | apt-get | `dig` command |
| net-tools | System | apt-get | `ifconfig`, `netstat` |
| sqlite3 | System | apt-get | With libsqlite3-dev |
| jq | System | apt-get | JSON processing |
| curl | System | apt-get | HTTP client |
| git | System | apt-get | Version control |
| strace | System | apt-get | System call tracing |
| KVM tools | System | apt-get (conditional) | Only if `/dev/kvm` exists |

## Filesystem Layout

| Path | Contents |
|------|----------|
| `/project` | Source code (rsynced from host, if PROJECT_SRC set) |
| `/vagrant-scripts` | Setup and verify scripts |
| `/usr/local/go/bin/go` | Go toolchain |
| `/usr/local/bin/mage` | Mage build tool |
| `/etc/profile.d/go.sh` | Go PATH configuration (loaded in all shells) |

## Environment Variables (set in VM)

```bash
PATH="/usr/local/go/bin:$HOME/go/bin:$PATH"
GOPATH="$HOME/go"
```

## Users and Groups

| User | Groups | Purpose |
|------|--------|---------|
| vagrant | vagrant, docker, (libvirt, kvm if KVM available) | Default SSH user, full sudo |

## rsync Excludes

When syncing with `PROJECT_SRC`, these paths are excluded:
- `.git/`
- `node_modules/`
- `vendor/`
- `bin/`
- `dist/`
- `build/`
- `.next/`
- `coverage.out`
- `coverage.html`

Sponsored

Ads related to Vagrant Skill and adjacent AI workflows.