Install requirements for plain centos7 to build centos7 VM
This commit is contained in:
parent
7e55e76b14
commit
01330943ba
1 changed files with 3 additions and 0 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue