About libvirt
libvirt is an open-source virtualization management library written in C and released under the LGPL-2.1. It provides a common API and tooling layer for managing virtual machines and containers across different hypervisors and technologies, so that management software does not have to speak each platform's own interface.
Other projects build on it, for example the virt-manager desktop tool, which manages QEMU/KVM, Xen and LXC through libvirt drivers. Administrators and tool authors use libvirt to create, configure, start and stop guests and to manage their storage and networks, usually through command-line tools or bindings for other languages.
The GitHub repository is a read-only mirror. Merge requests and issues go to the project's GitLab instance, where development takes place, so the GitHub copy is mainly useful for browsing the source.
Key features
- Common API for managing virtual machines
- Supports QEMU/KVM, Xen and LXC drivers
- Library written in C
- Foundation for tools like virt-manager
Good fit for
- →Building virtualization management tools
- →Managing KVM guests on Linux servers
- Built with
- C
- Tags
- virtualization
- libvirt
- kvm
- qemu
- xen
- api
- hypervisor
- linux
libvirt: questions and answers
- What is libvirt used for?
- libvirt is a C toolkit and API for managing virtualization platforms such as QEMU/KVM, Xen and LXC containers. It is a good fit for building virtualization management tools and managing KVM guests on Linux servers.
- Is libvirt open source?
- Yes. libvirt is open source under the LGPL-2.1 licence. Its source code is on GitHub at libvirt/libvirt and is written mainly in C.
- Is libvirt free?
- Yes. libvirt is open source, so the software itself is free to use.
- Can I self-host libvirt?
- Yes. libvirt can be self-hosted on your own server or infrastructure; there is no official hosted version.
- What is libvirt an alternative to?
- libvirt is an open-source alternative to VMware vSphere. Other open-source alternatives to VMware vSphere include KubeVirt, Incus and LXD.
- Is libvirt actively maintained?
- Yes. The most recent commit to libvirt was on 1 October 2026. The project has 1.7k stars on GitHub.
Open-source alternatives to libvirt
See all
KubeVirt
Infrastructure & Containers
Kubernetes Virtualization API and runtime in order to define and manage virtual machines.
Apache-2.0vs Amazon EC2★ 7.1k
Incus
Infrastructure & Containers
Powerful system container and virtual machine manager
Apache-2.0vs Amazon EC2★ 6.3k
LXD
Infrastructure & Containers
Powerful system container and virtual machine manager
AGPL-3.0vs Amazon EC2★ 4.8k
Apache CloudStack
Infrastructure & Containers
Apache CloudStack is an opensource Infrastructure as a Service (IaaS) cloud computing plat
Apache-2.0vs Amazon Web Services★ 3.1k
Harvester
Infrastructure & Containers
Open source hyperconverged infrastructure (HCI) software
Apache-2.0vs Amazon EC2★ 5.2k
ProxCenter
Infrastructure & Containers
ProxCenter is an alternative to VMware vCenter for Proxmox environments. It provides a mod
OSSvs VMware vSphere★ 1.7k
SaaS alternatives to libvirt
See all
VMware vSphere
Infrastructure & Containers
Server virtualization platform for managing virtual machines and clusters
SaaS
Nutanix
Infrastructure & Containers
Hyperconverged infrastructure and hybrid multicloud platform
SaaS
Platform9
Infrastructure & Containers
Managed Kubernetes and private cloud platform for hybrid environments
SaaSVirtuozzo
Infrastructure & Containers
Virtualization, containers and cloud infrastructure software for hosting providers
SaaS
Mirantis
Infrastructure & Containers
Kubernetes and container platform vendor with Mirantis Kubernetes Engine
SaaS
VMware Workstation
Infrastructure & Containers
Desktop hypervisor for running virtual machines on Windows and Linux
SaaS
