diff options
| author | Dirk von Suchodoletz | 2009-02-17 21:22:33 +0100 |
|---|---|---|
| committer | Dirk von Suchodoletz | 2009-02-17 21:22:33 +0100 |
| commit | f4e2d67f4b1d19dc0f62234df4f278c4170ea71a (patch) | |
| tree | 85a435ec6658dd9bb07cc63299e84406eab1132e /os-plugins/plugins/qemukvm/files/run-virt.include | |
| parent | General run-virt.sh script called by vmchooser (see r2583 too). (diff) | |
| download | core-f4e2d67f4b1d19dc0f62234df4f278c4170ea71a.tar.gz core-f4e2d67f4b1d19dc0f62234df4f278c4170ea71a.tar.xz core-f4e2d67f4b1d19dc0f62234df4f278c4170ea71a.zip | |
Changes following the new centralized run-virt.sh concept ... (not useable
at the moment)
git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2591 95ad53e4-c205-0410-b2fa-d234c58c8868
Diffstat (limited to 'os-plugins/plugins/qemukvm/files/run-virt.include')
| -rw-r--r-- | os-plugins/plugins/qemukvm/files/run-virt.include | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/os-plugins/plugins/qemukvm/files/run-virt.include b/os-plugins/plugins/qemukvm/files/run-virt.include new file mode 100644 index 00000000..a4ce79ee --- /dev/null +++ b/os-plugins/plugins/qemukvm/files/run-virt.include @@ -0,0 +1,45 @@ +# qemukvm.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 QEMU/Linux KVM virtual machine on an OpenSLX +# client via the run-virt.sh. The stuff is copied to /etc/opt/openslx/run- +# qemukvm.include during stage3. + + +permem=66 +mem=expr(${totalmem} * ${permem}) +VIRTCMDOPTS="${VIRTCMDOPTS} -m ${mem}" + +# 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 VirtualMachine images +vmdir="/var/lib/virt/qemukvm" + +# vmware image file +diskfile="${vmdir}/${imagename}" + +# set the variables appropriately +VIRTCMD=$(which kvm) +VIRTCMDOPTS="${VIRTCMDOPTS} ${imagename}" + |
