virtomir

module
v0.8.0 Latest Latest
Warning

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

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

README

VirtoMir logo

VirtoMir

A Detailed Control Deck for Virtual Environments.

CI Status Good First Issues Go Report Card

Live demo · Try it in a VM · Install · Discussions

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 an existing Linux host with KVM/libvirt as a single binary (tested on Ubuntu 26.04; testers for Ubuntu 24.04, Debian and Fedora are welcome). No dedicated distribution, no database, no agents.

🚧 Status: early release (0.6). Tested on Ubuntu 26.04 on single hosts and small clusters; high availability has not been tried on real BMC hardware yet. Testers wanted for other setups and distributions (see issue #1). Test it before you trust it with production.

Overview

Try it: click through the online demo (made-up hosts, nothing to install), or get a throwaway test host in a VM with one command: Try VirtoMir without touching your servers.

Why?

Tool Focus
Cockpit (machines) Easy, but focuses on basic settings — advanced tuning requires virsh / XML
virt-manager Detailed, but a desktop application without web access
Proxmox VE Powerful, but it is the operating system

VirtoMir sits in the middle: as straightforward as Cockpit, as thorough as raw libvirt XML, with a modern web interface.

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 over VNC (noVNC) or SPICE (spice-html5: resolution follows the window, shared clipboard with the guest agent) 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
  • Storage QoS & SLAs: guarantee and cap I/O bandwidth (read_bytes_sec, write_bytes_sec) and IOPS (read_iops_sec, write_iops_sec, burst ceilings) per virtual disk using QEMU <iotune>, applied live without guest downtime
  • Confidential Computing: machines with encrypted memory (AMD SEV / SEV-SNP, Intel TDX) on hosts whose CPU and firmware offer it; VirtoMir reads what the host supports from libvirt and only offers that
  • System Containers: Linux system containers on libvirt LXC next to the virtual machines — Debian, Ubuntu or Alpine from images.linuxcontainers.org (checked against SHA-256), unprivileged (container root is an unprivileged user on the host), on the same virtual networks, with live CPU and memory, the text console, start, shut down, reboot and delete (needs libvirt-daemon-driver-lxc)
  • 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
  • Off-site copies with restic — encrypted and deduplicated, to S3 (or MinIO, Wasabi, Ceph RGW …), Backblaze B2, Azure, Google Cloud Storage, SFTP, a REST server or a disk; every scheduled backup can be copied right after it is made, with its own retention, and brought back with one click
  • Firewall per machine: in/out rules by protocol, port and IPv4/IPv6 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
  • Transparent Memory Deduplication (KSM): monitor and control Kernel Samepage Merging (/sys/kernel/mm/ksm), automatically sharing identical memory pages across virtual machines and displaying live saved GiB
  • Distributed SIEM / Syslog Forwarding: stream audit trail and security events in real time to enterprise SIEM platforms (Splunk, Graylog, ELK) in standard RFC 5424 format over UDP, TCP, or TLS

Storage & networks

  • Storage pools and volumes, ISO / cloud image upload with progress, grow volumes
  • Virtual networks (NAT, isolated, routed, bridged) with IPv4 and IPv6 (SLAAC, DHCPv6, NAT66), DHCP leases with machine names, reserved addresses
  • Cross-Host VXLAN Overlay (SDN): one layer-2 network spanning several hosts, tunnelled over their existing network (UDP 4789) without switch changes; created cluster-wide, every member gets the others as peers and one host is the gateway (NAT, DHCP); VirtoMir keeps the tunnel devices in place, also after a reboot
  • Asynchronous ZFS Storage Replication: datasets and zvols replicated to another host on a schedule with incremental zfs send -i | ssh … zfs receive, old replication snapshots pruned on both sides; a copy of the data elsewhere without a SAN
  • Host wiring at a glance: physical ports, bonds, VLANs, bridges and which machines are plugged in
  • Create bridges, bonds and VLAN interfaces on the host — through netplan, NetworkManager or systemd-networkd, whichever the host uses; a bridge can take over the host's own address. Every change must be confirmed within two minutes, or the host undoes it by itself (so a change that cuts you off heals itself)
  • 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
  • LVM and ZFS: use an existing volume group or zpool, or build a new volume group from empty disks (a disk with data on it is refused, never overwritten)
  • 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
  • Single-Pane Fleet Deck & DRS: every machine of the cluster in one list, and a Distributed Resource Scheduler that measures the load skew, honours affinity/anti-affinity rules, recommends live migrations you apply with one click — or, fully automated, carries them out itself — and suggests the best host for a new machine
  • 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, memory and disk space
  • 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

  • English and Turkish (Türkçe) user interface — the browser's language by default, switchable in the sidebar and on the Account page

Screenshots from VirtoMir 0.6 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.

What it does on your host

Before you install it on a hypervisor you care about — or try it in a throwaway VM first:

  • Runs as root, as one service (virtomird), because it talks to the system libvirt socket and checks passwords through PAM.
  • Listens on port 8420 (HTTPS) — on all addresses when installed from a package or with install.sh, only on 127.0.0.1 when the binary is started by hand. Change it in /etc/default/virtomird (/etc/sysconfig/virtomird on Fedora/RHEL), e.g. to 127.0.0.1:8420 behind your own reverse proxy.
  • Keeps its own state in /var/lib/virtomir (certificate, history, settings, activity log). No database and no agents inside your machines.
  • Never touches your existing machines on its own. It reads what libvirt has and changes only what you ask for, directly or through something you set up (schedules, high availability); changes made through VirtoMir are in the activity log.
  • Removes cleanly: sudo apt purge virtomir (or sudo ./install.sh --uninstall --purge) deletes the service and /var/lib/virtomir; your machines, disks and networks stay.
  • Security problems: please report them privately, see SECURITY.md.

Install

Signed package repository (apt / dnf)

Releases are published to a signed repository, so updates come with apt upgrade / dnf upgrade:

# Debian / Ubuntu
sudo install -d -m 0755 /etc/apt/keyrings
sudo curl -fsSL -o /etc/apt/keyrings/virtomir.asc https://onurbaydas.github.io/VirtoMir/virtomir.asc
echo "deb [signed-by=/etc/apt/keyrings/virtomir.asc] https://onurbaydas.github.io/VirtoMir/apt stable main" | sudo tee /etc/apt/sources.list.d/virtomir.list
sudo apt update && sudo apt install virtomir

# Fedora / RHEL 10 (experimental)
sudo curl -fsSL -o /etc/yum.repos.d/virtomir.repo https://onurbaydas.github.io/VirtoMir/virtomir.repo
sudo dnf install virtomir

The repository is built by scripts/build-repos.sh in the release workflow (InRelease and repomd.xml signed, every .rpm signed).

Debian / Ubuntu package

sudo apt install ./virtomir_0.8.0_amd64.deb   # or _arm64.deb; pulls libvirt and QEMU if missing

It starts virtomird right away on port 8420 (self-signed HTTPS); the first admin to sign in is walked through what the host still needs (storage, a network, a backup location, a first image). 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).

Fedora / RHEL package (experimental)

sudo dnf install ./virtomir-0.8.0-1.x86_64.rpm   # or .aarch64.rpm; Fedora 40+ / RHEL 10

Same service and port; flags go in /etc/sysconfig/virtomird. Update with dnf, not from the UI. Built with scripts/build-rpm.sh <version>.

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.8.0_linux_amd64.tar.gz
sudo ./virtomir_v0.8.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.6.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).
  • Work on the UI without any host: cd web && npm run dev:demo (the same pretend cluster as the online demo).
  • How to contribute: CONTRIBUTING.md. VirtoMir is developed with the help of AI coding agents; AGENTS.md is their entry point, and the best map of the code for people too.

Roadmap

Ideas and questions: Discussions. Found a bug or tried it on your hardware? Open an issue or report your setup in #1 (Testers wanted) — test reports from setups we cannot reach (real BMCs, Ceph, GPUs, other distributions) help the most.

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. Contributions are welcome under the Contributor License Agreement, which keeps both licenses possible.

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.
drs
Package drs provides Distributed Resource Scheduling (DRS) and workload rebalancing across cluster nodes in VirtoMir.
Package drs provides Distributed Resource Scheduling (DRS) and workload rebalancing across cluster nodes in VirtoMir.
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).
hostnet
Package hostnet creates and removes bridges, bonds and VLAN interfaces on the host (ADR-0042) through whatever already manages the host's network: netplan, NetworkManager or systemd-networkd.
Package hostnet creates and removes bridges, bonds and VLAN interfaces on the host (ADR-0042) through whatever already manages the host's network: netplan, NetworkManager or systemd-networkd.
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.
offsite
Package offsite copies backups to another place with restic (ADR-0043): encrypted, deduplicated, to any restic repository — S3 and S3-compatible storage (MinIO, Wasabi, Ceph RGW …), Backblaze B2, Azure, Google Cloud Storage, SFTP, a REST server or a directory.
Package offsite copies backups to another place with restic (ADR-0043): encrypted, deduplicated, to any restic repository — S3 and S3-compatible storage (MinIO, Wasabi, Ceph RGW …), Backblaze B2, Azure, Google Cloud Storage, SFTP, a REST server or a directory.
overlay
Package overlay keeps the host's VXLAN tunnel devices in line with VirtoMir's VXLAN networks (ADR-0054).
Package overlay keeps the host's VXLAN tunnel devices in line with VirtoMir's VXLAN networks (ADR-0054).
quota
Package quota limits what operators may create themselves (ADR-0022): a rule per Linux group or user caps the number of machines, vCPUs, memory and disk space (ADR-0044) 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, memory and disk space (ADR-0044) 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).
systemd
Package systemd provides zero-dependency Linux systemd sd_notify and watchdog integration.
Package systemd provides zero-dependency Linux systemd sd_notify and watchdog integration.
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.
zfsrep
Package zfsrep replicates ZFS datasets and zvols to another host (ADR-0056): on a schedule it takes a snapshot and sends what changed since the last one both sides have (zfs send -i @base | ssh target zfs receive -F), then prunes old replication snapshots on both sides.
Package zfsrep replicates ZFS datasets and zvols to another host (ADR-0056): on a schedule it takes a snapshot and sends what changed since the last one both sides have (zfs send -i @base | ssh target zfs receive -F), then prunes old replication snapshots on both sides.
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