From 9d8b1a5d8308b8d5b6315b4ea2b95978f8e30336 Mon Sep 17 00:00:00 2001 From: Jakub Jirutka Date: Mon, 16 Oct 2017 17:01:40 +0200 Subject: [PATCH] Improve qemu-nbd performance, use cache=writeback --- alpine-make-vm-image | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/alpine-make-vm-image b/alpine-make-vm-image index 52f6c72..220d67e 100755 --- a/alpine-make-vm-image +++ b/alpine-make-vm-image @@ -143,7 +143,8 @@ attach_image() { nbd_dev=$(get_available_nbd) } || die 'No available nbd device found!' - qemu-nbd --connect="$nbd_dev" ${format:+--format=$format} "$image" \ + qemu-nbd --connect="$nbd_dev" --cache=writeback \ + ${format:+--format=$format} "$image" \ && echo "$nbd_dev" }