From c9741e8227d36075967b1fc2179cee29b25a7dd7 Mon Sep 17 00:00:00 2001 From: Praveen K Paladugu Date: Thu, 5 Dec 2024 17:30:36 +0000 Subject: [PATCH] libvirt: Enable virtnetworkd service Enable virtnetworkd service along with libvritd service. virtnetworkd service will setup the default NAT network for guests to use. Signed-off-by: Praveen K Paladugu --- lisa/sut_orchestrator/libvirt/transformers.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/lisa/sut_orchestrator/libvirt/transformers.py b/lisa/sut_orchestrator/libvirt/transformers.py index 7ec21964f9..b0c30e6cdf 100644 --- a/lisa/sut_orchestrator/libvirt/transformers.py +++ b/lisa/sut_orchestrator/libvirt/transformers.py @@ -551,7 +551,6 @@ def _install_libvirt(runbook: schema.TypedSchema, node: Node, log: Logger) -> No if isinstance(node.os, Ubuntu): node.execute("systemctl disable apparmor", shell=True, sudo=True) - node.execute("systemctl enable libvirtd", shell=True, sudo=True) node.reboot(time_out=900) if isinstance(node.os, CBLMariner): # After reboot, libvirtd service is in failed state and needs to @@ -571,7 +570,11 @@ def _install_libvirt(runbook: schema.TypedSchema, node: Node, log: Logger) -> No libvirt_version = libvirt_installer._get_version() log.info(f"Already installed! libvirt version: {libvirt_version}") _fix_mariner_installation(node=node) - node.reboot(time_out=900) + + node.execute("systemctl enable libvirtd", shell=True, sudo=True) + node.execute("systemctl enable virtnetworkd", shell=True, sudo=True) + log.info("Enabled libvirtd and virtnetworkd services") + node.reboot(time_out=900) # Some fixes to the libvirt installation on Mariner.