diff --git a/ishare2 b/ishare2 index a8e96c7..c5711f8 100755 --- a/ishare2 +++ b/ishare2 @@ -2310,6 +2310,7 @@ function php_files_function() { } function vmdk_files_function() { + install_qemu_tools FOLDERNAME=$1 DIR="/opt/unetlab/addons/qemu/$FOLDERNAME" @@ -2326,6 +2327,16 @@ function vmdk_files_function() { fi } +function install_qemu_tools() { + apt update + apt install -y qemu-utils + # check if qemu-img is installed + if ! [[ -e /opt/qemu/bin/qemu-img ]]; then + echo -e "${RED} [-] qemu-img is not installed. Please install it manually. ${NO_COLOR}" + exit 1 + fi +} + function check_if_yml_template_is_missing() { FOLDERNAME=$1