Commit 360bfc3f authored by Antoine Kaufmann's avatar Antoine Kaufmann
Browse files

experiments: use qemu-img from our compiled qemu

parent 81636e5f
......@@ -2,6 +2,7 @@
EHSIM_BASE="$(readlink -f $(dirname ${BASH_SOURCE[0]})/..)"
QEMU_CMD="$EHSIM_BASE/qemu/x86_64-softmmu/qemu-system-x86_64"
QEMU_IMG="$EHSIM_BASE/qemu/qemu-img"
GEM5_BASE="$EHSIM_BASE/gem5"
NS3_BASE="$EHSIM_BASE/ns-3"
......@@ -57,9 +58,9 @@ run_qemu() {
rm -f $img_a $img_b
echo Creating disk for qemu $1
if [ -z "$4" ]; then
qemu-img create -f qcow2 -o backing_file=$QEMU_IMAGE $img_a
$QEMU_IMG create -f qcow2 -o backing_file=$QEMU_IMAGE $img_a
else
qemu-img create -f qcow2 -o backing_file="$EHSIM_BASE/images/output-$4/$4" $img_a
$QEMU_IMG create -f qcow2 -o backing_file="$EHSIM_BASE/images/output-$4/$4" $img_a
fi
cp $3 $img_b
echo Starting qemu $1
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment