From 963353d30d31e792f87ab27efd21f8f7b9333d90 Mon Sep 17 00:00:00 2001 From: Lucian Petrut Date: Tue, 13 Feb 2024 13:23:48 +0200 Subject: [PATCH] windows: install libvirt The Windows jobs use Libvirt VMs to build Ceph and run the tests. The issue is that we're assuming Libvirt to be preinstalled, which isn't necessarily the case. This change will explicitly install Libvirt. Signed-off-by: Lucian Petrut --- scripts/ceph-windows/setup_libvirt | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/scripts/ceph-windows/setup_libvirt b/scripts/ceph-windows/setup_libvirt index 1c6313dd..f9df6e56 100644 --- a/scripts/ceph-windows/setup_libvirt +++ b/scripts/ceph-windows/setup_libvirt @@ -74,14 +74,9 @@ function get_libvirt_vm_ssh_address() { # # Setup requirements (if needed) # -if ! which virt-install >/dev/null; then - sudo apt-get update - sudo apt-get install -y virtinst -fi -if ! which cloud-localds >/dev/null; then - sudo apt-get update - sudo apt-get install -y cloud-image-utils -fi +sudo apt-get update +sudo apt-get install -y libvirt-daemon-system virtinst cloud-image-utils + if ! sudo virsh net-info default &>/dev/null; then cat << EOF > $LIBVIRT_DIR/default-net.xml -- 2.47.3