install qemu-utils
This commit is contained in:
11
ishare2
11
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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user