mirror of https://github.com/BOINC/boinc.git
VBOX: Guest additions may not be available on all hosts. If not found, skip it.
This commit is contained in:
parent
3136342575
commit
609a2924b3
|
@ -226,8 +226,7 @@ int VBOX_VM::initialize() {
|
||||||
rc = get_version_information(virtualbox_version);
|
rc = get_version_information(virtualbox_version);
|
||||||
if (rc) return rc;
|
if (rc) return rc;
|
||||||
|
|
||||||
rc = get_guest_additions(virtualbox_guest_additions);
|
get_guest_additions(virtualbox_guest_additions);
|
||||||
if (rc) return rc;
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -770,6 +769,8 @@ int VBOX_VM::create_vm() {
|
||||||
retval = vbm_popen(command, output, "storage attach (ISO 9660 image)");
|
retval = vbm_popen(command, output, "storage attach (ISO 9660 image)");
|
||||||
if (retval) return retval;
|
if (retval) return retval;
|
||||||
|
|
||||||
|
if (!virtualbox_guest_additions.empty()) {
|
||||||
|
|
||||||
// Add guest additions to the VM
|
// Add guest additions to the VM
|
||||||
//
|
//
|
||||||
fprintf(
|
fprintf(
|
||||||
|
@ -787,6 +788,8 @@ int VBOX_VM::create_vm() {
|
||||||
retval = vbm_popen(command, output, "storage attach (guest additions image)");
|
retval = vbm_popen(command, output, "storage attach (guest additions image)");
|
||||||
if (retval) return retval;
|
if (retval) return retval;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// Add a virtual cache disk drive to VM
|
// Add a virtual cache disk drive to VM
|
||||||
//
|
//
|
||||||
if (enable_cache_disk){
|
if (enable_cache_disk){
|
||||||
|
@ -829,6 +832,8 @@ int VBOX_VM::create_vm() {
|
||||||
retval = vbm_popen(command, output, "storage attach (fixed disk)");
|
retval = vbm_popen(command, output, "storage attach (fixed disk)");
|
||||||
if (retval) return retval;
|
if (retval) return retval;
|
||||||
|
|
||||||
|
if (!virtualbox_guest_additions.empty()) {
|
||||||
|
|
||||||
// Add guest additions to the VM
|
// Add guest additions to the VM
|
||||||
//
|
//
|
||||||
fprintf(
|
fprintf(
|
||||||
|
@ -848,6 +853,8 @@ int VBOX_VM::create_vm() {
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
// Add network bandwidth throttle group
|
// Add network bandwidth throttle group
|
||||||
//
|
//
|
||||||
|
|
Loading…
Reference in New Issue