From 7d52c55dc1610bccf8b764f2904bdd20b2b9d44f Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Sat, 13 Oct 2007 21:26:10 +0000 Subject: ... on the way to ... git-svn-id: http://svn.openslx.org/svn/openslx/trunk@1379 95ad53e4-c205-0410-b2fa-d234c58c8868 --- initramfs/initrd-stuff/bin/servconfig | 1 + .../templates/Vorlage_VMwareImageAdministrator.xml | 6 ++--- virtualization/templates/runvmware-v2 | 30 ++++++++++++---------- 3 files changed, 21 insertions(+), 16 deletions(-) diff --git a/initramfs/initrd-stuff/bin/servconfig b/initramfs/initrd-stuff/bin/servconfig index 6e8c0dda..3bcf5e16 100755 --- a/initramfs/initrd-stuff/bin/servconfig +++ b/initramfs/initrd-stuff/bin/servconfig @@ -368,6 +368,7 @@ if [ "x$vmware" != "x" ] && [ "x$vmware" != "xno" ] ; then # mount a clean tempfs (bug in UnionFS prevents loopmount to work) strinfile "unionfs" /proc/mounts && \ mount -n -o size=1500k -t tmpfs vm-loopimg /mnt/etc/vmware/loopimg + # create an empty floppy image of 1.4MByte size dd if=/dev/zero of=/mnt/etc/vmware/loopimg/fd.img \ count=2880 bs=512 2>/dev/null chmod 0777 /mnt/etc/vmware/loopimg/fd.img diff --git a/virtualization/templates/Vorlage_VMwareImageAdministrator.xml b/virtualization/templates/Vorlage_VMwareImageAdministrator.xml index 396c1a75..4c21f3a9 100755 --- a/virtualization/templates/Vorlage_VMwareImageAdministrator.xml +++ b/virtualization/templates/Vorlage_VMwareImageAdministrator.xml @@ -1,7 +1,7 @@  - # Imagename ohne .vmdk + # Imagename with proper suffix # Information of the image creator @@ -15,7 +15,7 @@ # Define long description shown when the Image is chosen - + #os running in vmware, needed for vmware config file @@ -35,7 +35,7 @@ #Description: as xdm menu? If yes "true", else "false" - #Description: priority, use a number to get it to a special possition + #Description: priority, use a number to get it to a special position # should only be used by our department and noone else diff --git a/virtualization/templates/runvmware-v2 b/virtualization/templates/runvmware-v2 index f9ecdd7f..07cf395b 100644 --- a/virtualization/templates/runvmware-v2 +++ b/virtualization/templates/runvmware-v2 @@ -3,8 +3,8 @@ # Description: Script for preparing VMware environment Diskless # X Stations and interactive session chooser (v4) # -# Author(s): Dirk von Suchodoletz , 18-03-2006 -# Michael Janczyk , 10-01-2007 +# Author(s): see project authors file +# # Copyright: (c) 2003, 2006 - RZ Universitaet Freiburg # # Version: 0.16.611 @@ -40,6 +40,8 @@ floppyb="TRUE" floppybname="/etc/vmware/loopimg/fd.img" cdr_1="FALSE" cdr_2="FALSE" +# ide is expected default, test for the virtual disk image type should +# be done while creating the runscripts ... ide="TRUE" scsi="FALSE" hddrv="lsilogic" @@ -101,21 +103,23 @@ imagename="CHANGEIT" diskfile="${vmdir}/${imagename}" #TODO: check for a faster way, perhaps we should put this into XML +# oh - yeah!! Why not do it on the SERVER??? It has enough power and has +# to do it once and not during every start on a client :) #grepping every file could take much (network) resources. And if its #an IDE Image, but has somewhere the string ddb.adapterType stuff can #become screwed # check if IDE or SCSI -hddrv=$(grep -m 1 -ia "ddb.adapterType" ${diskfile} | awk -F "\"" '{print $2}') -if [ "${hddrv}" = "ide" ]; then - ide="TRUE" - scsi="FALSE" -elif [ "${hddrv}" = "lsilogic" ]; then - ide="FALSE" - scsi="TRUE" -elif [ "${hddrv}" = "buslogic" ]; then - ide="FALSE" - scsi="TRUE" -fi +#hddrv=$(grep -m 1 -ia "ddb.adapterType" ${diskfile} | awk -F "\"" '{print $2}') +#if [ "${hddrv}" = "ide" ]; then +# ide="TRUE" +# scsi="FALSE" +#elif [ "${hddrv}" = "lsilogic" ]; then +# ide="FALSE" +# scsi="TRUE" +#elif [ "${hddrv}" = "buslogic" ]; then +# ide="FALSE" +# scsi="TRUE" +#fi # define name for VMware window displayname="CHANGEIT" -- cgit v1.2.3-55-g7522