kvm: libvirt-guests and machined

Two main things covered off in this post: Getting libvirt-guests to work correctly, and machined/machinectl libvirt-guests This is configured via /etc/sysconfig/libvirt-guests and there’s a systemd service to enable: libvirt-guests.service Enabling it allows you to configure how guests start and stop with more flexibility. Some features libvirt-guests provides: On host shutdown, suspend the guests or shut […]

building or appending to an array using a lambda in Puppet

Tripped over a challenge shifting KVM guest definitions into hiera. I’m using the cirrax/libvirt module which offers up this way to define a guest.  (I’ve modified the example in the module documentation.) libvirt::domain { ‘my-domain’: max_memory => ‘2000’, cpus => 2, boot => ‘hd’, disks => [{‘type’ => ‘file’, ‘device’ => ‘disk’, ‘source’ => {‘dev’ […]