Commit Graph

660 Commits

Author SHA1 Message Date
Rom Walton bac89be769 VBOX: Only increment the elapsed time is both boinc_status.suspended is false and vm.suspended is false.
VBOX: Only change the elapsed time is the stop watch elapsed time is a positive value.

This is just weird (http://lhcathome2.cern.ch/test4theory/result.php?resultid=4289098):
2014-04-08 15:52:43 (6732): Status Report: Job Duration: '86400.000000'
2014-04-08 15:52:43 (6732): Status Report: Elapsed Time: '54506.443735'
2014-04-08 16:06:16 (6732): Status Report: Job Duration: '86400.000000'
2014-04-08 16:06:16 (6732): Status Report: Elapsed Time: '450358026.129327'
2014-04-10 12:12:33 -04:00
Rom Walton 14d24440dc VBOX: Print out the decimal value for the random checkpoint value instead of a double. 2014-04-05 15:28:06 -04:00
Rom Walton 6f55578937 VBOX: Initialize the random number generator before asking for a random number. 2014-04-05 15:23:39 -04:00
Rom Walton 1a744614b6 VBOX: Introduce a random checkpoint offset value on initial start up to interleave the disk I/O when multiple vboxwrappers are running. 2014-04-05 14:28:33 -04:00
David Anderson f3b7a30548 vboxwrapper: fix comments and code formatting 2014-03-24 15:00:49 -07:00
Charlie Fenton 3637e0f6da lib, nvcuda: Fix warnings from cppcheck reported by Toralf Förster. 2014-03-20 05:20:04 -07:00
Rom Walton ea7c24e387 VBOX: Replace calls to GetProcessWorkingSetSizeEx() with GetProcessWorkingSetSize(). Some versions of Windows XP do not support the API. 2014-03-19 16:05:05 -04:00
David Anderson 7008db6c24 Merge branch 'master' of ssh://boinc.berkeley.edu/boinc-v2 2014-03-13 13:21:22 -07:00
David Anderson 12b4f43793 Condor interface: when unzipping output file, use job-specific name for temp file to avoid conflict between jobs 2014-03-13 13:07:16 -07:00
Rom Walton 488ed2f43b VBOX: Tweak the process priority of vboxheadless/virtualbox.exe so that it is above regular science applications.
On systems with comparatively slow disk subsystems, the I/O can become saturated. This leads the Linux Kernel on guest OS's dumping out warning messages to the console of failure to write data to disk.  Since the device drivers are timer sensitive we will boost the priority of the process to boost its disk I/O requests above the other disk I/O of science applications.  Science applications themselves generally don't have timeouts when checkpointing and the like.
2014-03-13 12:39:01 -04:00
David Anderson cd042dd566 vboxwrapper: fix compile warnings on Linux 2014-03-04 13:02:04 -08:00
Rom Walton d50d1009f7 VBOX: When parsing for a 32-bit exit code from VboxManage compare against std::string:npos instead of just checking for a non-null value. 2014-02-18 11:27:39 -05:00
Rom Walton c6047d3011 VBOX: Provide status report log entries that show the min and max working set size on Windows. 2014-02-14 11:15:34 -05:00
Rom Walton 9b4347c3fc VBOX: One additional fix for RPC_S_SERVER_UNAVAILABLE. 2014-02-11 16:25:28 -05:00
Rom Walton 0116f9485f VBOX: Look for RPC_S_SERVER_UNAVAILABLE errors across all platforms. 2014-02-11 16:24:03 -05:00
Rom Walton 980b8c6d69 VBOX: VboxManage returns an exit code of 0 when a RPC_S_SERVER_UNAVAILABLE error occurs. Special case the error. 2014-02-11 16:17:43 -05:00
Rom Walton 35d2786797 VBOX: Fix a dump hypervisor log format issue 2014-02-11 10:31:49 -05:00
Rom Walton 9b041f7004 VBOX: Fix case of virtualbox and vboxheadless for platforms that are case sensitive. The code is currently disabled anyway, but if we re-enable it at some point we might as well avoid the bug. 2014-02-06 10:15:52 -05:00
Rom Walton 106653ffe4 VBOX: If vboxmanage returns a CO_E_SERVER_EXEC_FAILURE error, go again and retry the command anyway.
Vboxsvc may be running and working but some other oddity prevented vboxmanage from communicating with vboxsvc.  Evidence suggests future attempts may not fail.  Trace logs indicates that the clean-up routines did not fail when we attempted to cleanup the environment before reporting a failure.
2014-02-05 16:23:46 -05:00
Rom Walton c1e980870d VBOX: If the volunteer abort the job while we are running, capture all the error logs in case they aborted because of an error. 2014-02-04 18:02:29 -05:00
Rom Walton 0ed3f27db2 VBOX: Sanitize vboxmanage's output before writing it to the trace log. 2014-02-04 15:51:28 -05:00
Rom Walton ab9f75c155 VBOX: If we fail to terminate vboxmanage on a TIMEOUT, log the reason why. 2014-02-04 15:13:49 -05:00
Rom Walton 8a1d2b49e0 VBOX: Missed one temp exit. 2014-02-03 18:35:10 -05:00
Rom Walton cd40976187 VBOX: Change the default temp exit timeout from 5 minutes to a day. 2014-02-03 18:33:40 -05:00
Rom Walton b971791e59 VBOX: If an error occurs, dump 8k of the VM trace log as well. Hopefully we can figure out what the duplicate UUID issue is as well as some of the snapshot issues. 2014-02-03 18:30:57 -05:00
Charlie Fenton 2c6032d26e VBOX: Fix compiler error and compiler warning on Mac 2014-01-28 02:38:03 -08:00
Rom Walton 4dda6f53e1 VBOX: Start success is when both vm_pid and vm_pid_handle are non-zero values. 2014-01-23 07:30:16 -05:00
Rom Walton 4115e9a454 VBOX: Only look for the VM pid if no error code was returned from vbm_popen(). 2014-01-22 19:55:14 -05:00
Rom Walton 52258d9359 VBOX: Bring back the method of using vboxmanage to launch the VM.
We are getting some funky results launching the VM directly and the next update window for RNAWorld is this Friday.  So using the old method for that release is the right thing to do.
2014-01-22 19:52:26 -05:00
Rom Walton b8b768fbf6 VBOX: Vboxsvc doesn't return error codes in the same format as vboxmanage. Special case vboxsvc error code RPC_S_SERVER_UNAVAILABLE. 2014-01-22 16:33:21 -05:00
Rom Walton f3f9a19d23 VBOX: Do not retry the closemedium commands when unregistering stale VMs. VirtualBox has probably deleted the files. This is kept around for older versions of VirtualBox. 2014-01-22 16:12:38 -05:00
Rom Walton d32dfbb63d VBOX: Make the guest log feature function correctly with less than 16k worth of output. 2014-01-22 15:21:58 -05:00
Rom Walton b9e2af9c14 VBOX: It is also useful to know whether commands had to be retried after a timeout 2014-01-22 14:38:42 -05:00
Rom Walton 6cfdbf88f1 VBOX: Introducing the replay and trace logs for vboxwrapper.
The replay log stores the commands that were executed in a near shell script state.  Ideally we should be able to use this to pass bugs back upstream to VirtualBox.

The trace log shows the date, time, thread id, command, return value, and output of the above commands.
2014-01-22 14:34:20 -05:00
Rom Walton 5778cd653f VBOX: Unify the code that strips the carriage returns from various output of VirtualBox commands 2014-01-22 11:52:06 -05:00
Rom Walton a09e6f145b VBOX: Only consider launch_vboxvm() a success if the VM process is still running after our read output buffer loop 2014-01-22 11:32:06 -05:00
Rom Walton 5f2fbe9dfc VBOX: Fortify the launch_vboxvm() function and print out any error information if virtualbox/vboxheadless fails wthin the first second of execution.
VBOX: Rework the delete stale snapshot mechanism to avoid the 'multiple child hard drive' errors.
VBOX: Treat the RPC_S_SERVER_UNAVAILABLE error when restoring the current snapshot as unrecoverable (vboxsvc has crashed) and exit without attempting to cleaning up. Other VMs running and being monitored by BOINC will crash as well.
2014-01-22 10:44:38 -05:00
Rom Walton d189767b0e VBOX: Fix the guest log parser 2014-01-21 11:29:13 -05:00
David Anderson 07e8026caa example app comment typo 2014-01-20 23:39:59 -08:00
David Anderson 04327eb7e7 vboxwrapper: fix VM-launch code for UNIX 2014-01-20 23:34:35 -08:00
Rom Walton 8c0139937c VBOX: Fix another formatting issue 2014-01-21 00:47:10 -05:00
Rom Walton ce48f695f4 VBOX: Fix format issue 2014-01-21 00:26:25 -05:00
Rom Walton 87f6f0c2ea VBOX: Change how we launch the VirtualBox VM process. Directly execute virtualbox.exe or vboxheadless.exe depending on configuration. 2014-01-21 00:18:56 -05:00
Rom Walton 0bd9e49f87 Revert "VBOX: Remove unneeded function"
This reverts commit 52f7103e82.
2014-01-20 16:32:35 -05:00
Rom Walton 52f7103e82 VBOX: Remove unneeded function 2014-01-20 16:06:36 -05:00
Rom Walton b6b0d6224d VBOX: Detect vboxsvc's process id by using the PROC_INFO facilities in libboinc. Depending on how long vboxsvc has been running, it may not list the process id if the log has been cycled. 2014-01-20 14:51:17 -05:00
Rom Walton b99a504d45 VBOX: Fix comment 2014-01-20 14:16:23 -05:00
Rom Walton c977364f51 VBOX: Formatting fix 2014-01-20 14:14:52 -05:00
Rom Walton e0b0b58149 VBOX: Add missing feature that allows the volunteer to run VirtualBox in headfull mode when not running as a service. 2014-01-20 14:13:32 -05:00
David Anderson f4a270ad04 example app: load fonts from project dir, not slot dir
Slot dir will containt link files, not font files
2014-01-19 16:55:10 -08:00