kvm-mcp
2
KVM MCP Server is a JSON-RPC server designed to manage KVM virtual machines efficiently. It simplifies VM operations and automates tasks with features like remote control, lifecycle management, and performance optimizations.
KVM MCP Server
A JSON-RPC server for managing KVM virtual machines. It offers a centralized way to control and monitor VMs using a standardized protocol.
Features
- VM Lifecycle Management: Create, start/stop, and list VMs with state tracking.
- Network Management: Configure networking with bridges and automatic interface configuration.
- Storage Management: Customizable disk storage locations and formats.
- Display Management: VNC support and automatic port assignment.
- Installation Support: Supports network and local installations.
- Performance Optimizations: Connection pooling, caching, asynchronous processing, and structured logging.
Getting Started
Prerequisites
- Python 3.6+
- KVM and libvirt
Installation
- Clone the repository.
- Create a virtual environment.
- Install dependencies.
- Configure the server.
Usage
- Start the server and use JSON-RPC for VM management.
- Example scripts are provided for operations like creating VMs and finding VNC ports.