summaryrefslogtreecommitdiffstats
path: root/os-plugins
diff options
context:
space:
mode:
authorVolker Uhrig2008-04-23 18:21:10 +0200
committerVolker Uhrig2008-04-23 18:21:10 +0200
commit99248ce13ff66d303a09a1ec60f9ca571445c943 (patch)
tree8db771cab8e4cc05d589860d1df45cf7db8f2883 /os-plugins
parent* changed version identification of local installed vmplayer (diff)
downloadcore-99248ce13ff66d303a09a1ec60f9ca571445c943.tar.gz
core-99248ce13ff66d303a09a1ec60f9ca571445c943.tar.xz
core-99248ce13ff66d303a09a1ec60f9ca571445c943.zip
* documentation of the next steps with pseudo code
* raising questions (see changes vmware.pm) perhaps someone likes to add some ideas about it git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1757 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins')
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm25
-rw-r--r--os-plugins/plugins/vmware/XX_vmware.sh35
2 files changed, 52 insertions, 8 deletions
diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index b9225f23..2466c966 100644
--- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -273,7 +273,30 @@ sub installationPhase
chmod 0755, "$self->{'pluginRepositoryPath'}/$vmfile";
# TODO: check how we can put the vmversion information to stage3.
- # more or less only needed for local installation
+ # more or less only needed for local installation but can
+ # also be used for quickswitch of vmware version in stage5
+ # Perhaps we write all installed player versions in this file
+ # which get sourced by XX_vmware.sh
+
+ # Conflict without rewrite of this code: local installed
+ # vmware and vmplayer
+ # Solution: substitude "foreach my $type (@types) {"
+ # with _checkInstalled(local_vmplayer);
+ # _checkInstalled(local_vmwarews);
+ # _checkInstalled(vmplayer1);
+ # _checkInstalled(vmplayer2);
+ # and so on
+ # while _checkInstalled pseudocode
+ # sub _checkInstalled($type, $path) {
+ # check_for_version(see above)
+ # write information of this version to file
+ # }
+ # => results in conflict of local, we just have
+ # local defined but would need then a
+ # local_ws and local_player which is less userfriendly
+ # Dirk: see .4.2 suse-10.2-(test|main) system which includes
+ # vmplayer and vmware ws
+
}
}
diff --git a/os-plugins/plugins/vmware/XX_vmware.sh b/os-plugins/plugins/vmware/XX_vmware.sh
index 9d90043e..64ffe671 100644
--- a/os-plugins/plugins/vmware/XX_vmware.sh
+++ b/os-plugins/plugins/vmware/XX_vmware.sh
@@ -87,7 +87,7 @@ stage3 setup" > /mnt/etc/vmware/slxvmconfig
if [ -n "$vmware_vmnet1" ] ; then
local vmnet1=${vmware_vmnet1%,*} # x.x.x.x/yy,NAT => 'x.x.x.x/yy'
local vmnat=${vmware_vmnet1#$vmnet1*} # x.x.x.x/yy,NAT => ',NAT'
- local vmip=${vmnet1%/*} # x.x.x.x/yy => 'x.x.x.x'
+ local vmip=${vmnet1%/*} # x.x.x.x/yy => 'x.x.x.x'">
local vmpx=${vmnet1#*/} # x.x.x.x/yy => 'yy'
local vmsub=$(echo $vmip |sed 's,\(.*\)\..*,\1,') # x.x.x.x => x.x.x
echo -e "vmnet1=$vmnet1" >> /mnt/etc/vmware/slxvmconfig
@@ -185,9 +185,9 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
vmbdev=/dev/${vmimgserv}
waitfor ${vmbdev} 20000
echo "ext2" > /etc/filesystems
- echo "reiserfs" >> /etc/filesystems
- echo "vfat" >> /etc/filesystems
- echo "xfs" >> /etc/filesystems
+ echo "reiserfs" >> /etc/filesystems
+ echo "vfat" >> /etc/filesystems
+ echo "xfs" >> /etc/filesystems
mount -o ro ${vmbdev} /mnt/var/lib/vmware || error "$scfg_evmlm" nonfatal
;;
*)
@@ -258,9 +258,30 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
# a) we get get information and start the programm with
# /var/X11R6/bin/run-vmware.sh "$imagename" "$name_for_vmwindow" "$ostype_of_vm" "$kind_of_network"
# b) we write a wrapper and get the xml-file as attribute
- # TODO: stage2 or stage3?
- cp /mnt/opt/openslx/plugin-repo/vmware/runvmware-v2 \
- /mnt/var/X11R6/bin/run-vmware.sh
+ # A) wait for answer of Bastian
+ if [ "${vmware_kind}" = "local" ]; then
+ # TODO: Pseudocode1 as notes
+ # if [vmwarekind=local]; then
+ # source /foo/bar/baz/stage1-file-with-local-version-info
+ # cp "based-on-this-information-runvmware"
+
+ # copy depending run-vmware.sh
+ # where should we do the check if its vmplayer or vmware?
+ # where should we do the check if its v1 or v2
+ # we only have this problem
+ cp /mnt/opt/openslx/plugin-repo/vmware/runvmware-v2 \
+ /mnt/var/X11R6/bin/run-vmware.sh
+ # TODO: Pseudocode2 as notes
+ # if [ not vmware_kind = local but vmplayer-2.0 ]; then
+ # possibilitys:
+ # 1. copy needed files depending on the /initramfs/.../vmware.conf
+ # information. this way we also now the version
+ # 2. copy needed files depending on the information like in
+ # pseudocode1, there we will have then a list of all available
+ # kinds and version. in the far future we could use this
+ # informations to do a quickswitch in stage5
+ # fi
+ fi
[ $DEBUGLEVEL -gt 0 ] && echo " * done with 'vmware' os-plugin ..."