# mirzouch/kvm-guest architecture

> Architecture diagram of the GitHub repository mirzouch/kvm-guest, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-13). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/mirzouch/kvm-guest
- Repository: https://github.com/mirzouch/kvm-guest

## Overview

This repository is an interactive KVM guest creator for Fedora on WSL. The documented workflow is to run the creator, enter VM and network settings, choose Rocky Linux 9 or Debian 13, and confirm creation. Each OS has a virt-install script and cloud-init configuration. The README documents the workflow and image prerequisites, but no source excerpts show how the scripts invoke one another or consume those configurations; those implementation links are therefore marked unverified.

Main entry points: [`create-kvm-guest.sh`](https://github.com/mirzouch/kvm-guest/blob/main/create-kvm-guest.sh) (Interactive creator), [`rocky9/virt-install.sh`](https://github.com/mirzouch/kvm-guest/blob/main/rocky9/virt-install.sh) (VM installer), [`debian13/virt-install.sh`](https://github.com/mirzouch/kvm-guest/blob/main/debian13/virt-install.sh) (VM installer), [`rocky9`](https://github.com/mirzouch/kvm-guest/tree/main/rocky9) (Cloud-init settings)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_creation["Guest creation"]
  node_creator["Interactive creator"]
end

subgraph group_rocky["Rocky Linux"]
  node_rocky_installer["VM installer<br/>[virt-install.sh]"]
  node_rocky_cloudinit["Cloud-init settings"]
end

subgraph group_debian["Debian"]
  node_debian_installer["VM installer<br/>[virt-install.sh]"]
  node_debian_cloudinit["Cloud-init settings"]
end

node_operator(("Operator"))
node_guest["KVM guest"]
node_image_store[("Downloaded images")]

node_operator -->|"runs"| node_creator
node_creator -.->|"selects Rocky"| node_rocky_installer
node_creator -.->|"selects Debian"| node_debian_installer
node_rocky_installer -.->|"uses config"| node_rocky_cloudinit
node_debian_installer -.->|"uses config"| node_debian_cloudinit
node_rocky_installer -.->|"creates guest"| node_guest
node_debian_installer -.->|"creates guest"| node_guest
node_image_store -.->|"supplies image"| node_creator

click node_creator "https://github.com/mirzouch/kvm-guest/blob/main/create-kvm-guest.sh"
click node_rocky_installer "https://github.com/mirzouch/kvm-guest/blob/main/rocky9/virt-install.sh"
click node_rocky_cloudinit "https://github.com/mirzouch/kvm-guest/tree/main/rocky9"
click node_debian_installer "https://github.com/mirzouch/kvm-guest/blob/main/debian13/virt-install.sh"
click node_debian_cloudinit "https://github.com/mirzouch/kvm-guest/tree/main/debian13"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_creator toneBlue
class node_rocky_installer,node_rocky_cloudinit,node_image_store toneAmber
class node_debian_installer,node_debian_cloudinit toneMint
class node_operator,node_guest toneIndigo
```

## Components

### Guest creation

- [Interactive creator](https://github.com/mirzouch/kvm-guest/blob/main/create-kvm-guest.sh): `create-kvm-guest.sh`

### Rocky Linux

- [VM installer](https://github.com/mirzouch/kvm-guest/blob/main/rocky9/virt-install.sh): `rocky9/virt-install.sh`
- [Cloud-init settings](https://github.com/mirzouch/kvm-guest/tree/main/rocky9): `rocky9`

### Debian

- [VM installer](https://github.com/mirzouch/kvm-guest/blob/main/debian13/virt-install.sh): `debian13/virt-install.sh`
- [Cloud-init settings](https://github.com/mirzouch/kvm-guest/tree/main/debian13): `debian13`

### Other components

- **Operator**
- **KVM guest**
- **Downloaded images**

## Connections

- Operator → Interactive creator: runs (evidence: `README.md`)
- Interactive creator → VM installer: selects Rocky
- Interactive creator → VM installer: selects Debian
- VM installer → Cloud-init settings: uses config
- VM installer → Cloud-init settings: uses config
- VM installer → KVM guest: creates guest
- VM installer → KVM guest: creates guest
- Downloaded images → Interactive creator: supplies image
