Hacker News
Ditching Vagrant: VMs with KVM and Virsh on Debian
ianeff
|next
[-]
It was a forklift, to be sure, but the machines're snappier, & you buy yourself a little headroom.
veeti
|next
|previous
[-]
There's plenty of images for different distributions, automatic file sharing between host and guest, etc.
fulafel
|next
|previous
[-]
stefanha
|next
|previous
[-]
It's convenient when you don't want to manually install a guest and also don't want to figure out preseed/kickstart/etc.
It makes creating new KVM guests easier and has handy features like the ability to copy in ssh keys so you can connect to the guest right away.
cortesoft
|next
|previous
[-]
happyPersonR
|next
|previous
[-]
Wonder if it’s still around ? Hope it’s doing well !
creshal
|root
|parent
|next
[-]
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.
bonzini
|root
|parent
[-]
freedomben
|root
|parent
|next
|previous
[-]
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).
nobody42
|root
|parent
|next
|previous
[-]
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).
alexpotato
|root
|parent
|next
|previous
[-]
Little wonky to get the config files all setup for a VM but LLMs make that a breeze these days.
flyinghamster
|root
|parent
|next
|previous
[-]
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).
MisterTea
|root
|parent
|previous
[-]
jeroenhd
|root
|parent
|next
[-]
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.
tosti
|root
|parent
|next
|previous
[-]
It's fine to run qemu directly, but virt-manager ain't bad.
tremon
|root
|parent
|next
|previous
[-]
Intralexical
|root
|parent
|previous
[-]
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...
bonzini
|root
|parent
[-]
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.
SkipperCat
|next
|previous
[-]
exabrial
|next
|previous
[-]
zamadatix
|next
|previous
[-]
shellwizard
|next
|previous
[-]
guilhas
|next
|previous
[-]
I am trying vanilla qemu with cloud-init. Images: https://images.linuxcontainers.org/images/