From: Lucian Petrut Date: Tue, 13 Feb 2024 11:23:48 +0000 (+0200) Subject: windows: install libvirt X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=963353d30d31e792f87ab27efd21f8f7b9333d90;p=ceph-build.git 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 --- 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