From 5376253c9a8f791c41dd3fbb2e15e2cf67b9d6e9 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Wed, 14 Aug 2024 20:14:36 -0500 Subject: [PATCH] r/vmhost: Ensure vm-autostart waits for NFS mount If _vm-autostart.service_ starts before `/var/lib/libvirt/images` has been mounted, starting (some) virtual machines may fail. --- roles/vmhost/files/vm-autostart.service | 1 + 1 file changed, 1 insertion(+) diff --git a/roles/vmhost/files/vm-autostart.service b/roles/vmhost/files/vm-autostart.service index 3d9055d..1b832cf 100644 --- a/roles/vmhost/files/vm-autostart.service +++ b/roles/vmhost/files/vm-autostart.service @@ -3,6 +3,7 @@ Description=Start virtual machines After=libvirt.service After=network-online.target Wants=network-online.target +RequiresMountsFor=/var/lib/libvirt/images [Service] Type=oneshot