summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/vmware/XX_vmware.sh
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-17 21:26:07 +0100
committerDirk von Suchodoletz2009-02-17 21:26:07 +0100
commitebdb8314cbeb6f863f749d879ae86963358ec7be (patch)
tree953701170faac5f06fb45efdea202e479785a711 /os-plugins/plugins/vmware/XX_vmware.sh
parentChanges following the new centralized run-virt.sh concept ... (not useable (diff)
downloadcore-ebdb8314cbeb6f863f749d879ae86963358ec7be.tar.gz
core-ebdb8314cbeb6f863f749d879ae86963358ec7be.tar.xz
core-ebdb8314cbeb6f863f749d879ae86963358ec7be.zip
Starting to follow the new model (see r2589, r2591 too).
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2592 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/vmware/XX_vmware.sh')
-rw-r--r--os-plugins/plugins/vmware/XX_vmware.sh31
1 files changed, 8 insertions, 23 deletions
diff --git a/os-plugins/plugins/vmware/XX_vmware.sh b/os-plugins/plugins/vmware/XX_vmware.sh
index 64fb99ec..60c0fc66 100644
--- a/os-plugins/plugins/vmware/XX_vmware.sh
+++ b/os-plugins/plugins/vmware/XX_vmware.sh
@@ -1,5 +1,5 @@
-# Copyright (c) 2007..2008 - RZ Uni Freiburg
-# Copyright (c) 2008 - OpenSLX GmbH
+# Copyright (c) 2007..2009 - RZ Uni Freiburg
+# Copyright (c) 2008..2009 - OpenSLX GmbH
#
# This program/file is free software distributed under the GPL version 2.
# See http://openslx.org/COPYING
@@ -199,28 +199,8 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
done
chmod 0700 /dev/vmnet*
- chmod 1777 /mnt/etc/vmware/fd-loop
chmod 1777 /mnt/var/run/vmware
- # loop file for exchanging information between linux and vmware guest
- if modprobe ${MODPRV} loop; then
- mdev -s
- else
- : #|| error "" nonfatal
- fi
- # 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
- # use dos formatter from rootfs (later stage4)
- ln -sf /mnt/lib/ld-linux.so.2 /lib/ld-linux.so
- LD_LIBRARY_PATH=/mnt/lib /mnt/sbin/mkfs.msdos \
- /mnt/etc/vmware/loopimg/fd.img >/dev/null 2>&1 #|| error
- mount -n -t msdos -o loop,umask=000 /mnt/etc/vmware/loopimg/fd.img \
- /mnt/etc/vmware/fd-loop
echo -e "usbfs\t\t/proc/bus/usb\tusbfs\t\tauto\t\t 0 0" >> /mnt/etc/fstab
# needed for VMware 5.5.4 and versions below
echo -e "\tmount -t usbfs usbfs /proc/bus/usb 2>/dev/null" \
@@ -233,7 +213,12 @@ $(ipcalc -m $vmip/$vmpx|sed s/.*=//) {" \
sed -e "s/^ *//" \
>/mnt/etc/vmware/config
- ## Copy version depending files
+ # copy version depending files - the vmchooser expects for every virtua-
+ # lization plugin a file named after it (here run-vmware.include)
+ testmkd /mnt/etc/opt/openslx
+ cp /mnt/opt/openslx/plugin-repo/vmware/${vmware_kind}/run-virt.include \
+ /mnt/etc/opt/openslx/run-vmware.include
+ # copy version depending files (old style)
cp /mnt/opt/openslx/plugin-repo/vmware/${vmware_kind}/runvmware \
/mnt/var/X11R6/bin/run-vmware.sh
chmod 755 /mnt/var/X11R6/bin/run-vmware.sh