vm-lab-setup

Automate local virtual machine lifecycle management using libvirt tools.

2|Updated Feb 16, 2026
One-click install
npx skills add https://github.com/dmzoneill/skills --skill vm-lab-setup
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: vm-lab-setup
Source: https://github.com/dmzoneill/skills/tree/main/vm-lab-setup
Command: npx skills add https://github.com/dmzoneill/skills --skill vm-lab-setup

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the creation, management, and teardown of local virtual machine environments, crucial for consistent and isolated testing.

Core Features & Use Cases

  • VM Lifecycle Management: Create, clone, snapshot, revert, and destroy virtual machines.
  • Status Monitoring: Check the current state and detailed information of VMs.
  • Connectivity Testing: Verify SSH and Ansible connectivity to provisioned VMs.
  • Use Case: Quickly set up a clean testing environment by creating a new VM from a base image, testing an application, and then destroying it to free up resources.

Quick Start

Use the vm-lab-setup skill to create a new virtual machine named 'test-vm' using the base image '/path/to/base.qcow2'.

Frequently Asked Questions about vm-lab-setup

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate local VM creation and teardown for isolated testing?

You can automate local VM creation and teardown using libvirt tools to manage the entire lifecycle, ensuring reproducible and isolated testing environments for infrastructure management.

What's the best way to manage libvirt VM states and storage for testing?

Manage libvirt VM states and storage by automating snapshotting, reverting, and destruction. This handles VM lifecycle, networking, and connectivity checks via SSH and Ansible for reliable infrastructure testing.

Can I use Ansible and SSH to test connectivity to provisioned libvirt VMs?

Yes, you can verify SSH and Ansible connectivity to provisioned libvirt VMs. The automation process includes connectivity testing to ensure provisioned virtual machines are accessible for infrastructure management tasks.

How do I clone a virtual machine from a base image for testing?

Clone a virtual machine from a base qcow2 image by automating the creation process. Quickly set up a clean testing environment by creating a new VM, testing an application, and destroying it to free resources.

Do I need libvirt tools to create reproducible local virtual machine environments?

Yes, libvirt tools are required to automate the creation, cloning, snapshotting, and destruction of local virtual machines. This dependency ensures consistent and isolated testing environments for infrastructure management.

When should I use local VM snapshots for infrastructure testing?

Use local VM snapshots when you need to revert virtual machines to a clean state after testing. This allows rapid iteration by restoring a baseline configuration without manually rebuilding the testing environment.