# libvirt

14 Hacker News commenters recommended libvirt and 11 criticized it, November 2025 to November 2026. It was recommended in 7 of 13 months.

**Verdict:** Free tool for scripting and managing KVM/QEMU virtual machines, with a backwards-compatible interface. Critics cite XML-heavy configuration and flaky USB passthrough.

## Why people recommend it

- Scriptable, easy to automate (3 comments): "I threw together this script[0] using libvirt to give claude its own graphical desktop env" ([source](https://news.ycombinator.com/item?id=48960606)) "with libvirt you can easy script out what the initial environment and network stack is" ([source](https://news.ycombinator.com/item?id=48961207)) "Libvirt is scriptable enough for that" ([source](https://news.ycombinator.com/item?id=47538880))
- Easy VM setup and management (3 comments): "making local VMs so trivial to spin up and manage" ([source](https://news.ycombinator.com/item?id=46479206)) "stuff like this is pretty easy to setup" ([source](https://news.ycombinator.com/item?id=46078190)) "Libvirt isn't even difficult" ([source](https://news.ycombinator.com/item?id=49605606))
- Lower cost than VMware (2 comments): "For custom SMB I still think libvirt is a lower entry cost" ([source](https://news.ycombinator.com/item?id=48689909)) "I saved a bunch of money over VMware." ([source](https://news.ycombinator.com/item?id=49604128))

## What people warn about

- XML-heavy configuration (2 comments): "I also wanted to avoid libvirt's mountain of XML" ([source](https://news.ycombinator.com/item?id=47841970)) "simpler than libvirt and no XML to deal with" ([source](https://news.ycombinator.com/item?id=45906140))
- Requires QEMU internals knowledge (2 comments): "To configure a qemu vm via libvirt you need to learn two concepts: the qemu internals, and how they're mapped to libvirt properties." ([source](https://news.ycombinator.com/item?id=48858797)) "a convoluted QEMU and libvirt setup" ([source](https://news.ycombinator.com/item?id=47875661))

## Alternatives hackers recommend

- [QEMU](https://hackerapproved.com/p/qemu.md): 114 recommend
- [UTM](https://hackerapproved.com/p/utm.md): 49 recommend
- [VirtualBox](https://hackerapproved.com/p/virtualbox.md): 34 recommend
- [Lima](https://hackerapproved.com/p/lima.md): 31 recommend
- [Vagrant](https://hackerapproved.com/p/vagrant.md): 25 recommend

## Cite as

Hacker Approved, "libvirt", https://hackerapproved.com/p/libvirt/ (counts from 1,795,640 Hacker News comments, November 2025 to November 2026).
