]> git.apps.os.sepia.ceph.com Git - ceph-build.git/commitdiff
windows: install libvirt 2194/head
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 13 Feb 2024 11:23:48 +0000 (13:23 +0200)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Tue, 13 Feb 2024 11:53:18 +0000 (13:53 +0200)
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 <lpetrut@cloudbasesolutions.com>
scripts/ceph-windows/setup_libvirt

index 1c6313dd2b5f64ffa8b691070d414321aa8e3c09..f9df6e56f37b29647e362551e54137999a1e860c 100644 (file)
@@ -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
 <network>