diff options
author | Markos Chandras <mchandras@suse.de> | 2017-09-27 11:28:43 +0100 |
---|---|---|
committer | Markos Chandras <mchandras@suse.de> | 2017-09-27 23:11:34 +0100 |
commit | 1e58883c62e464b1d7583489f67b10dcd13f5928 (patch) | |
tree | 205a2c1c16f29445e08c37e2bbc99c6316f381f9 /xci/scripts/vm | |
parent | 7a9f5301c9bf4d66efeb9d2891db47cccadfe1b5 (diff) |
xci: scripts: start-new-vm.sh: Use 'unsafe' cache for the clean vm disk
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>
Diffstat (limited to 'xci/scripts/vm')
-rwxr-xr-x | xci/scripts/vm/start-new-vm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh index 991637a6..807e1c0c 100755 --- a/xci/scripts/vm/start-new-vm.sh +++ b/xci/scripts/vm/start-new-vm.sh @@ -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 |