summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
diff options
context:
space:
mode:
authorVolker Uhrig2008-06-08 01:34:36 +0200
committerVolker Uhrig2008-06-08 01:34:36 +0200
commit02c1f9b473d6c8718d0493ac03526b737b468ab2 (patch)
tree71a51e7cfb963b1fe679a02e0c214d22e822482d /os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
parent* finished implementation of vmpl2.0 installation (diff)
downloadcore-02c1f9b473d6c8718d0493ac03526b737b468ab2.tar.gz
core-02c1f9b473d6c8718d0493ac03526b737b468ab2.tar.xz
core-02c1f9b473d6c8718d0493ac03526b737b468ab2.zip
* removing deprecated client-config.xml. we hand over the xml itself.
needed information are now added by vmchooser (will be then also available for other, in the future developed, virtual machines) * added _untested_ code for installation of vmplayer1. If it works out we can merge it with our vmpl2.0 code * vmware has also 64bit packages... so we need to find a 64bit compiler solution for translation of kernel modules on chrooted vendorOSes running on 32bit OpenSLX servers;-) git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@1860 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm')
-rw-r--r--os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm59
1 files changed, 59 insertions, 0 deletions
diff --git a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
index 2786594b..59364747 100644
--- a/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
+++ b/os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm
@@ -167,6 +167,17 @@ sub getAttrInfo
content_descr => '1 means active - 0 means inactive',
default => '0',
},
+ 'vmware::vmpl1.0' => {
+ applies_to_vendor_os => 1,
+ applies_to_system => 0,
+ applies_to_clients => 0,
+ description => unshiftHereDoc(<<' End-of-Here'),
+ Install and configure vmplayer v1
+ End-of-Here
+ content_regex => qr{^(1|0)$},
+ content_descr => '1 means active - 0 means inactive',
+ default => '0',
+ },
# ** set of attributes for the installation of VM Workstation/Player
# versions. More than one package could be installed in parallel.
# To be matched to/triggerd by 'vmware::kind'
@@ -196,6 +207,9 @@ sub installationPhase
if ($self->{attrs}->{'vmware::vmpl2.0'} == 1) {
$self->_vmpl2Installation();
}
+ if ($self->{attrs}->{'vmware::vmpl1.0'} == 1) {
+ $self->_vmpl1Installation();
+ }
## prepration for our faster wrapper script
# rename the default vmplayer script and create a link.
@@ -468,4 +482,49 @@ sub _vmpl2Installation {
}
+sub _vmpl1Installation {
+ my $self = shift;
+
+ my $kind = "vmpl1.0";
+ my $vmpath = "/opt/openslx/plugin-repo/vmware/$kind/root/lib/vmware";
+ my $vmbin = "/opt/openslx/plugin-repo/vmware/$kind/root/bin";
+ my $vmversion = "TODO_we_need_it_for_enhanced_runvmware_config_in_stage?";
+ my $vmbuildversion = "TODO_we_need_it_for_enhanced_runvmware_config_in_stage1";
+
+ my $pluginFilesPath
+ = "$self->{'openslxBasePath'}/lib/plugins/$self->{'name'}/files";
+ my $installationPath = "$self->{'pluginRepositoryPath'}/$kind";
+
+ mkpath($installationPath);
+
+ ##
+ ## Copy needed files
+
+ # copy 'normal' needed files
+ my @files = qw( nvram.5.0 install-vmpl1.0.sh );
+ foreach my $file (@files) {
+ copyFile("$pluginFilesPath/$file", "$installationPath");
+ }
+ # copy on depending runvmware file
+ copyFile("$pluginFilesPath/runvmware-player-v1", "$installationPath", "runvmware");
+
+ ##
+ ## Download and install the binarys
+ system("/bin/sh /opt/openslx/plugin-repo/$self->{'name'}/$kind/install-$kind.sh");
+
+ ##
+ ## Create runlevel script
+ my $runlevelScript = "$self->{'pluginRepositoryPath'}/$kind/vmware.init";
+ $self->_writeRunlevelScript($vmbin, $runlevelScript);
+
+ ##
+ ## Create wrapperscripts
+ $self->_writeWrapperScript("$vmpath", "$kind", "player");
+
+ ##
+ ## Creating needed config /etc/vmware/config
+ $self->_writeVmwareConfig("$kind", "$vmpath");
+
+}
+
1;