summaryrefslogtreecommitdiffstats
path: root/os-plugins/plugins/virtualbox/files/run-virt.include
diff options
context:
space:
mode:
authorDirk von Suchodoletz2009-02-17 21:15:21 +0100
committerDirk von Suchodoletz2009-02-17 21:15:21 +0100
commitf4438b73ff48269de1e6049257042a092b24ae8f (patch)
tree938ad04fa92af264a39bf7d3969a0b55883c7f04 /os-plugins/plugins/virtualbox/files/run-virt.include
parentvmchooser binary: (diff)
downloadcore-f4438b73ff48269de1e6049257042a092b24ae8f.tar.gz
core-f4438b73ff48269de1e6049257042a092b24ae8f.tar.xz
core-f4438b73ff48269de1e6049257042a092b24ae8f.zip
Framework stuff (not working) for the VirtualBox virtual machine ...
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2589 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/virtualbox/files/run-virt.include')
-rw-r--r--os-plugins/plugins/virtualbox/files/run-virt.include43
1 files changed, 43 insertions, 0 deletions
diff --git a/os-plugins/plugins/virtualbox/files/run-virt.include b/os-plugins/plugins/virtualbox/files/run-virt.include
new file mode 100644
index 00000000..541acd61
--- /dev/null
+++ b/os-plugins/plugins/virtualbox/files/run-virt.include
@@ -0,0 +1,43 @@
+# run-virtualbox.include
+#
+# Copyright (c) 2009 - OpenSLX GmbH
+#
+# This program/file 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 feedback to feedback@openslx.org
+#
+# General information about OpenSLX can be found at http://openslx.org
+#
+# Include script for running the Virtual Box on an OpenSLX client via the
+# run-virt.sh. The stuff is copied to /etc/opt/openslx/run-virtualbox.include
+# during stage3.
+
+
+permem=66
+mem=expr(${totalmem} * ${permem})
+
+# virtual fd/cd/dvd and drive devices, floppy b: for configuration
+#floppya is always false, if we have a floppy device or not isn't
+#important.
+floppya="FALSE"
+floppyb="TRUE"
+floppybname="/etc/vmware/loopimg/fd.img"
+cdr_1="FALSE"
+cdr_2="FALSE"
+# ide is expected default, test for the virtual disk image type should
+# be done while creating the runscripts ...
+ide="TRUE"
+hddrv="ide"
+
+
+# folder of virtual machine images
+vmdir="/var/lib/virt/virtualbox"
+
+# image file
+diskfile="${vmdir}/${imagename}"
+
+# set the variables appropriately
+VIRTCMD=$(which vbox???)
+