xci: scripts: start-new-vm.sh: Use 'unsafe' cache for the clean vm disk 81/43281/9
authorMarkos Chandras <mchandras@suse.de>
Wed, 27 Sep 2017 10:28:43 +0000 (11:28 +0100)
committerMarkos Chandras <mchandras@suse.de>
Wed, 27 Sep 2017 22:11:34 +0000 (23:11 +0100)
This is not a production virtual machine and we don't care
if we lose data in case it's killed unexpectedly so we can just
ignore the 'flush' commands from the guest. This will also improve
the overall I/O in the VMs.

Change-Id: Ib486a073f667e22f4a1e65a220ac553874f708cc
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh

index 991637a..807e1c0 100755 (executable)
@@ -88,7 +88,7 @@ sudo virsh undefine ${NAME} || true
 
 echo "Installing virtual machine '${NAME}'..."
 sudo virt-install -n ${NAME} --memory ${MEMORY} --vcpus ${NCPUS} --cpu ${CPU} \
-       --import --disk=${OS}.qcow2 --network network=${NETWORK} \
+       --import --disk=${OS}.qcow2,cache=unsafe --network network=${NETWORK} \
        --graphics none --hvm --noautoconsole
 
 _retries=30