1
1
scripts/kvm/genqcow2.sh

17 lines
213 B
Bash
Raw Normal View History

#!/bin/bash
2011-03-11 21:00:58 +01:00
if [ -z $1 ]; then
# reading the imagename
echo "what name should it have?"
read name
else
name=$1
fi
2011-03-11 21:00:58 +01:00
# generating the actual image
qemu-img create -f qcow2 $name.qcow2 16G
exit 0