#!/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