From 1e6ab546bc5b1ec1a9a55c3c3869a87a01db4cee Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Sun, 13 Oct 2024 18:30:04 -0500 Subject: [PATCH] r/vmhost: Create directory for console logs Need a directory where _libvirt_ can write logs from VM serial console output. --- roles/vmhost/tasks/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/roles/vmhost/tasks/main.yml b/roles/vmhost/tasks/main.yml index f7e94ee..e3da68d 100644 --- a/roles/vmhost/tasks/main.yml +++ b/roles/vmhost/tasks/main.yml @@ -36,6 +36,16 @@ - qemu - storage +- name: ensure libvirt console log directory exists + file: + path: /var/log/libvirt/console + owner: root + group: root + mode: u=rwx,go= + state: directory + tags: + - log-dir + - name: ensure libvirtd starts at boot service: name: libvirtd