aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xkvm-manager2
1 files changed, 1 insertions, 1 deletions
diff --git a/kvm-manager b/kvm-manager
index 3e575c6..a8616c3 100755
--- a/kvm-manager
+++ b/kvm-manager
@@ -19,7 +19,7 @@ if [ -z "$VMNAME" ] ; then
exit 1
fi
-TAP="${TAP:-${NAME}}"
+TAP="${TAP:-${VMNAME}}"
# MAC address is derived from a hash of the host's name and the guest's name:
MAC="${MAC:-$(printf "02:%s" "$(printf "%s\0%s" "$(hostname)" "${VMNAME}" | sha256sum | sed 's/\(..\)/\1:/g' | cut -f1-5 -d:)" )}"