From 37d600b1e4a3bdb6ecb162352cd991d0eb7f1155 Mon Sep 17 00:00:00 2001 From: Alex Date: Sun, 23 Jul 2023 19:42:19 -0600 Subject: [PATCH] install qemu-utils --- ishare2 | 11 +++++++++++ 1 file changed, 11 insertions(+) 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