From a58dbb74c53c5048c496852492938d95884e408f Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 28 Jan 2025 17:36:35 -0600 Subject: [PATCH] r/vmhost: Clean up qemu packages At some point, the _qemu-kvm_ package became a meta-package that installs _everything_ QEMU-related. All drivers, backends, frontends, etc. get pulled in, which results in a huge amount of wasted space. Recently, the VM hosts started getting alerts about their `/` filesystem getting too full, which is how I discovered this. We can dramatically reduce the disk space footprint by installing only the "core" package and the drivers we need for our servers. After making and applying this change, which marks the listed packages as "leaf" installs, I then manually uninstalled the _qemu-kvm_ package. This uninstalled everything else that is not specifically listed. --- roles/vmhost/vars/main.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/vmhost/vars/main.yml b/roles/vmhost/vars/main.yml index f8cb985..0346f28 100644 --- a/roles/vmhost/vars/main.yml +++ b/roles/vmhost/vars/main.yml @@ -4,4 +4,7 @@ vmhost_required_packages: - libvirt-daemon-driver-storage-core - python3-libvirt - python3-lxml -- qemu-kvm +- qemu-audio-spice +- qemu-device-display-qxl +- qemu-device-display-virtio-vga +- qemu-system-x86-core