Changes between Version 7 and Version 8 of VboxApps


Ignore:
Timestamp:
Sep 29, 2011, 11:04:35 AM (13 years ago)
Author:
romw
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • VboxApps

    v7 v8  
    11[[PageOutline]]
     2
    23= Running apps in VirtualBox virtual machines =
    3 
    4 BOINC's '''vboxwrapper''' program lets you run applications in virtual machines.
    5 This eliminates the need to build app versions for different architectures,
    6 and provides a stronger security sandbox than is otherwise available.
     4BOINC's '''vboxwrapper''' program lets you run applications in virtual machines. This eliminates the need to build app versions for different architectures, and provides a stronger security sandbox than is otherwise available.
    75
    86To do this, create an application version of plan class "vbox" containing the following files:
    97
    10  * The VM image (VirtualBox format).
    11    Must have the '''copy_file''' attribute.
    12    Must have logical name "vm_image.vdi".
     8 * The VM image (VirtualBox format). Must have the '''copy_file''' attribute. Must have logical name "vm_image.vdi".
    139 * An XML job description file (see below)
    1410 * '''vboxwrapper''', compiled for the platform
    1511
    16 Include '''<dont_throttle/>''' in the version.xml file;
    17 VirtualBox does its own CPU throttling.
     12Include '''<dont_throttle/>''' in the version.xml file; VirtualBox does its own CPU throttling.
    1813
    1914== Job description file ==
    20 
    2115'''vboxwrapper''' takes an input file '''vbox_job.xml''' with the following structure:
    2216
     
    2923</vbox_job>
    3024}}}
    31 
    3225The elements are:
    3326
     
    4134
    4235== Requirements of the VM ==
     36The VM image, when booted, must run the application. This is typically done using a script in /etc.
    4337
    44 The VM image, when booted, must run the application.
    45 This is typically done using a script in /etc.
     38When the application is finished, it must shut down the VM (e.g., by running '''shutdown''' on Linux).
    4639
    47 When the application is finished, it must shut down the VM
    48 (e.g., by running '''shutdown''' on Linux).
    49 
    50 If the applications has input or output files,
    51 the VM must contain the VirtualBox "guest additions",
    52 and it must mount the shared directory using
     40If the applications has input or output files, the VM must contain the VirtualBox "guest additions", and it must mount the shared directory using
    5341
    5442{{{
    5543mount -t vboxsf share ~/host
    5644}}}
    57 where "~/host" is the path where the shared directory is to be mounted.
    58 Typically it will then cd into that directory
    59 to run the application.
     45where "~/host" is the path where the shared directory is to be mounted. Typically it will then cd into that directory to run the application.
     46
     47[[Image(vmprocess.png)]]