diff options
author | Nullspoon <nullspoon@iohq.net> | 2014-09-21 16:43:20 -0600 |
---|---|---|
committer | Nullspoon <nullspoon@iohq.net> | 2014-09-21 16:43:20 -0600 |
commit | 969741aaeda7e5216f61daa79aa01a8e4785dc61 (patch) | |
tree | eff494e7c695c773d9c6b21cbc30e32017ebbb38 | |
parent | e9f96038c7e233cf27479eee0ee276f7a753ab69 (diff) | |
download | bin-969741aaeda7e5216f61daa79aa01a8e4785dc61.tar.gz bin-969741aaeda7e5216f61daa79aa01a8e4785dc61.tar.xz |
Added check for qemu in virtualize script
-rwxr-xr-x | virtualize | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -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 ${@} |