summaryrefslogtreecommitdiffstats
path: root/remote/modules/vmware
diff options
context:
space:
mode:
Diffstat (limited to 'remote/modules/vmware')
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/determine_hardware_limitations.inc56
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/log_config_summary.inc9
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc5
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/write_final_vmx.inc2
-rw-r--r--remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include2
5 files changed, 34 insertions, 40 deletions
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/determine_hardware_limitations.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/determine_hardware_limitations.inc
index 84d959ea..11ea2e3a 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/determine_hardware_limitations.inc
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/determine_hardware_limitations.inc
@@ -9,116 +9,116 @@ sound="es1371"
# define hardware configuration depending on the guest OS used
# this needs to be fixed and is the base for the creation of new VMs
-case "$vmostype" in
+case "$VM_OS_TYPE" in
win31*|windows31*)
- vmostype="win31"
+ VM_OS_TYPE="win31"
shfolders="FALSE"
sound="sb16"
MAXMEM="32"
MAXCORES="1"
;;
winnt*|windowsnt*)
- vmostype="winnt"
+ VM_OS_TYPE="winnt"
shfolders="FALSE"
sound="sb16"
MAXMEM="1000"
MAXCORES="2"
;;
win95*|windows95*)
- vmostype="win95"
+ VM_OS_TYPE="win95"
shfolders="FALSE"
MAXMEM="96"
MAXCORES="1"
;;
win98*|windows98*)
- vmostype="win98"
+ VM_OS_TYPE="win98"
MAXMEM="256"
MAXCORES="1"
;;
winme*|windowsme*)
- vmostype="winme"
+ VM_OS_TYPE="winme"
MAXMEM="384"
MAXCORES="1"
;;
win2000|windows2000|win2000pro*)
- vmostype="win2000pro"
+ VM_OS_TYPE="win2000pro"
MAXMEM="4000"
MAXCORES="2"
;;
win2000srv*|windows2000srv*|win2000serv*|windows2000serv*)
- vmostype="win2000serv"
+ VM_OS_TYPE="win2000serv"
shfolders="FALSE"
MAXMEM="4000"
MAXCORES="4"
;;
win2000adv*|windows2000adv*|win2000dat*|windows2000dat*)
- vmostype="win2000advserv"
+ VM_OS_TYPE="win2000advserv"
shfolders="FALSE"
MAXMEM="8000"
MAXCORES="8"
;;
winnet*64|win*2003*64|windowsnet*64)
- vmostype="winnetstandard-64"
+ VM_OS_TYPE="winnetstandard-64"
MAXMEM="8000"
MAXCORES="8"
;;
winnet*|win*2003*|windowsnet*)
- vmostype="winnetstandard"
+ VM_OS_TYPE="winnetstandard"
MAXMEM="4000"
MAXCORES="8"
;;
winxphome*|windowsxphome*)
- vmostype="winxphome"
+ VM_OS_TYPE="winxphome"
MAXMEM="4000"
MAXCORES="2"
;;
winxp*64|windowsxp*64)
- vmostype="winxppro-64"
+ VM_OS_TYPE="winxppro-64"
MAXMEM="8000"
MAXCORES="8"
;;
winxp*|windowsxp*)
- vmostype="winxppro"
+ VM_OS_TYPE="winxppro"
MAXMEM="4000"
MAXCORES="4"
;;
winvista-64)
- vmostype="winvista-64"
+ VM_OS_TYPE="winvista-64"
MAXMEM="16000"
MAXCORES="4"
;;
windows7-64)
- vmostype="windows7-64"
+ VM_OS_TYPE="windows7-64"
MAXMEM="32000"
MAXCORES="8"
;;
windows8-64)
- vmostype="windows8-64"
+ VM_OS_TYPE="windows8-64"
MAXMEM="32000"
MAXCORES="8"
;;
windows9-64)
- vmostype="windows9-64"
+ VM_OS_TYPE="windows9-64"
MAXMEM="64000"
MAXCORES="8"
;;
winvista)
- vmostype="winvista"
+ VM_OS_TYPE="winvista"
MAXMEM="8000"
MAXCORES="2"
;;
windows7)
- vmostype="windows7"
+ VM_OS_TYPE="windows7"
MAXMEM="8000"
MAXCORES="4"
;;
windows8)
- vmostype="windows8"
+ VM_OS_TYPE="windows8"
MAXMEM="8000"
MAXCORES="4"
;;
windows9)
- vmostype="windows9"
+ VM_OS_TYPE="windows9"
MAXMEM="8000"
MAXCORES="4"
;;
@@ -131,36 +131,36 @@ case "$vmostype" in
MAXCORES="1"
;;
dos|msdos*|ms-dos*)
- vmostype="dos"
+ VM_OS_TYPE="dos"
shfolders="FALSE"
MAXMEM="128"
MAXCORES="1"
;;
macos*64)
- vmostype="freebsd-64"
+ VM_OS_TYPE="freebsd-64"
MAXMEM="4000"
MAXCORES="2"
;;
macos*)
- vmostype="freebsd"
+ VM_OS_TYPE="freebsd"
MAXMEM="4000"
MAXCORES="1"
;;
beos*)
- vmostype="other"
+ VM_OS_TYPE="other"
shfolders="FALSE"
;;
# Unknown guestOS setting in .xml - this encompasses linux too,
# as there is a multitude of different distributions. Perhaps further
# action will be needed if this leads to problems with exotic OSs.
*64)
- vmostype="other-64"
+ VM_OS_TYPE="other-64"
# shfolders="FALSE"
MAXMEM="123456"
MAXCORES="4"
;;
*)
- vmostype="other"
+ VM_OS_TYPE="other"
# shfolders="FALSE"
MAXMEM="8000"
MAXCORES="1"
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/log_config_summary.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/log_config_summary.inc
index f7f09c65..e6776882 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/log_config_summary.inc
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/log_config_summary.inc
@@ -46,14 +46,13 @@ fi
# image
writelog "Diskimage:"
-writelog "\tDiskfile:\t${diskfile}"
-writelog "\tDisktype:\t${hddrv}"
-writelog "\tHWVersion:\t${hwver}"
-writelog "\tVMostype:\t${vmostype}"
+writelog "\tDiskfile:\t${VM_DISKFILE_RO}"
+writelog "\tHWVersion:\t${HWVER}"
+writelog "\tVMostype:\t${VM_OS_TYPE}"
# misc
writelog "Misc:"
-writelog "\tDisplayname:\t${displayname}"
+writelog "\tDisplayname:\t${VM_DISPLAYNAME}"
if [ "${cap3d}" = "TRUE" -a "${enable3d}" = "TRUE" ]; then
writelog "\t3D Graphics:\tenabled"
fi
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
index 0c45ee59..da820bc6 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/set_vmware_include_variables.inc
@@ -3,8 +3,6 @@
#####################################################################
set_vmware_include_variables() {
- [ "$mem" -gt 3800 -a "$(uname -m)" != "x86_64" ] && mem=3800
-
# temporary disk space for logs, etc...
redodir="/tmp/virt/vmware/${USER}.$$"
@@ -14,9 +12,6 @@ set_vmware_include_variables() {
# configfile
conffile="${confdir}/run-vmware.conf"
- # diskfile
- diskfile="${vmpath}"
-
# users vmware config folder
[ -z "${HOME}" ] && HOME=$(getent passwd "$(whoami)" | awk -F ':' '{print $6}')
vmhome="${HOME}/.vmware"
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/write_final_vmx.inc b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/write_final_vmx.inc
index 41548154..e664f02f 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/write_final_vmx.inc
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/includes/write_final_vmx.inc
@@ -1,7 +1,7 @@
# check for vmdk file marker %VM_DISK_PATH% and put vmdk path in it's place: also VM_DISK_MODE
# and VM_DISK_REDOLOGDIR.
-sed -i 's#%VM_DISK_PATH%#'"$vm_diskfile"'#g' "${TMPCONFIG}"
+sed -i 's#%VM_DISK_PATH%#'"$VM_DISKFILE_RO"'#g' "${TMPCONFIG}"
sed -i 's#%VM_DISK_MODE%#'"independent-nonpersistent"'#g' "${TMPCONFIG}"
sed -i 's#%VM_DISK_REDOLOGDIR%#'"$redodir"'#g' "${TMPCONFIG}"
diff --git a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
index 84679ebf..f66bc9b8 100644
--- a/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
+++ b/remote/modules/vmware/data/opt/openslx/vmchooser/vmware/run-virt.include
@@ -20,7 +20,7 @@
################################################################################
VMWAREINCLUDEDIR=/opt/openslx/vmchooser/vmware/includes
-vmostype=$(rv_clean_string "$vmostype")
+VM_OS_TYPE=$(rv_clean_string "$VM_OS_TYPE")
# declaration of default variables for vmware
source "${VMWAREINCLUDEDIR}/set_vmware_include_variables.inc" && set_vmware_include_variables