Live data from Hacker News

Linux Hypervisor Setup (Libvirt/QEMU/KVM)

octetz.com

51–60 of 64 posts

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

#51

I've been quite happy with LXD's support for VMs. Its really easy to pull an image an have a running VM with a single command.

Wow, so LXD added VM support! But it seems like still experimental. [1]

[1]: https://lxd.readthedocs.io/en/latest/virtual-machines/

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

#52
I've been struggling to run Windows VMs on Linux for a while. Are any of these tools a good option for that? I've installed a Windows VM more times than I can count and it hangs after 20-30 minutes of waiting. If anyone has a suggestion for an all in one tool that can help with this, I'm all ears.

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

#54
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 with kickstart or preseed files and VMs attached to the serial console, like

virt-install -n centos -r 1024 --cpu=host -l http://mirror.cogentco.com/pub/linux/centos/6/os/x86_64/ --disk path=/var/lib/libvirt/images/centos.img,size=10,bus=virtio --boot kernel_args="console=/dev/ttyS0" -w network=internal,model=virtio --initrd-inject=centos.ks -x "ks=file:/centos.ks console=ttyS0" --graphics none

Setting up the serial console requires some configuration on the host part, too, unfortunately, depending on the OS.

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

#55

I’ve been using Proxmox community edition for my home datacenter. It’s good to see what this article details into it and how some can pull all this together … for free (or for a small sum). URL: https://proxmox.com/en/proxmox-ve/features

I was recently going to set up Proxmox as well, since I had used it ~7 years ago and it was working well. But I ran into an expectation that I have a drive dedicated to putting ISOs on, in addition to the OS install and the virtual machine storage. I was trying to set it up on a SFF machine and was limited in what I could put into it and I just kind of noped out of it. I couldn't install any VMs until I did this. I d…

If you install Proxmox VE the next time and are not happy with the default layout, check out the parameters for LVM [0]. I personally prefer to install on ZFS as all ZFS datasets share the same free space unlike with LVM.

If you want full control of the disk layout and maybe want to do some more custom stuff, consider installing a base Debian and then install Proxmox VE on top of it [1].

The PVE installer makes it easy to get a system up and running quickly but is opinionated what the disk layout should be. That of course might not be working for everyone.

[0] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#advanc... [1] https://pve.proxmox.com/pve-docs/pve-admin-guide.html#_insta...

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

#56
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?

qemu on its own is indeed faster to iterate and learn with.

In production you probably want the host-vm and vm-vm confinement provided by svirt https://libvirt.org/drvqemu.html#driver-security-architectur...

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

#57
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.…

vagrant with the vagrant-libvirt plugin. The roboxes project provides pre-installed and configured vagrant boxes for allmost all distributions. Its really just a matter of seconds to bring up whatever distribution box you like. Even pre-configured and sysprepped windows images exist.

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

#58
post #48

Earlier quoted context omitted.

I was recently going to set up Proxmox as well, since I had used it ~7 years ago and it was working well. But I ran into an expectation that I have a drive dedicated to putting ISOs on, in addition to the OS install and the virtual machine storage. I was trying to set it up on a SFF machine and was limited in what I could put into it and I just kind of noped out of it. I couldn't install any VMs until I did this. I d…

(I think) I ran into the same or similar problem you did - there's a partition for the debian OS + iso images of a fixed size (df shows it as /dev/mapper/pce-root -> / ) and all the reallocatable storage used by the VMs comes out of the rest. Thing is it's hard to re-allocate this partition, and that's where all the iso images, and the backups go. I tried to migrate a vm and boom - it filled up. I tried to figure out…

Yep. so glad that i experimented (over a week) with Proxmox install over an existing Denuvan (Debian SysV init) install.

Made more sense to have a second drive or second but largest LVM to play with and store all things VM.

So confident that I disabled the Proxmox 'local' drive.

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

#59

Earlier quoted context omitted.

I snapped up an old Dell T710 2-socket, 12 CPU, 24-thread Xeon rack, PERc 6 RAID for $100, populated with cheap Seagate 2TB IronWolf HDs, leftover 1033Mz DDR3 to 96GB for 3 RAID HD groups (RAID 1 for OS, RAID5 for data, and JBOD for VM images.) Has a pfSense/FreeBSD VM for a gateway and a bunch of VMs on a detached bridge. Also have several more bridges for test VMs for real-world airgapped network setup. 8 different…

I have something very similar, but an Optiplex. One thing I had to do recently though is swap pfsense for Untangle because of drastically better FQ-CoDel implementation in Untangle.

I went over to Untangle website for any data sheet but was unable to get one immediately (have to fork over everything but your youngest child, so to speak in order to get it.

Not sure why would one even do that.

  :-(

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

#60

One thing is missing comparing to virtualbox, is the bridge-mode especially when host uses wireless which is very common these days. virtualbox hacked bridge-mode and made it working well all the time, with libvirt/qemu/kvm you will need write a lot of scripts and click around to set this up. This is the sole reason I had to stick with virtualbox these years.

For 99% of the people that want "bridged mode" ipvlan should work with minimal config needed. For the other 1% it gets more hairy.
Post reply on HN