From 57782a796a21e884f90dfca6a27e3d7a3fa23ebf Mon Sep 17 00:00:00 2001 From: Enje Shakirova <166139731+enjenjenje@users.noreply.github.com> Date: Fri, 30 Aug 2024 15:32:05 +0200 Subject: [PATCH] feat: nox vm support (#40) * initial commit for nox vm support * updated deployments to support libvirtd * updated deployments to support libvirtd * updated deployments to support libvirtd * updated deployments to support libvirtd --- roles/nox/defaults/main.yml | 3 ++- roles/prerequisites/tasks/main.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/roles/nox/defaults/main.yml b/roles/nox/defaults/main.yml index 37df5b3..5a55188 100644 --- a/roles/nox/defaults/main.yml +++ b/roles/nox/defaults/main.yml @@ -17,8 +17,9 @@ nox_unit_file: | Environment="FLUENCE_ROOT_KEY_PAIR__PATH={{ nox_dir }}/state/root_secret_key.ed25519" ExecStart={{ nox_dir }}/nox Restart=on-failure - User={{ nox_user }} + User=root Group={{ nox_group }} [Install] WantedBy=multi-user.target + diff --git a/roles/prerequisites/tasks/main.yml b/roles/prerequisites/tasks/main.yml index 8c41bf6..33f7872 100644 --- a/roles/prerequisites/tasks/main.yml +++ b/roles/prerequisites/tasks/main.yml @@ -9,6 +9,15 @@ loop: - libhwloc-dev - curl + - qemu-kvm + - libvirt-daemon-system loop_control: loop_var: package label: "{{ package }}" + +- name: enable libvirtd + ansible.builtin.systemd: + name: libvirtd + state: started + enabled: true + daemon_reload: true