From 02c1f9b473d6c8718d0493ac03526b737b468ab2 Mon Sep 17 00:00:00 2001 From: Volker Uhrig Date: Sat, 7 Jun 2008 23:34:36 +0000 Subject: * 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 --- .../plugins/vmware/OpenSLX/OSPlugin/vmware.pm | 59 ++++++++++++++++++++++ 1 file changed, 59 insertions(+) (limited to 'os-plugins/plugins/vmware/OpenSLX/OSPlugin/vmware.pm') 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; -- cgit v1.2.3-55-g7522