News for hackers. Stuff that matters.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by happyPersonR on Monday July 06, 2026 @11:28AM (#48806037)
There used to be virt-manager

Wonder if it’s still around ? Hope it’s doing well !

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by MisterTea on Monday July 06, 2026 @01:12PM (#48807585)
Unfortunately it still exists. Virt manager drives me crazy because it hides the VM files in its own directory with permissions that aren't yours forcing you to use sudo to manually manage your own fucking vm files. Creating a new VM? You're forced to pick an OS by typing the name of your OS into a search box which is tedious and doesnt give you an option for generic x86 machine. I hate it with a burning passion and instead manually manage VMs by reading the qemu man page and writing a script to directly invoke qemu. I'd recommend VirtualBox over it any day.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by jeroenhd on Friday July 10, 2026 @07:08AM (#48858344)
I can't say I share your hatred. It's my go-to management interface for VMs like this. Especially because it allows managing a remote libvirt install over SSH, handling things like forwarding the screen and input for you.

If you don't want to pick an OS preset, you can always just go for "manual install" and a "generic" OS and pick your own preferred configuration later. Or you paste the URL for an online install directory, which is even easier.

To manage libvirt machine without root, you can add your user to the libvirt group.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by tosti on Friday July 10, 2026 @07:30AM (#48858494)
You can add directories to the storage, including ones in your home directory. Generic is actually the default option, all you have to do is to disable auto-detection.

It's fine to run qemu directly, but virt-manager ain't bad.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by tremon on Friday July 10, 2026 @08:08AM (#48858797)
I don't share your antipathy against libvirt, but I do the same. To configure a qemu vm via libvirt you need to learn two concepts: the qemu internals, and how they're mapped to libvirt properties. And since the qemu internals are mostly documented as command-line switches, you can skip learning the libvirt mappings by just using shell.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by Intralexical on Friday July 10, 2026 @08:13AM (#48858825)
> Virt manager drives me crazy because it hides the VM files in its own directory with permissions that aren't yours forcing you to use sudo to manually manage your own fucking vm files.

I just checked my `~/.local/share/libvirt/`. It doesn't do this for me, and I don't think it ever has.

I do remember having to set this up at some point. Looks like this is it:

https://unix.stackexchange.com/questions/799034/whats-the-di...

There are some limits around network ports in User Sessions, but it should suffice for anything you'd use Vagrant for.

> Creating a new VM? You're forced to pick an OS by typing the name of your OS into a search box which is tedious and doesnt give you an option for generic x86 machine.

...There is though? It's in the dropdown under "Generic or unknown OS. Usage is not recommended (generic)". Here it is in the code if you don't believe me:

https://github.com/virt-manager/virt-manager/blob/c3df2ba/vi...

And a random tutorial which makes use of it:

https://cyberlab.pacific.edu/courses/comp178/resources/virtu...

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by bonzini on Friday July 10, 2026 @08:38AM (#48859059)
There are two ways to run the Libvirt daemon, which are unprivileged and privileged aka system. You are using unprivileged mode, the parent is using system mode which is more powerful and provides better isolation but does hide stuff in /var.

For example, running QEMU as its own user and using PCI passthrough is only possible with the system daemon.

You also need the system daemon to set up bridged networking, though the unprivileged daemon can use it through a setuid helper.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by tosti on Friday July 10, 2026 @01:36PM (#48862855)
Nah, just add your own directories to storage. I've always done it that way and it works just fine.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by dizhn on Saturday July 11, 2026 @12:56PM (#48873631)
You have to give your user libvirt rights (i think it's a group) and connect as user rather than system.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by creshal on Friday July 10, 2026 @07:57AM (#48858715)
"around" is the best way to describe it; the libvirt/virt-manager ecosystem isn't dead, but redhat killing off ovirt/rhev support drained a lot of resources out of it.

And for some bizarre reason people decided that the much less mature (both organizationally and technologically) proxmox VE is the best thing since sliced bread, so everyone who does care about linux virtualization is now trying to hammer some homelabbers' collection of perl scripts into a replacement.

It would be funny if it wasn't so sad.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by bonzini on Friday July 10, 2026 @08:36AM (#48859032)
Red Hat is still using and developing libvirt (though the user facing layer is Kubevirt instead of oVirt) and virt-install, and even though virt-manager is not growing new features libvirt takes backwards compatibility extremely seriously, so new libvirt works with relatively old virt-manager.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by creshal on Saturday July 11, 2026 @06:35AM (#48870700)
kubevirt is a cute joke, but hardly a replacement for ovirt or vmware. It's a real shame redhat keeps sabotaging itself to chase hypes with half-assed non-solutions.
Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by mike_hock on Friday July 10, 2026 @02:51PM (#48863735)
> It would be funny if it wasn't so sad.

Well it has been replaced. We don't need anything now.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by flyinghamster on Friday July 10, 2026 @08:20AM (#48858884)
Until recently, I used it routinely for VMs, and it worked solidly and reliably. There is a ZFS storage backend as well, always nice to see since I've loved to use zvols for VMs, even when I did VirtualBox on OpenIndiana back before ZFS on Linux was viable.

But I found that Proxmox fit my needs much better than wrestling vanilla Ubuntu or Debian into a VM server, particularly for things like backup/restore and instrumentation, or setting up a bridge on a desktop-based installation. Since both are based on QEMU/KVM, it wasn't too hard to move my VMs (one thing you might need to look out for is changing network interface names).

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by alexpotato on Friday July 10, 2026 @08:31AM (#48858992)
I still use it for home projects and it's great!

Little wonky to get the config files all setup for a VM but LLMs make that a breeze these days.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by nobody42 on Friday July 10, 2026 @08:48AM (#48859153)
It's usable (?) as a toy: numerous gui inconsistencies and lack of security isolation [0].

Can't say whether the of lack funding (move to Cockpit from Red Hat) is the reason, or maintainer is just an obstructionist (strictest feature policy).

[0] https://github.com/virt-manager/virt-manager/issues/358

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by 0cf8612b2e1e on Friday July 10, 2026 @12:22PM (#48862057)
That is infuriating to read. I have been using virt-manager and sleeping soundly that it was a secure isolation level.

VM guests should be considered trusted? Are you kidding me? That’s my number one usage -to operate software I do not trust.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by tredre3 on Friday July 10, 2026 @01:48PM (#48863033)
This is a shockingly common sentiment in open-source maintainers, that all software on a machine should be trusted.

Just to name two recent (and thus inexcusable) examples on top of my head:

Systemd refused to fix a privilege escalation through their use of "less" for years because they argued any user getting to that point should be trusted. The real world doesn't work that way unfortunately. They relented when someone took the initiative to fill a CVE.

Caddy's admin interface is system-wide opened, any local user can inject configuration and take over everything. Doesn't have to be a local user; think of any service you run that can makes web requests on behalf of people (custom api endpoints, avatar fetching, etc), it can be used to take over Caddy.

Re:Ditching Vagrant: VMs with KVM and Virsh on Debian by freedomben on Friday July 10, 2026 @12:47PM (#48862352)
I use it multiple times a day, and it's great! It doesn't try to hide details from you, but it does put a well-thought out GUI in front so you don't have to stumble around. It's not perfect, does take some getting used to, but it's stable and relatively comprehensive. I love it. Caveat: I'm mainly using it for home usage in my home lab.

I also love that I can drop to the CLI easily for scripts and it plays perfectly well with virt-manager, and it can be used easily over SSH to manage VMs on a remote host (which is key to my use case).