VBOX: When running a 32-bit vboxwrapper on a 64-bit Windows machine, exit with a temporary error suggesting that the volunteer upgrade to a 64-bit BOINC client. 32-bit vboxwrapper cannot detect VirtualBox on a 64-bit system.

This commit is contained in:
Rom Walton 2013-08-13 00:26:12 -04:00
parent d980f70163
commit d0c765b101
1 changed files with 13 additions and 0 deletions

View File

@ -427,6 +427,19 @@ int main(int argc, char** argv) {
//
boinc_get_init_data_p(&aid);
// Check for architecture incompatibilities
//
#if defined(_WIN32) && defined(_M_IX86)
if (strstr(aid.host_info.os_version, "x64")) {
fprintf(
stderr,
"%s 64-bit version of BOINC is required, please upgrade, telling BOINC to reschedule execution for a later date.\n",
vboxwrapper_msg_prefix(buf, sizeof(buf))
);
boinc_temporary_exit(86400, "Architecture incompatibility detected.");
}
#endif
// Initialize VM Hypervisor
//
retval = vm.initialize();