david/scripts-archive
david
/
scripts-archive
Archived
1
0
Fork 0
This repository has been archived on 2022-04-16. You can view files and clone it, but cannot push or open issues or pull requests.
scripts-archive/kvm-tools/archive/genqcow2.sh

17 lines
213 B
Bash

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