diff options
author | Sebastian Schmelzer | 2011-07-21 16:03:35 +0200 |
---|---|---|
committer | Sebastian Schmelzer | 2011-07-21 16:03:35 +0200 |
commit | 67d156eae5534840fb0e0f918570878a5ce18724 (patch) | |
tree | 77607ec979bb31d65aed607ebefe4952f97ab6f8 /src/os-plugins/plugins/vmware/files/run-virt.include | |
parent | Merge branch 'master' of openslx.org:openslx/core (diff) | |
download | core-67d156eae5534840fb0e0f918570878a5ce18724.tar.gz core-67d156eae5534840fb0e0f918570878a5ce18724.tar.xz core-67d156eae5534840fb0e0f918570878a5ce18724.zip |
dynamic mac for vmchooser // fix awk, tr error in runvirt
Diffstat (limited to 'src/os-plugins/plugins/vmware/files/run-virt.include')
-rw-r--r-- | src/os-plugins/plugins/vmware/files/run-virt.include | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/os-plugins/plugins/vmware/files/run-virt.include b/src/os-plugins/plugins/vmware/files/run-virt.include index 64b72f17..8595beb1 100644 --- a/src/os-plugins/plugins/vmware/files/run-virt.include +++ b/src/os-plugins/plugins/vmware/files/run-virt.include @@ -229,6 +229,11 @@ pref.eula.1.buildNumber = \"${vmbuild}\"" >${vmhome}/preferences # VM-ID static (0D), remove if changed to 00 VM_ID="0D" +# should be dynamic +if [ "x$(which bc)" != "x" ]; then + VM_ID=$(echo "obase=16; $$" | bc) + VM_ID=$(expr substr $VM_ID $(expr ${#VM_ID} -1) 2) +fi # temporary disk space for logs, etc... redodir=/tmp/vmware/${USER}.$$ # dir for configs and vmem file |