From b19d1ea85f9f52a9776126f9d60b90267dccf73b Mon Sep 17 00:00:00 2001 From: Rom Walton Date: Wed, 24 Apr 2013 15:03:26 -0400 Subject: [PATCH] VBOX: Start keeping track on incompatible versions of VirtualBox. Set the temporary exit delay to one day if an incompatible version is detected. This gives the volunteer a chance to take corrective action before the task errors out after it exceeds its deadline. --- samples/vboxwrapper/vboxwrapper.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/samples/vboxwrapper/vboxwrapper.cpp b/samples/vboxwrapper/vboxwrapper.cpp index cac73480fd..d936cfa36f 100644 --- a/samples/vboxwrapper/vboxwrapper.cpp +++ b/samples/vboxwrapper/vboxwrapper.cpp @@ -451,6 +451,13 @@ int main(int argc, char** argv) { ); } + // Check against known incompatible versions of VirtualBox. + // NOTE: Incompatible in this case means that VirtualBox 4.2.6 crashes during snapshot operations + // + if (vm.virtualbox_version.find("4.2.6r") != std::string::npos) { + boinc_temporary_exit(86400, "Incompatible version of VirtualBox detected."); + } + // Record if anonymous platform was used. // if (boinc_file_exists((std::string(aid.project_dir) + std::string("/app_info.xml")).c_str())) {