mirror of https://github.com/BOINC/boinc.git
VBOX: Add explicit log entries for reasons why is_system_ready() returned false instead of just bubbling up the message to the BOINC Manager.
This commit is contained in:
parent
0994a59c93
commit
5ee889071d
|
@ -1463,20 +1463,32 @@ bool VBOX_VM::is_system_ready(std::string& message) {
|
||||||
if (output.size() == 0) {
|
if (output.size() == 0) {
|
||||||
fprintf(
|
fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"%s Feature: Enabling trickle-ups (Interval: %f)\n",
|
"%s WARNING: Communication with VM Hypervisor failed. (Possibly Out of Memory).\n",
|
||||||
vboxwrapper_msg_prefix(buf, sizeof(buf)),
|
vboxwrapper_msg_prefix(buf, sizeof(buf))
|
||||||
|
|
||||||
);
|
);
|
||||||
message = "Communication with VM Hypervisor failed. (Possibly Out of Memory).";
|
message = "Communication with VM Hypervisor failed. (Possibly Out of Memory).";
|
||||||
rc = false;
|
rc = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output.find("Processor count:") == string::npos) {
|
if (output.find("Processor count:") == string::npos) {
|
||||||
|
fprintf(
|
||||||
|
stderr,
|
||||||
|
"%s WARNING: Communication with VM Hypervisor failed.\n",
|
||||||
|
vboxwrapper_msg_prefix(buf, sizeof(buf))
|
||||||
|
);
|
||||||
message = "Communication with VM Hypervisor failed.";
|
message = "Communication with VM Hypervisor failed.";
|
||||||
rc = false;
|
rc = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (output.find("WARNING: The vboxdrv kernel module is not loaded.") != string::npos) {
|
if (output.find("WARNING: The vboxdrv kernel module is not loaded.") != string::npos) {
|
||||||
|
vboxwrapper_msg_prefix(buf, sizeof(buf));
|
||||||
|
fprintf(
|
||||||
|
stderr,
|
||||||
|
"%s WARNING: The vboxdrv kernel module is not loaded.\n"
|
||||||
|
"%s WARNING: Please update/recompile VirtualBox kernel drivers.\n",
|
||||||
|
buf,
|
||||||
|
buf
|
||||||
|
);
|
||||||
message = "Please update/recompile VirtualBox kernel drivers.";
|
message = "Please update/recompile VirtualBox kernel drivers.";
|
||||||
rc = false;
|
rc = false;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue