From b4788d51f8598b524925372c280c689580ca3c7e Mon Sep 17 00:00:00 2001 From: Alexandros Afentoulis Date: Mon, 27 Aug 2018 16:54:18 +0300 Subject: [PATCH] oci-poc-vms init: fix second drive index If qemu starts with a second drive index cannot be equal to 0, since that would be already used by the first drive and qemu would fail like this: qemu-system-x86_64: drive with bus=0, unit=0 (index=0) exists thus no slave vms will be spawned. This commit changes index for second drives used by slave vms. --- debian/openstack-cluster-installer-poc.oci-poc-vms.init | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian/openstack-cluster-installer-poc.oci-poc-vms.init b/debian/openstack-cluster-installer-poc.oci-poc-vms.init index 7014dab1..230e89e6 100644 --- a/debian/openstack-cluster-installer-poc.oci-poc-vms.init +++ b/debian/openstack-cluster-installer-poc.oci-poc-vms.init @@ -37,7 +37,7 @@ GUEST_NUMBER_LIST=$(seq -s ' ' 1 ${NUMBER_OF_GUESTS}) start_one_vm () { if [ "${1}" = "--second-hdd" ] ; then QCOW2_PATH=${2} - SECOND_DRIVE="-drive if=virtio,file=${QCOW2_PATH},index=0,media=disk,format=qcow2" + SECOND_DRIVE="-drive if=virtio,file=${QCOW2_PATH},index=1,media=disk,format=qcow2" shift shift else -- GitLab