From 01330943ba02170fc24310ebf859278ec3f9e90d Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Tue, 21 Jul 2020 12:08:38 +0200 Subject: [PATCH] Install requirements for plain centos7 to build centos7 VM --- opennebula-images/centos7-build-luks-opennebula-image.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/opennebula-images/centos7-build-luks-opennebula-image.sh b/opennebula-images/centos7-build-luks-opennebula-image.sh index 3be4b61..f3d34c8 100755 --- a/opennebula-images/centos7-build-luks-opennebula-image.sh +++ b/opennebula-images/centos7-build-luks-opennebula-image.sh @@ -60,6 +60,9 @@ if [ ! -f '/etc/centos-release' ]; then sleep 5 fi +# Install requirements +yum install -y qemu cryptsetup + # Create base RAW image (no LOOPBACK support in RHEL/CentOS). qemu-img create -f raw "$IMAGE_PATH" "$IMAGE_SIZE" losetup "$LOOPBACK_DEVICE" "$IMAGE_PATH"