summaryrefslogtreecommitdiff
path: root/virtualize
diff options
context:
space:
mode:
authorNullspoon <nullspoon@iohq.net>2014-09-21 16:43:20 -0600
committerNullspoon <nullspoon@iohq.net>2014-09-21 16:43:20 -0600
commit969741aaeda7e5216f61daa79aa01a8e4785dc61 (patch)
treeeff494e7c695c773d9c6b21cbc30e32017ebbb38 /virtualize
parente9f96038c7e233cf27479eee0ee276f7a753ab69 (diff)
downloadbin-969741aaeda7e5216f61daa79aa01a8e4785dc61.tar.gz
bin-969741aaeda7e5216f61daa79aa01a8e4785dc61.tar.xz
Added check for qemu in virtualize script
Diffstat (limited to 'virtualize')
-rwxr-xr-xvirtualize11
1 files changed, 11 insertions, 0 deletions
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 ${@}

Generated by cgit