diff options
Diffstat (limited to 'os-plugins/plugins')
-rw-r--r-- | os-plugins/plugins/vmchooser/files/run-virt.sh | 3 | ||||
-rw-r--r-- | os-plugins/plugins/vmware/files/run-virt.include | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/os-plugins/plugins/vmchooser/files/run-virt.sh b/os-plugins/plugins/vmchooser/files/run-virt.sh index a905c9d9..08d43fe4 100644 --- a/os-plugins/plugins/vmchooser/files/run-virt.sh +++ b/os-plugins/plugins/vmchooser/files/run-virt.sh @@ -103,6 +103,9 @@ parallel=$(grep -io '<parport param=.*"' ${xml} | awk -F '"' '{ print $2 }') # Declaration of default variables ############################################################################### +# cpu cores +cpu_cores="${cpu_cores}" + # Get total amount of memory installed in your machine totalmem=$(expr $(grep -i "memtotal" /proc/meminfo | awk '{print $2}') / 1024) permem=60 diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include index f2d45b83..6ad97b34 100644 --- a/os-plugins/plugins/vmware/files/run-virt.include +++ b/os-plugins/plugins/vmware/files/run-virt.include @@ -52,7 +52,7 @@ mks.enable3d = \"${enable3d}\"" >>${conffile} esac case "$vmversion" in 3.*|7.*) - nunumvcpus=$(expr ${cpu_cores} \* ${cpu_cores}) + numvcpus="${cpu_cores}" # svga_autodetect="FALSE" # if defined manual, see below echo " # version specific stuff - ver. 3.*|7.* @@ -76,7 +76,7 @@ displayName = \"${displayname}\" guestOS = \"${vmostype}\" # CPU/MEM -numvcpus = \"${nunumvcpus}\" +numvcpus = \"${numvcpus}\" memsize = \"${mem}\" MemAllowAutoScaleDown = \"FALSE\" MemTrimRate = \"-1\" |