From 969741aaeda7e5216f61daa79aa01a8e4785dc61 Mon Sep 17 00:00:00 2001 From: Nullspoon Date: Sun, 21 Sep 2014 16:43:20 -0600 Subject: Added check for qemu in virtualize script --- virtualize | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/virtualize b/virtualize index b0923bf..dbeda75 100755 --- a/virtualize +++ b/virtualize @@ -16,5 +16,16 @@ Note that other qemu settings can be passed as well to further customize.\n" exit 1 fi +# Make sure qemu is installed +if [[ ! $(which qemu-system-x86_64 2>/dev/null) ]]; then + echo -e " +Qemu does not appear to be installed. If it is, be sure the path to its +binary is in the environment PATH variable.\n" + echo "Current PATH variable value is:" + echo ${PATH} + echo + exit 1 +fi + # Execute qemu-system-x86_64 -enable-kvm -machine accel=kvm -vga std -m 2048 ${@} -- cgit v1.2.3