Install requirements for plain centos7 to build centos7 VM

This commit is contained in:
Nico Schottelius 2020-07-21 12:08:38 +02:00
parent 7e55e76b14
commit 01330943ba
1 changed files with 3 additions and 0 deletions

View File

@ -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"