Skip to content

Instantly share code, notes, and snippets.

@nullx5
Last active January 23, 2026 10:49
Show Gist options
  • Select an option

  • Save nullx5/f12f56a5557712f4f9027fbbf052dc66 to your computer and use it in GitHub Desktop.

Select an option

Save nullx5/f12f56a5557712f4f9027fbbf052dc66 to your computer and use it in GitHub Desktop.

qemu libvirt virt-install virsh virt-manager

┌─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
│                                            Herramientas de usuario                                                  │
│                                                                                                                     │
│  qemu-system    virt-install     virt-clone           virsh / virt-manager             qemu-img                     |
│   (crear VM)     (crear VM)    (clonar/backup)      (administrar y snapshots)   (crear manipular discos, snapshot)  │
└───────┬───────────────┬───────────────┬──────────────────────┬───────────────────────────┬──────────────────────────┘
        │               │               │                      │                           │
        │               ▼               ▼                      ▼                           │
        │       ┌──────────────────────────────────────────────────────┐                   │
        │       │                      libvirt                         │                   │
        │       │           (API / daemon libvirtd | XML)              │                   │
        │       │  - Estado de VMs    - Snapshots                      │                   │
        │       │  - Redes            - Storage                        │                   │
        │       └───────────────────────┬──────────────────────────────┘                   │
        │                               │                                                  │
        ▼                               ▼                                                  │
┌──────────────────────────────────────────────────────┐                                   │
│                    qemu-system                       │                                   │
│                 (hipervisor real)                    │<──────────────────────────────────┘
│  - CPU virtual    - RAM                              │          (Prepara los archivos
│  - Discos         - Devices                          │           de disco que usa QEMU)
└───────────────────────┬──────────────────────────────┘
                        │
                        ▼
        ┌────────────────────────────┐
        │         Kernel Linux       │
        │        KVM / VFIO          │
        └────────────────────────────┘

Libvirt te permite usar una sola herramienta (como virsh o Virtual Machine Manager) para manejar diferentes tecnologías de virtualización

| Tecnología      | Tipo                  | ¿Qué virtualiza?                                                                 | Nivel de Aislamiento                                             |
|-----------------|-----------------------|----------------------------------------------------------------------------------|------------------------------------------------------------------|
| KVM             | Hipervisor (Tipo 2*)  | Hardware completo: Permite sistemas operativos distintos al host (Windows, BSD). | Alto: Aislamiento por hardware (VT-x / AMD-V).                   |
| LXC / OpenVZ    | Contenedores          | Entorno de usuario: Comparte el kernel del host Linux.                            | Medio: Aislamiento por namespaces y cgroups.                     |
| Xen / ESX       | Hipervisor (Tipo 1)   | Hardware completo: Corre directamente sobre el “hierro” (bare-metal).            | Muy alto: Control total desde el arranque.                       |
| UML             | Software              | Kernel de Linux: Un kernel corriendo como un proceso de usuario.                  | Bajo: Ideal para pruebas de desarrollo.                          |

image
@nullx5
Copy link
Author

nullx5 commented Jan 16, 2026

image image

@nullx5
Copy link
Author

nullx5 commented Jan 23, 2026

image

.OVA

sudo qemu-img convert -f qcow2 /var/lib/libvirt/images/ubuntu24.04.qcow2 -O vmdk ~/ova/ubuntu24.04.vmdk

image image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment