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
|
sleep 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# Install requirements
|
||||||
|
yum install -y qemu cryptsetup
|
||||||
|
|
||||||
# Create base RAW image (no LOOPBACK support in RHEL/CentOS).
|
# Create base RAW image (no LOOPBACK support in RHEL/CentOS).
|
||||||
qemu-img create -f raw "$IMAGE_PATH" "$IMAGE_SIZE"
|
qemu-img create -f raw "$IMAGE_PATH" "$IMAGE_SIZE"
|
||||||
losetup "$LOOPBACK_DEVICE" "$IMAGE_PATH"
|
losetup "$LOOPBACK_DEVICE" "$IMAGE_PATH"
|
||||||
|
|
Loading…
Reference in a new issue