Changes between Version 55 and Version 56 of VboxApps


Ignore:
Timestamp:
Aug 24, 2013, 2:29:02 AM (11 years ago)
Author:
Christian Beer
Comment:

add warning for interpreter based boinc_app scripts

Legend:

Unmodified
Added
Removed
Modified
  • VboxApps

    v55 v56  
    243243You can use the a single VM image for many applications.
    244244
    245 
     245'''Attention:''' If your '''boinc_app''' is a bash or perl script you may get problems when the VM is restored from a snapshot. To circumvent this you have to change your startup script to copy the contents of the shared/ directory to another directory 'inside' the VM and execute it there. For example:
     246{{{
     247echo -- Launching boinc_app
     248if [ -f /root/shared/boinc_app ]; then
     249    mkdir /root/worker
     250    cp -r /root/shared/* /root/worker/
     251    cd /root/worker/
     252    ./boinc_app
     253    cd /root/
     254    rm -rf /root/worker
     255    shutdown -hP 0
     256else
     257}}}
     258This way you can still reuse the VM for other applications but have to make sure that your '''boinc_app''' control script is copying the output files of the application to ´/root/shared/´ before exiting. This may take some time, so you should do something like:
     259{{{
     260cp outfile1.zip /root/shared/out1.zip.tmp
     261cp outfile2.zip /root/shared/out2.zip.tmp
     262{...}
     263mv /root/shared/out1.zip.tmp /root/shared/out1.zip
     264mv /root/shared/out2.zip.tmp /root/shared/out2.zip
     265}}}
    246266
    247267=== Example startup script ===