Live data from Hacker News

Linux Hypervisor Setup (Libvirt/QEMU/KVM)

octetz.com

1–10 of 64 posts

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#2
What do you all use for quick one-command (non gui) new vm bringup?

I haven't had much luck with terraform with libvirt, and I miss Vagrant but don't want to lock myself into its syntax. Maybe I should just start using it again but I feel like there has got to be a good libvirt-based way.

Provisioning new test vms with userdata embedded into an kickstart-or-whatever iso that is provided to libvirt also seems clunky. docker-machine is no longer maintained so I can't use it as a vagrant replacement to just bring up sshable hosts. Multipass?

Curious as to how others have solved this.

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#4
post #3

I use qemu and never really understood the need for any further abstraction such as libvirt over it's cli usage. Can anyone tell me what there is to be gained other than needing further setup, packages and systemd services?

libvirt is mainly a consistency wrapper. So you can use kvm or lxc.

As for what it “gives”, I suppose I’ve never migrated a VM outside of libvirt, though I’m not 100% sure if that’s not possible with plain old qemu+kvm

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#5
post #2

What do you all use for quick one-command (non gui) new vm bringup? I haven't had much luck with terraform with libvirt, and I miss Vagrant but don't want to lock myself into its syntax. Maybe I should just start using it again but I feel like there has got to be a good libvirt-based way. Provisioning new test vms with userdata embedded into an kickstart-or-whatever iso that is provided to libvirt also seems clunky.…

virt-install or virt-builder.

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#6
post #3

I use qemu and never really understood the need for any further abstraction such as libvirt over it's cli usage. Can anyone tell me what there is to be gained other than needing further setup, packages and systemd services?

I am not an expert but libvirt is not only for qemu but it supports various virtualization technologies such as Xen, LXC, VMware. So if you decide to stick with QEMU then I guess you don't need to use libvirt.

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#7
post #3

I use qemu and never really understood the need for any further abstraction such as libvirt over it's cli usage. Can anyone tell me what there is to be gained other than needing further setup, packages and systemd services?

This is a blog post I wrote about the KVM userspace architecture, it goes into why Red Hat uses Libvirt in its virtualization products.

https://www.redhat.com/en/blog/all-you-need-know-about-kvm-u... (fixed now)

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#8
post #7
post #3

I use qemu and never really understood the need for any further abstraction such as libvirt over it's cli usage. Can anyone tell me what there is to be gained other than needing further setup, packages and systemd services?

This is a blog post I wrote about the KVM userspace architecture, it goes into why Red Hat uses Libvirt in its virtualization products. https://www.redhat.com/en/blog/all-you-need-know-about-kvm-u... (fixed now)

Getting a 404

Re: Linux Hypervisor Setup (Libvirt/QEMU/KVM)

#10
post #8
post #7

Earlier quoted context omitted.

This is a blog post I wrote about the KVM userspace architecture, it goes into why Red Hat uses Libvirt in its virtualization products. https://www.redhat.com/en/blog/all-you-need-know-about-kvm-u... (fixed now)

Getting a 404

https://www.redhat.com/en/blog/all-you-need-know-about-kvm-u...
Post reply on HN