virtomir

module
v0.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 16, 2026 License: AGPL-3.0

README ΒΆ

VirtoMir

A Detailed Control Deck for Virtual Environments.

VirtoMir is a modern web control panel for KVM / QEMU / libvirt that tries to be two things at once:

  • Effortless β€” create and run a VM without knowing much about virtualization.
  • Terrifyingly detailed β€” every libvirt setting is reachable, editable and, yes, breakable.

It installs on the Linux host you already have (Debian, Ubuntu, Fedora, …) as a single binary. No dedicated distribution, no database, no agents.

🚧 Status: early release (0.3). Used and tested on single hosts and small clusters; high availability has not been tried on real BMC hardware yet. Test it before you trust it with production.

Overview

Why?

Tool Gap
Cockpit (machines) Easy, but shallow β€” advanced settings send you back to virsh / XML
virt-manager Detailed, but a desktop app with weak monitoring and no web access
Proxmox VE Powerful, but it is the operating system

VirtoMir sits in the middle: as easy as Cockpit, as deep as raw libvirt XML, as polished as a modern SaaS dashboard.

Features

Machines
  • Live overview of host and machines, updated every second
  • New-machine wizard: install from an ISO, start from a cloud image with cloud-init (user, password, SSH keys), or boot an existing disk. Linux, Windows (UEFI + Secure Boot + TPM 2.0) and "other" profiles with sensible defaults
  • Start, shut down, reboot, pause, force off, hard reset, save to disk (resume exactly where it was) β€” one by one or in bulk
  • Rename, clone (full copies, new identity, runs in the background), delete (optionally with its own disks β€” never shared ones)
  • Templates: turn a prepared machine into a template and create new machines from it in seconds β€” linked clones (store only their own changes) or full copies, with optional cloud-init
  • Console in the browser: graphical (noVNC) and serial, also full-screen
  • Settings form for CPU (topology, model), memory (balloon), boot order, firmware β€” with a "review changes" XML diff before saving; vCPUs and memory are applied live where possible
  • Tuning: CPU and emulator pinning, huge pages, NUMA memory policy
  • XML editor for everything else, validated by libvirt
  • Configuration history: every version of a machine's definition β€” also changes made with virsh β€” with a diff and one-click restore
  • Hardware: add/remove disks and network adapters (hot-plug), insert/eject ISOs, grow disks
  • PCI/USB passthrough with an IOMMU group view and safety checks (devices the host needs are refused, with the reason)
  • More devices from the Hardware tab: shared folders (virtiofs), vGPU slices (mediated devices, created on the Hardware page), clipboard sharing, video model and up to 4 monitors, watchdog, TPM 2.0, random number generator β€” hot-plugged where possible, otherwise from the next start (and it says which)
  • Expert QEMU command line (extra arguments and environment), clearly marked as such
  • Import: OVA appliances, a libvirt domain XML, or a disk image already on the host
  • Snapshots as a tree: take, revert, delete
  • Backups: live (no downtime) or offline, restore as a new machine; automatic snapshots and backups on a schedule with retention
  • Firewall per machine: in/out rules by protocol, port and address, default policies and anti-spoofing β€” enforced on the host (libvirt network filters), so the guest cannot switch it off; applied live
  • As code: the new-machine form shows its exact API request (curl, Ansible) and an equivalent virt-install
Monitoring
  • Per machine: CPU, per-vCPU load, disk throughput / IOPS / latency, network traffic, guest-reported memory
  • Host CPU, memory, physical disk and network throughput
  • History for 1 h, 6 h, 24 h, 7 days and 30 days β€” kept by VirtoMir itself, no Prometheus needed
  • …and a Prometheus endpoint (/api/v1/metrics) for those who have one; the whole API is described by OpenAPI (/api/v1/openapi.json)
  • Alerts with sensible defaults (host overloaded, machine crashed, pool filling up, libvirt down) β€” to a webhook, Slack, Discord, ntfy or e-mail
  • Host hardware: vendor, model, BIOS, temperatures, fans and power from the host's own sensors; GPUs with load, memory, temperature and power (NVIDIA, AMD)
  • Busiest machines right now, and "would N more machines fit?" from live numbers (with an N+1 check in a cluster)
  • Reports: capacity, machine inventory and backup compliance over the whole cluster β€” HTML (prints to PDF), CSV or JSON, on demand or on a schedule
Storage & networks
  • Storage pools and volumes, ISO / cloud image upload with progress, grow volumes
  • Virtual networks (NAT, isolated, routed, bridged), DHCP leases with machine names, reserved addresses
  • Host wiring at a glance: physical ports, bonds, VLANs, bridges and which machines are plugged in
  • Packet capture on any host interface (tcpdump): watch it live or download a .pcap for Wireshark
  • Download images from a URL straight into a pool, verified against a SHA-256; find unused disk images
  • NFS, iSCSI and Ceph RBD storage, and one pool on every host of a cluster in a single step
  • VLANs on Open vSwitch bridges (per network or per adapter), and one network on every host in a single step
Several hosts
  • Install VirtoMir on each host and join them with a one-time join code β€” no shared database, no extra services; if one host is down, the others carry on
  • Manage every host from any of them: cluster overview with live host cards and all machines in one list, host switcher, consoles and live charts of any host
  • Move machines between hosts: stopped ones are copied, running ones are live-migrated β€” without copying disks on shared NFS storage, or copying them live
  • Alerts, activity and backups of all hosts in one place, history charts of every host side by side; roles apply on every host
  • Alert rules, notifications and the backup location saved the same on every host in one step
  • A CPU model every host supports, so machines can live-migrate between different CPUs
  • High availability: protected machines are restarted on another host when theirs dies β€” with quorum (and an optional witness), and only after the dead host is certainly off: through its BMC (IPMI or Redfish), its hardware watchdog, or an admin's confirmation. Priorities, preferred hosts, a "what if this host died" preview
  • Maintenance: move every running machine off a host in one go
  • Resource pools: nested limits on vCPUs, memory and disk space per storage pool, enforced on every create, resize and move
Security
  • Sign in with your Linux account (PAM); only root and members of the libvirt group
  • Roles from Linux groups: admin (libvirt), operator (virtomir-operator: run machines, console, snapshots, backups) and viewer (virtomir-viewer)
  • LDAP / Active Directory and OpenID Connect ("Sign in with …") besides local accounts, roles from directory groups
  • Two-step sign-in with any authenticator app (TOTP), with recovery codes; admins can reset it
  • Quotas and self-service: operators create and manage their own machines within a limit on machines, vCPUs and memory
  • API tokens for scripts and automation, limited to their owner's role
  • HTTPS by default (self-signed certificate created on first start, or your own)
  • Session timeouts, lockout after failed sign-ins, CSRF protection, activity log of every change (CSV export)
  • Updates from the GitHub releases in the UI (Account β†’ Updates): downloaded, checked against the published SHA-256 and installed with apt
Machine performance Machine settings
Machine firewall Snapshots
High availability Resource pools
Reports New machine
Storage Networks
Light theme Updates

On a phone

Screenshots from VirtoMir 0.3.0 on a test host (Ubuntu 26.04, libvirt 12) with real, small machines; the host name is shown as hv-01. Dark, light and "match system" themes; works on phones too.

Install

Debian / Ubuntu package
sudo apt install ./virtomir_0.3.0_amd64.deb   # from the latest release; pulls libvirt and QEMU if missing

It starts virtomird right away on port 8420 (self-signed HTTPS). Sign in with a Linux account in the libvirt group (admins), virtomir-operator or virtomir-viewer. Flags (listen address, own certificate) go in /etc/default/virtomird, then sudo systemctl restart virtomird. sudo apt purge virtomir also deletes /var/lib/virtomir; your machines are never touched. Later versions install from the UI (Account β†’ Updates). Build the package yourself with scripts/build-deb.sh <version> on Debian/Ubuntu (Go, Node, gcc, libpam0g-dev).

Tarball

Requirements: a Linux host with libvirt + QEMU/KVM running and systemd.

# Debian / Ubuntu: libvirt itself, if you don't have it yet
sudo apt install qemu-system-x86 libvirt-daemon-system ovmf swtpm

# Download a release, unpack it and run the installer
tar xzf virtomir_v0.1.0_linux_amd64.tar.gz
sudo ./virtomir_v0.1.0_linux_amd64/install.sh

The installer puts virtomird in /usr/local/bin, adds a PAM service (/etc/pam.d/virtomir) and a systemd unit, starts it and prints the address β€” usually https://<host>:8420/. Your browser asks you to accept the self-signed certificate once.

  • Sign in as root or as a user in the libvirt group (sudo usermod -aG libvirt <user>).
  • Only local access, behind your own reverse proxy: sudo ./install.sh --listen 127.0.0.1:8420
  • Upgrade: run the installer of the new release. Remove: sudo ./install.sh --uninstall (your VMs are not touched).
  • From GitHub directly: sudo ./install.sh --download (uses the gh CLI for private repositories).
Configuration

virtomird flags (edit ExecStart in /etc/systemd/system/virtomird.service):

Flag Default Meaning
-listen 127.0.0.1:8420 (installer: 0.0.0.0:8420) address and port
-auth pam none disables sign-in β€” development only
-auth-group libvirt besides root, who may sign in as admin
-operator-group virtomir-operator members may run machines but not change them
-viewer-group virtomir-viewer members may look but change nothing
-tls auto auto (self-signed in -state-dir), files (-tls-cert, -tls-key), off (behind a TLS proxy)
-state-dir /var/lib/virtomir certificate, metric history, alerts, schedules, activity log, tokens, cluster membership, configuration history, quotas, LDAP/OIDC settings; default backup location (backups/)
-name hostname how this host is called in a cluster
-libvirt-socket /var/run/libvirt/libvirt-sock

Build from source

git clone https://github.com/onurbaydas/VirtoMir && cd VirtoMir
(cd web && npm ci && npm run build)                            # web UI, embedded into the binary
CGO_ENABLED=1 go build -tags pam -o virtomird ./cmd/virtomird  # needs gcc + libpam0g-dev
# or everything incl. a release tarball:
sh scripts/build-release.sh v0.1.0-dev

Without -tags pam the binary builds anywhere (also cross-compiled from Windows/macOS), but can only run with -auth none.

Tags v* build and publish a release through GitHub Actions (.github/workflows/release.yml).

Development

  • Go (daemon, cmd/ + internal/) and Svelte 5 + TypeScript (UI, web/).
  • go test ./... and cd web && npm run check run anywhere, no libvirt needed.
  • scripts/dev-run.ps1 builds on Windows and runs on a Hyper-V dev host created by dev/hyperv/New-VirtoMirDevHost.ps1 (Debian 13 with nested KVM).
  • Design decisions live in .ai/context/decisions.md; contributors and AI agents start at AGENTS.md.

Roadmap

SPICE console and keyboard layouts, IPv6 networks and firewall rules, creating bonds and bridges on the host, ZFS/LVM pools, off-site backups (restic/S3), a Turkish UI, .rpm packages and a signed apt repository. See .ai/context/roadmap.md.

License

VirtoMir is free software: GNU Affero General Public License v3.0 or later β€” see LICENSE. You may use, study, change and share it; if you offer a changed VirtoMir to others over a network, you must offer them its source code too.

Copyright Β© 2026 Onur Baydas. For a commercial license without the AGPL's obligations, contact the author through GitHub.

Directories ΒΆ

Path Synopsis
cmd
virtomird command
Command virtomird is the VirtoMir daemon.
Command virtomird is the VirtoMir daemon.
internal
activity
Package activity records who changed what: every changing API call and every sign-in, with its result.
Package activity records who changed what: every changing API call and every sign-in, with its result.
alerts
Package alerts watches the live snapshots for trouble (host overloaded, a machine crashed, a pool filling up, libvirt gone) and notifies people.
Package alerts watches the live snapshots for trouble (host overloaded, a machine crashed, a pool filling up, libvirt gone) and notifies people.
api
Package api exposes VirtoMir's HTTP/JSON API (versioned under /api/v1) and serves the web UI.
Package api exposes VirtoMir's HTTP/JSON API (versioned under /api/v1) and serves the web UI.
auth
Package auth signs people in with their Linux account (PAM, like Cockpit), keeps browser sessions and API tokens, and decides roles: root and the admin group (default "libvirt", the group that may manage VMs anyway) are admins; optional operator and viewer groups get less (see roles.go).
Package auth signs people in with their Linux account (PAM, like Cockpit), keeps browser sessions and API tokens, and decides roles: root and the admin group (default "libvirt", the group that may manage VMs anyway) are admins; optional operator and viewer groups get less (see roles.go).
cluster
Package cluster lets several virtomird instances act as one (ADR-0020).
Package cluster lets several virtomird instances act as one (ADR-0020).
confighist
Package confighist keeps every version of each machine's definition (ADR-0021), so any change β€” made in VirtoMir, with virsh or by hand β€” can be compared and undone.
Package confighist keeps every version of each machine's definition (ADR-0021), so any change β€” made in VirtoMir, with virsh or by hand β€” can be compared and undone.
ha
Package ha keeps protected machines running when a cluster member dies (ADR-0031).
Package ha keeps protected machines running when a cluster member dies (ADR-0031).
history
Package history keeps metric history beyond the live minute: every 1 s sample is averaged into fixed-size rings at several resolutions (10 s for 6 h, 1 min for a day, 10 min for a week, 1 h for a month).
Package history keeps metric history beyond the live minute: every 1 s sample is averaged into fixed-size rings at several resolutions (10 s for 6 h, 1 min for a day, 10 min for a week, 1 h for a month).
hostinfo
Package hostinfo reads what libvirt does not tell about the host itself: who built it (DMI), its sensors (hwmon), its GPUs and their load, and how its network interfaces are wired (bonds, bridges, VLANs).
Package hostinfo reads what libvirt does not tell about the host itself: who built it (DMI), its sensors (hwmon), its GPUs and their load, and how its network interfaces are wired (bonds, bridges, VLANs).
jobs
Package jobs runs long operations (disk copies, uploads) in the background so HTTP requests return at once.
Package jobs runs long operations (disk copies, uploads) in the background so HTTP requests return at once.
live
Package live samples the host and its domains on a fixed interval (and immediately on libvirt lifecycle events) and fans the resulting snapshots out to subscribers such as the browser's event stream.
Package live samples the host and its domains on a fixed interval (and immediately on libvirt lifecycle events) and fans the resulting snapshots out to subscribers such as the browser's event stream.
quota
Package quota limits what operators may create themselves (ADR-0022): a rule per Linux group or user caps the number of machines, vCPUs and memory of the machines they own.
Package quota limits what operators may create themselves (ADR-0022): a rule per Linux group or user caps the number of machines, vCPUs and memory of the machines they own.
reports
Package reports writes capacity, inventory and backup-compliance reports from facts the API collects on every cluster member, keeps them in -state-dir/reports, and runs report schedules (ADR-0030, made real in ADR-0032).
Package reports writes capacity, inventory and backup-compliance reports from facts the API collects on every cluster member, keeps them in -state-dir/reports, and runs report schedules (ADR-0030, made real in ADR-0032).
respool
Package respool groups machines into resource pools with hard limits (ADR-0030, made binding in ADR-0032): vCPUs, memory and disk space per storage pool.
Package respool groups machines into resource pools with hard limits (ADR-0030, made binding in ADR-0032): vCPUs, memory and disk space per storage pool.
schedule
Package schedule runs automatic snapshots and backups of machines and keeps only the newest few of each (retention).
Package schedule runs automatic snapshots and backups of machines and keeps only the newest few of each (retention).
update
Package update finds newer VirtoMir releases on GitHub and installs them (ADR-0036): it downloads the release's .deb for this architecture, checks it against the published SHA-256 and hands it to apt in a transient systemd unit, so the upgrade survives the restart of virtomird itself.
Package update finds newer VirtoMir releases on GitHub and installs them (ADR-0036): it downloads the release's .deb for this architecture, checks it against the published SHA-256 and hands it to apt in a transient systemd unit, so the upgrade survives the restart of virtomird itself.
virt
Package virt is VirtoMir's gateway to libvirt.
Package virt is VirtoMir's gateway to libvirt.
Package web embeds the built web UI (web/dist, produced by `npm run build`) into virtomird.
Package web embeds the built web UI (web/dist, produced by `npm run build`) into virtomird.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL