Kvm

Sharing Host Files With KVM

During my most recent server-build, I had to tackle exposing host-managed files to VMs. Previously, I used NFS. However, that was becoming increasingly troublesome, unfortunately due to IPv6. While I have an IPv6 connection and IPv6 network, my router will stop advertising the IPv6 network if the Internet goes down, causing connectivity issues. Additionally, the uncertainty of whether any connection will come as fe80:: vs my regular routable address was a pain (especially when my IPv6 network changed).

Discard (TRIM) with KVM Virtual Machines

Update - March 09 2020 Since writing this article, I’ve made a few observations: More people read this than expected QEMU has since added discard support to the standard virtio disk, avoiding the need to use virtio-scsi It kinda sorta works out of the box. I’ve written a brief followup: Discard (TRIM) with KVM Virtual Machines… in 2020! Original Article I’ve got a bunch of KVM virtual machines running at home.

Fedora cloud for mere mortals

I’ve come across a post by Marek Goldmann detailing the basics of running Fedora cloud images on kvm. I found it was a massive help, but only got me part-way toward what I wanted. The documentation for cloud-init is sub-par from what I can find, so I thought I’d post this with my own modifications. My requirements were: Easy scriptable deployment (Marek’s script got me 100% of this goal) Static (sequential) IP assignments instead of DHCP hostname !