From a861349dd000e175accbeda3228c6135a716fd95 Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 25 Mar 2014 16:15:49 +0100 Subject: [vmware] module.conf: entries generalized, no sp. ubuntu conf --- remote/modules/vmware/module.conf | 44 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/remote/modules/vmware/module.conf b/remote/modules/vmware/module.conf index 017d1d5b..749a0838 100644 --- a/remote/modules/vmware/module.conf +++ b/remote/modules/vmware/module.conf @@ -22,3 +22,47 @@ REQUIRED_FILES=" REQUIRED_BINARIES=" vmnet-netifup " + +REQUIRED_VMWARE_DELETIONS=" + /var/lib/vmware + /etc/vmw* + /etc/rc?.d/???vmware* + /etc/rc0.d/K06vmware-workstation-server + /etc/pam.d/vmware-authd + /etc/rc3.d/S25vmamqpd + /etc/xdg/menus/applications-merged + /etc/init.d/vmamqpd + /etc/init.d/vmware* + /etc/thnuclnt + /etc/cups/thnuclnt.convs + /etc/cups/thnuclnt.types + /etc/modprobe.d/vmware-fuse.conf + /lib/modules/3.11.0-13-generic/misc/vmnet.ko + /lib/modules/3.11.0-13-generic/misc/vmmon.ko + /usr/share/mime/packages/vmware-player.xml + /usr/share/applications/vmware* + /usr/share/desktop-directories/vmware-ace-vms.directory + /usr/share/man/man1/vmware.1.gz + /usr/share/doc/vmware* + /usr/share/icons/hicolor/*/mimetypes/application-certificate.png + /usr/share/icons/hicolor/*/apps/vmware* + /usr/share/icons/hicolor/*/mimetypes/*vmware* + /usr/bin/vmnet-dhcpd + /usr/bin/ovftool + /usr/bin/vmrun + /usr/bin/vmware-wssc-adminTool + /usr/bin/vmnet-bridge + /usr/bin/vmplayer + /usr/bin/vmnet-sniffer + /usr/bin/vmss2core + /usr/bin/vm-support + /usr/bin/vmnet-natd + /usr/bin/vmnet-netifup + /usr/bin/vmware* + /usr/include/vmware-vix + /usr/lib/libvixAllProducts.so + /usr/lib/cups/filter/thnucups + /usr/lib/diskLibWrapper.so + /usr/lib/vmware* + /usr/sbin/vmware* +" -- cgit v1.2.3-55-g7522 From 98b85314872a1b5a5d09155863914724055e236a Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 25 Mar 2014 16:46:36 +0100 Subject: [vbox] + creating required standard directory --- remote/modules/vbox/data/opt/openslx/scripts/systemd-vbox_env | 3 +++ 1 file changed, 3 insertions(+) mode change 100755 => 100644 remote/modules/vbox/data/opt/openslx/scripts/systemd-vbox_env diff --git a/remote/modules/vbox/data/opt/openslx/scripts/systemd-vbox_env b/remote/modules/vbox/data/opt/openslx/scripts/systemd-vbox_env old mode 100755 new mode 100644 index a69719ac..ece8c9f1 --- a/remote/modules/vbox/data/opt/openslx/scripts/systemd-vbox_env +++ b/remote/modules/vbox/data/opt/openslx/scripts/systemd-vbox_env @@ -19,6 +19,9 @@ export PATH="$PATH":/opt/openslx/bin:/opt/openslx/sbin:/opt/openslx/usr/bin:/opt VBOX_CONF_DIR=/opt/openslx/etc/vbox VBOXMANAGE=$(which vboxmanage) +# create required standard directories +mkdir -p "/tmp/virt/virtualbox" -m 1777 + # load required Vbox modules for module in vboxdrv.ko vboxnetadp.ko vboxnetflt.ko vboxpci.ko ; do insmod /lib/modules/vbox/${module} || slxlog "vbox-systemd" "Loading of ${module} failed." -- cgit v1.2.3-55-g7522 From 356c912b2bd07ac8b2d5ba93b6c9ea365bc53f1d Mon Sep 17 00:00:00 2001 From: Christian Rößler Date: Tue, 25 Mar 2014 16:51:54 +0100 Subject: [vbox] Added vmchooser-xml_filter --- .../data/opt/openslx/scripts/vmchooser-xml_filter | 74 ++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 remote/modules/vbox/data/opt/openslx/scripts/vmchooser-xml_filter diff --git a/remote/modules/vbox/data/opt/openslx/scripts/vmchooser-xml_filter b/remote/modules/vbox/data/opt/openslx/scripts/vmchooser-xml_filter new file mode 100644 index 00000000..c50b01a5 --- /dev/null +++ b/remote/modules/vbox/data/opt/openslx/scripts/vmchooser-xml_filter @@ -0,0 +1,74 @@ +#!/bin/bash +# Probably needs bash somewhere +# ----------------------------------------------------------------------------- +# Copyright (c) 2007..2009 - RZ Uni FR +# Copyright (c) 2007..2011 - OpenSLX GmbH +# +# This program is free software distributed under the GPL version 2. +# See http://openslx.org/COPYING +# +# If you have any feedback please consult http://openslx.org/feedback and +# send your suggestions, praise, or complaints to feedback@openslx.org +# +# General information about OpenSLX can be found at http://openslx.org/ +# ----------------------------------------------------------------------------- +# xmlfilter.sh +# - This script is invoked by the vmchooser tool. It simply filters xml- +# files (taking the path to these files in $1). You might modify it in any +# way to match your needs, e.g. ask some database instead. You can re- +# implement it in any other programming language too. You simply have to +# return a list of proper xml files to be interpreted by the vmchooser +# binary). Please check for vmchooser.sh too ... +# ----------------------------------------------------------------------------- + +# This script . +# +# currently: +# - filter for slxgrp (which comes from /etc/machine-setup) +# + +# include default directories +. /opt/openslx/config + +if [ -f "${OPENSLX_DEFAULT_CONFDIR}/plugins/vmchooser/vmchooser.conf" ]; then + . "${OPENSLX_DEFAULT_CONFDIR}/plugins/vmchooser/vmchooser.conf" +fi + +function handlePersistentVM() { + if grep --extended-regexp -q "