Skip to content

Commit

Permalink
libvirt: Enable virtnetworkd service
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
praveen-pk committed Dec 20, 2024
1 parent ea81548 commit c9741e8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lisa/sut_orchestrator/libvirt/transformers.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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.
Expand Down

0 comments on commit c9741e8

Please sign in to comment.