diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/os-plugins/plugins/vmchooser/files/run-virt.sh | 5 | ||||
-rw-r--r-- | src/os-plugins/plugins/vmware/files/run-virt.include | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/src/os-plugins/plugins/vmchooser/files/run-virt.sh b/src/os-plugins/plugins/vmchooser/files/run-virt.sh index 7a951e56..d62a13ae 100644 --- a/src/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/src/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -283,6 +283,8 @@ writelog "\tVM short name:\t\t$vm_shortname" # VM-ID static (00) VM_ID="00" +# take last two digits of current pid... +VM_ID=$(expr substr $$ $(expr ${#$} - 1) 2) # Make sure cpu_cores is not empty cpu_cores=${cpu_cores:-"1"} @@ -290,6 +292,9 @@ cpu_cores=${cpu_cores:-"1"} # Total amount of memory defined in stage 3 # TODO: Should be dependent on the setup (if diff is written to RAM ...) permem=60 +if [ "x${VMCHOOSER_FORCE_HALF_MEM}" == "x1" ]; then + permem=30 +fi # Get a result which can be divided through 4 mem=$(expr ${totalmem} / 100 \* ${permem} / 4 \* 4) if [ -n "${mainvirtmem}" ]; then diff --git a/src/os-plugins/plugins/vmware/files/run-virt.include b/src/os-plugins/plugins/vmware/files/run-virt.include index a2ac6f47..64b72f17 100644 --- a/src/os-plugins/plugins/vmware/files/run-virt.include +++ b/src/os-plugins/plugins/vmware/files/run-virt.include @@ -230,9 +230,9 @@ pref.eula.1.buildNumber = \"${vmbuild}\"" >${vmhome}/preferences # VM-ID static (0D), remove if changed to 00 VM_ID="0D" # temporary disk space for logs, etc... -redodir=/tmp/vmware/${USER} +redodir=/tmp/vmware/${USER}.$$ # dir for configs and vmem file -confdir=/tmp/vmware/${USER} +confdir=/tmp/vmware/${USER}.$$ # configfile conffile="${confdir}/run-vmware.conf" # diskfile |