Commit Graph

607 Commits

Author SHA1 Message Date
Rom Walton 732f2e01a8 VBOX: Dump Vbox logs when the heartbeat fails. 2016-06-10 07:50:31 -07:00
Rom Walton 36044d51ab VBOX: Code cleanup - streamline the hypervisor initialization code a bit. 2016-06-09 23:08:03 -07:00
Rom Walton 0fe214038c VBOX: Adjust the startup logic to support Vbox 5.1 (MSCOM) 2016-06-03 23:07:16 -07:00
Rom Walton 1784d67843 VBOX: Disable explicitly disabling LPT ports on Macs.
It isn't clear that this is causing the startup failure of VM(s) on MacOS X, but it is unsightly to see in the error log.

See:
https://github.com/BOINC/boinc/issues/1526
2016-06-03 22:07:55 -07:00
Rom Walton 0f3b0ccc8f VBOX: Add support for VirtualBox 5.1 (MSCOM) 2016-06-03 21:47:43 -07:00
Rom Walton 1184f279e6 VBOX: Cap the maximum number of CPUs to 32.
Virtualbox has a hard cap of 32 processors per VM.
2016-04-12 13:08:05 -04:00
funkydude 71831ee639 Expand usage of HTTPS and fix a few URLs 2016-03-08 20:04:28 +00:00
Rom Walton 301b191b70 VBOX: Ugh, fix another typo.
I'm beginning to not like my new keyboard and mouse.
2016-02-10 15:58:41 -05:00
Rom Walton 79184c6103 VBOX: Fix a typo 2016-02-10 15:56:33 -05:00
Rom Walton c61e3090ea VBOX: Add some text about detecting the heartbeat configuration parameters 2016-02-10 15:03:39 -05:00
Rom Walton 01503278af VBOX: Look for the heartbeat file in the shared directory. 2016-02-10 14:58:39 -05:00
Rom Walton 46cac65e83 VBOX: Introduce the notion of a heartbeat file.
Basically the VM periodically 'touches' the file to let the wrapper know that it is still alive.  If the wrapper does not detect a change to the mod time of the file at the specified interval it assumes the worst and aborts the job.

Requested by CMS.
2016-02-07 17:06:52 -05:00
marius 8f7df2a7f0 VBOX: fixed error code not being reported 2016-02-04 02:50:57 +01:00
Charlie Fenton f707a7e983 VBOX: Fix recursive header error in Mac Xcode project 2016-01-30 19:45:21 -08:00
Rom Walton 070db37d2a VBOX: Add missing code to dump log files even for known error types. 2016-01-30 13:56:35 -05:00
Juha Sointusalo 80135f9c95 vbox: fix use-after-free bug in FloppyIOException 2015-11-23 00:11:59 +02:00
Juha Sointusalo 6ced9a08a6 vbox: fix memory leak in FloppyIO 2015-11-22 22:50:08 +02:00
Christian Beer 38205527dd Merge pull request #1435 from BOINC/fix_defects_apps
Fix defects in example apps
2015-11-19 22:59:42 +01:00
Rom Walton ce0e2dab0f vboxwrapper: reclassify the vboxwrapper as a console application on Windows.
This was a hold over from the Win9x days when a console application window could not be hidden by the processed that launched it.  Since we no longer need to support Win9x we can get rid of this hack.
2015-11-19 13:41:02 -05:00
Christian Beer bbc4cf5751 VboxWrapper: prevent use after free in FloppyIOException
see http://blog.sensecodons.com/2013/04/dont-let-stdstringstreamstrcstr-happen.html for details
fixes CID 34536 found by Coverity
2015-11-10 16:56:44 +01:00
Christian Beer 155b35a3a2 VboxWrapper: prevent resource leak in FloppyIO::receive(string*)
fixes CID 34512 found by Coverity
2015-11-10 16:34:46 +01:00
Christian Beer 8e9948e5d9 VboxWrapper: prevent resource leak in FloppyIO::send()
fixes CID 34511 found by Coverity
2015-11-10 16:29:02 +01:00
Rom Walton 2f1bce3064 VBOX: Make sure we are processing the vm log file, even if it is not online. 2015-10-16 11:46:58 -04:00
Rom Walton d0fb1e64c2 VBOX: Fix search path detection code introduced in caf5255. 2015-10-16 11:12:52 -04:00
Rom Walton 0d7ecc6a16 VBOX: Move detection of errors reported by VirtualBox to a little later in the start up process. It may take the VM process a few moments to figure out if it will be able to run.
TODO: Remove some duplicated code.
2015-10-16 10:32:58 -04:00
Charlie Fenton c86e8f97fb VBOX: Fix Mac Xcode project which somehow was corrupted. 2015-10-13 15:21:14 -07:00
Rom Walton caf5255735 VBOX: Add code to handle search path modification for Linux and Mac.
Something has changed on OS X that prevents /usr/local/bin from being in the default search path.  It is when launched from a terminal window, but not when BOINC launches vboxwrapper.  I think recent versions of VirtualBox changed where it stores VboxManage on install.  bbad0d9d recently addressed this in the CC.
2015-10-13 14:34:23 -04:00
Rom Walton f0998b64ef VBOX: On a hypervisor detection failure failure dump all the logs to stderr, it would have quickly exposed a search path change on Mac OS X. 2015-10-13 14:17:01 -04:00
Rom Walton 8f1c767593 Revert "VBOX: Fix a crashing bug on Windows. If we fail to acquire a machine state lock, just report a VM start failure instead of crashing."
This reverts commit 7efd4b474b.
2015-10-11 16:18:55 -04:00
Rom Walton fbb8e0dc09 VBOX: Attempt to read VirtualBox logs in-place to cut down on disk I/O. 2015-10-11 13:27:03 -04:00
Rom Walton 0ee90d7995 VBOX: Update CPU VMX/SVM usage detection code with the latest error messages returned by VirtualBox 5.x 2015-10-09 12:38:28 -04:00
Rom Walton 7efd4b474b VBOX: Fix a crashing bug on Windows. If we fail to acquire a machine state lock, just report a VM start failure instead of crashing. 2015-10-06 16:12:23 -04:00
Rom Walton f9279627f9 VBOX: Fix build break when building a debug version of vboxwrapper 2015-09-29 16:57:23 -04:00
Rom Walton eaf9cb817d VBOX: Only perform the printf format string sanitize functionality on those strings that are going to be consumed by vbox_log(). 2015-08-28 17:24:00 -04:00
Rom Walton 6736f5958e VBOX: Add additional comments 2015-08-28 17:16:13 -04:00
Rom Walton 54a2715e8f VBOX: Possible fix for endless loop. 2015-08-28 16:01:48 -04:00
Rom Walton 38d8041523 VBOX: Bug fix for previous commit. 2015-08-28 14:25:37 -04:00
Rom Walton bbd94c4b7d VBOX: Sanitize 'Guest Log' entries before attempting to write them to stderr. 2015-08-28 14:23:45 -04:00
Rom Walton 95084cee60 VBOX: Make sure the scratch directory value is populated at start up when using the COM interface. 2015-08-24 15:05:23 -04:00
Rom Walton 1b3adf33ae VBOX: When a fraction done file is specified and it has not been created yet, report a non-zero fraction done to prevent BOINC from attempt to calculate it itself. 2015-08-20 19:06:56 -04:00
Rom Walton f86e2dacd1 Merge pull request #1367 from marius311/master
vboxwrapper ncpus -> nthreads bug
2015-07-10 12:00:55 -04:00
Rom Walton 3513922f43 VBOX: Update to support VirtualBox 5.0 RTW. 2015-07-09 11:56:00 -04:00
marius 945afadc2b vboxwrapper ncpus -> nthreads bug 2015-07-07 14:24:32 -07:00
Rom Walton 647511d990 VBOX: Bug Fix 2015-07-05 14:39:47 -04:00
Rom Walton 3ee10705e8 VBOX: Clean-up the VirtualBox version detection mess. 2015-07-05 14:35:48 -04:00
Rom Walton cbe876f3e4 VBOX: Add support for VirtualBox 5.0 RC 3.
Adjust to the changes in the object model when dealing with snapshots and saved state.
2015-07-04 16:33:35 -04:00
Rom Walton a232766d01 VBOX: Bug fix. 2015-07-04 12:45:43 -04:00
Rom Walton 9f42c5dc00 VBOX: Attempt to gracefully fallback to using vboxmanage when the COM interface cannot be successfully created. 2015-07-04 12:31:23 -04:00
Rom Walton 86598c9c6e VBOX: Check for the cache disk configuration flag before attempting to query for the vm_image virtual disk. There will be no vm_image virtual disk to unregister when cache disks are used with isocontextualization. 2015-07-03 16:46:30 -04:00
Rom Walton fa44b3c169 VBOX: Create a new job file flag for dealing with the scratch directory feature. 2015-06-28 15:18:17 -04:00