From: David Galloway Date: Thu, 18 Dec 2025 19:39:27 +0000 (-0500) Subject: ceph-windows-PRs: Fix virt-install command X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F2509%2Fhead;p=ceph-build.git ceph-windows-PRs: Fix virt-install command Behavior changed in newer virt-install. `--import` says boot the prebuilt qcow2. Older virt-install versions tolerated `--boot hd` without `--import` but now `--import` is required in this scenario and `--boot hd` is redundant. Signed-off-by: David Galloway --- diff --git a/scripts/ceph-windows/setup_libvirt_ubuntu_vm b/scripts/ceph-windows/setup_libvirt_ubuntu_vm index b2481ab8..5e97b722 100644 --- a/scripts/ceph-windows/setup_libvirt_ubuntu_vm +++ b/scripts/ceph-windows/setup_libvirt_ubuntu_vm @@ -53,7 +53,7 @@ cloud-localds ${LIBVIRT_DIR}/config-drive.img ${LIBVIRT_DIR}/user-data.yaml ${LI sudo virt-install \ --name $UBUNTU_VM_NAME \ --os-variant ubuntu22.04 \ - --boot hd \ + --import \ --virt-type kvm \ --graphics spice \ --cpu host \ diff --git a/scripts/ceph-windows/setup_libvirt_windows_vm b/scripts/ceph-windows/setup_libvirt_windows_vm index ade873d3..6e64ab15 100644 --- a/scripts/ceph-windows/setup_libvirt_windows_vm +++ b/scripts/ceph-windows/setup_libvirt_windows_vm @@ -20,7 +20,7 @@ curl -s -L $WINDOWS_VM_IMAGE_URL -o ${LIBVIRT_DIR}/ceph-windows-client.qcow2 sudo virt-install \ --name $WINDOWS_VM_NAME \ --os-variant win2k19 \ - --boot hd \ + --import \ --virt-type kvm \ --graphics spice \ --cpu host \