From eaaa0b109d58d31634a52a2fa9f09d185a2b1922 Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Fri, 23 Nov 2018 17:41:29 +0100 Subject: [PATCH] run_qemu.sh: pass absolute path to qemu-img because otherwise the backing image will be searched relative to the overlay --- run_qemu.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/run_qemu.sh b/run_qemu.sh index be48fdc..ad540e6 100755 --- a/run_qemu.sh +++ b/run_qemu.sh @@ -4,7 +4,9 @@ set -eu cachedir="./shared/cache" -qemu-img create -f qcow2 -b "$cachedir/debian-unstable.qcow" debian-unstable-overlay.qcow +# the path to debian-unstable.qcow must be absolute or otherwise qemu will +# look for the path relative to debian-unstable-overlay.qcow +qemu-img create -f qcow2 -b "$(realpath $cachedir)/debian-unstable.qcow" debian-unstable-overlay.qcow qemu-system-x86_64 -enable-kvm -m 512M -nographic \ -monitor unix:/tmp/monitor,server,nowait \ -serial unix:/tmp/ttyS0,server,nowait \