Нема описа

Celestino Rey 15ac69bbb6 Borra vm por nombre пре 11 месеци
.github 23108c30f6 Primer commit пре 11 месеци
app 15ac69bbb6 Borra vm por nombre пре 11 месеци
templates 1d82968e1b Crea vm desde plantilla пре 11 месеци
.gitignore 23108c30f6 Primer commit пре 11 месеци
README.md 23108c30f6 Primer commit пре 11 месеци
pyproject.toml 23108c30f6 Primer commit пре 11 месеци
requirements.txt 45033affaf Api funcionando con listar y start y stop solo mock пре 11 месеци

README.md

VirtManager

API for managing virtual machines on Ubuntu using FastAPI and libvirt.

Installation

  1. Install dependencies:

    pip install -e .
    
  2. Ensure libvirt is installed on the system:

    sudo apt install libvirt-daemon-system
    

Running the API

uvicorn app.main:app --reload

The API will be available at http://127.0.0.1:8000

Endpoints

  • GET / : Root message
  • GET /vms : List all VMs
  • POST /vms/{vm_id}/start : Start a VM
  • POST /vms/{vm_id}/stop : Stop a VM