summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/files/run-virt.include
diff options
context:
space:
mode:
authorMichael Janczyk2009-03-09 19:56:46 +0100
committerMichael Janczyk2009-03-09 19:56:46 +0100
commit213803f0dfa3fc2ad87b3468fa5b89bd60fed62d (patch)
treee38223c6e18cdc8d84c0d7e46d8d38b3bd484e89 /os-plugins/plugins/vmware/files/run-virt.include
parentrenamed and xml template and added xml comments (diff)
downloadcore-213803f0dfa3fc2ad87b3468fa5b89bd60fed62d.tar.gz
core-213803f0dfa3fc2ad87b3468fa5b89bd60fed62d.tar.xz
core-213803f0dfa3fc2ad87b3468fa5b89bd60fed62d.zip
hwver is image and not version specific. it will be written now automatically
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2704 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/files/run-virt.include')
-rw-r--r--os-plugins/plugins/vmware/files/run-virt.include18
1 files changed, 8 insertions, 10 deletions
diff --git a/os-plugins/plugins/vmware/files/run-virt.include b/os-plugins/plugins/vmware/files/run-virt.include
index 05beca36..83eebb86 100644
--- a/os-plugins/plugins/vmware/files/run-virt.include
+++ b/os-plugins/plugins/vmware/files/run-virt.include
@@ -30,15 +30,13 @@ case "$vmversion" in
shared_folder="FALSE"
echo "
# version specific stuff
-config.version = \"8\"
-virtualHW.version = \"4\"" >>${conffile}
+config.version = \"8\"" >>${conffile}
;;
2.0|6.0)
shared_folder="TRUE"
echo "
# version specific stuff
config.version = \"8\"
-virtualHW.version = \"6\"
sharedFolder.option = \"alwaysEnabled\"" >>${conffile}
;;
2.5|6.5)
@@ -46,7 +44,6 @@ sharedFolder.option = \"alwaysEnabled\"" >>${conffile}
echo "
# version specific stuff
config.version = \"8\"
-virtualHW.version = \"7\"
ehci.present= \"TRUE\"
sharedFolder.option = \"alwaysEnabled\"
mks.enable3d = \"FALSE\"" >>${conffile}
@@ -55,6 +52,7 @@ esac
echo "
# id
+virtualHW.version = \"${hwver}\"
displayName = \"${displayname}\"
guestOS = \"${vmostype}\"
@@ -289,10 +287,13 @@ vmversion=$version
#-X = fullscreen
vmopt="-X"
-#TODO: check for a faster way, perhaps we should put this into XML
-# the grepping under some circumstances lets wait the user for ages ...
+# check if ide/scsi and hwver of image
+# *-flat.vmdk images are started via the vmdk file, so there's no need to
+# exclude these flat files, we do it anyway
if [ $(echo ${imagename} | grep -cv "\-flat.vmdk") ]; then
- hddrv=$(grep -m 1 -ia "ddb.adapterType" ${diskfile} | awk -F "\"" '{print $2}')
+ hddrv=$(grep -m1 -ia "ddb.adapterType" ${diskfile} | awk -F '"' '{print $2}')
+ hwver=$(grep -m1 -ia "ddb.virtualHWVersion" ${diskfile} | \
+ awk -F '"' '{print $2}')
if [ "${hddrv}" = "ide" ]; then
ide="TRUE"
scsi="FALSE"
@@ -305,9 +306,6 @@ if [ $(echo ${imagename} | grep -cv "\-flat.vmdk") ]; then
fi
fi
-# Should we debug? Hell yes, we should always debug!
-debug=0
-
### log function ###############################################################
# function to write to stdout and logfile
writelog ()