aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvm-creator2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-creator b/kvm-creator
index b27af0a..744cb96 100755
--- a/kvm-creator
+++ b/kvm-creator
@@ -9,7 +9,7 @@ CMD="$1"
shift
NAME="$1"
-VG="$2"
+VG="${2:-vg_$(hostname)0}"
SIZE="${3:-3G}"
RAM="${4:-512}"
DISK="/dev/mapper/${VG}-${NAME}"