From 95312b3c22a909c3d90cf5e4756a7cbd6833da21 Mon Sep 17 00:00:00 2001 From: Dirk von Suchodoletz Date: Tue, 24 Feb 2009 21:46:53 +0000 Subject: Added some hints/thoughts of Volkers vbox activities ... git-svn-id: http://svn.openslx.org/svn/openslx/openslx/trunk@2638 95ad53e4-c205-0410-b2fa-d234c58c8868 --- os-plugins/plugins/virtualbox/files/runvbox.hints | 145 ++++++++++++++++++++++ 1 file changed, 145 insertions(+) create mode 100644 os-plugins/plugins/virtualbox/files/runvbox.hints (limited to 'os-plugins/plugins') diff --git a/os-plugins/plugins/virtualbox/files/runvbox.hints b/os-plugins/plugins/virtualbox/files/runvbox.hints new file mode 100644 index 00000000..ebc57003 --- /dev/null +++ b/os-plugins/plugins/virtualbox/files/runvbox.hints @@ -0,0 +1,145 @@ +#!/bin/sh +# Description: Script for preparing VirtualBox environment Diskless +# Gets a xml file, reads needed information from it and +# forwards it into B drive of VirtualBox +# +# Author(s): see project authors file +# last changes uhrig, 21/10/2008 +# Copyright: (c) 2003 - 2008 - RZ Universitaet Freiburg +# +# Version: 0.0.1 +# +################################################################################ + +################################################################################ +## +## Read needed variables from XML file +## +################################################################################ +xml=$1 +# todo: change it! We need to mount it like vmware, but it could be the +# same +imgpath="/var/lib/vmware" + +# file name of the image +imagename="${imgpath}/$(grep -i " + +# enable audio +VBoxManage modifyvm "${ID}" -audio oss + +#TODO +#VBoxManage modifyvm "${ID}" +#VBoxManage modifyvm "${ID}" ­ostype +#VBoxManage modifyvm "${ID}" ­vram _in_mb_of_virtual_graphic_card> +#VBoxManage modifyvm "${ID}" ­acpi # acpi and i/o apic support +#VBoxManage modifyvm "${ID}" ­sata # sata or ide +#VBoxManage modifyvm "${ID}" ­dvdpassthrough # burn support, unstable +#VBoxManage modifyvm "${ID}" -floppy empty|uuid|filename # yes we need it +#VBoxManage modifyvm "${ID}" -floppy empty|uuid|filename # yes we need it + + + +# adjust volume amixer -q sset Master 28 unmute 2>/dev/null +amixer -q sset PCM 28 unmute 2>/dev/null +amixer -q sset Headphone 28 unmute 2>/dev/null +amixer -q sset Front 0 mute 2>/dev/null + + +# start created image +VBoxManage startvm "${ID}" -type gui -- cgit v1.2.3-55-g7522