Commit Graph

1163 Commits

Author SHA1 Message Date
Vitalii Koshura 44742026e2
Remove trailing whitespaces. Add CI script to verify in on every commit
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-05-05 20:08:17 +02:00
David Anderson e08b75d44f Move run_program() etc. from proc_control.cpp back to util.cpp.
This required changing a bunch of project files,
and was turning into a rabbit hole.
2023-04-11 13:11:12 -07:00
davidpanderson 89af4461b1 build fix 2023-04-10 12:13:11 -07:00
davidpanderson 6d0e90751f Win build fixes
Getting boinccas to build required some stuff I don't understand
2023-04-10 02:19:06 -07:00
David Anderson df26141cfc Change some things back to the way they were;
this PR is getting to big.
2023-04-09 23:50:23 -07:00
David Anderson cd1ca87ac1 build fix in wrappture/ 2023-04-09 18:08:10 -07:00
David Anderson 450914e71f build fix in vboxwrapper
get_exit_status(): dt<= means wait indefinitely; dt=0 means non-blocking
2023-04-09 18:00:31 -07:00
Brian Nixon a71d9906e0
Revert cc5d388c53 2023-03-27 17:14:28 +01:00
Brian Nixon 7741294481
Close thread and process handles on Windows 2023-03-27 15:27:27 +01:00
Brian Nixon cc5d388c53
Correct inheritance of stdout by child process on Windows 2023-03-27 15:22:52 +01:00
Brian Nixon 587a8ebff9
Log PID of created child process
Useful on Windows, where we otherwise have to go rummaging in undocumented internals to find process parent-child relationships
2023-03-27 15:20:30 +01:00
mcagriaksoy c81c461216 update copyright year 2023-03-13 21:43:34 +03:00
Vitalii Koshura 797cbc8d9d
[CI] Build example applications, wrapper and vboxwrapper for OSX.
This fixes #4892.

Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2023-02-13 23:22:18 +01:00
computezrmle ad5c7808fd
Fix compile errors caused by missing header file 2022-11-14 17:50:28 +01:00
computezrmle 9d74013b2a
Avoid character conversion
Avoid possibly unsafe character conversion 'tolower'.
Instead, rely on the output of vboxmanage.
Should be fine as long as the virtualbox developers keep their outputs stable.
If not, all tests against their messages would need a revision.
2022-11-03 14:08:03 +01:00
Charlie Fenton 4e48eb05de Mac wrapper: build Universal M1 / x86_64 binary 2022-08-19 03:49:07 -07:00
computezrmle 35b4d7b02d
[vboxwrapper] Replace sprintf with snprintf 2022-08-04 11:25:55 +02:00
computezrmle 5b44ed2e60
Cancel previous change 2022-07-31 21:20:03 +02:00
computezrmle 57d6556b9e
Avoid an enless loop condition 2022-07-31 19:31:50 +02:00
computezrmle 89cd1148b7
Ensure correct logging
Enables logging if loop is executed a 2nd time.
2022-07-31 17:34:50 +02:00
computezrmle 5347c8068c
Print a reminder to use unique UUIDs
Setting a new disk UUID is a temporary workaround to avoid a task getting cancelled.
Since it modifies the vdi file BOINC client will sooner or later download a fresh vdi copy from the server.

For a permanent solution the project admin has to ensure each vdi file has a unique UUID before it is used for an app_version.
2022-07-28 09:20:22 +02:00
computezrmle ad944a656b
mitigate possible VirtualBox bug
Workaround for errors like this:

VBoxManage.exe: error: Cannot attach medium 'D:\Boinc1\projects\lhcathomedev.cern.ch_lhcathome-dev\ATLAS_vbox_1.14_image.vdi': the media type 'MultiAttach' can only be attached to machines that were created with VirtualBox 4.0 or later
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "AttachDevice(Bstr(pszCtl).raw(), port, device, DeviceType_HardDisk, pMedium2Mount)" at line 776 of file VBoxManageStorageController.cpp
2022-07-26 07:08:45 +02:00
computezrmle b30e3a0951
mitigate possible VirtualBox bug
Workaround for errors like this:

VBoxManage.exe: error: Cannot attach medium 'D:\Boinc1\projects\lhcathomedev.cern.ch_lhcathome-dev\ATLAS_vbox_1.14_image.vdi': the media type 'MultiAttach' can only be attached to machines that were created with VirtualBox 4.0 or later
VBoxManage.exe: error: Details: code VBOX_E_INVALID_OBJECT_STATE (0x80bb0007), component SessionMachine, interface IMachine, callee IUnknown
VBoxManage.exe: error: Context: "AttachDevice(Bstr(pszCtl).raw(), port, device, DeviceType_HardDisk, pMedium2Mount)" at line 776 of file VBoxManageStorageController.cpp
2022-07-26 07:08:40 +02:00
computezrmle c283521107
extend the vboxmanage sleep interval 2022-07-23 10:37:58 +02:00
computezrmle 30660b16ac
Cleanup disk registration
VirtualBox occasionally moves the disk registration entry to the global media store in VirtualBox.xml.
In this case the disk entry must completely be removed and reattached.
Otherwise the disk can't be attached as multiattach parent.
2022-07-23 10:37:57 +02:00
computezrmle 40399f9ec0
Modify logging related to UUID change
The "expected error" (UUID already in use) should not be logged.
All unexpected errors should be logged.
2022-07-13 10:40:41 +02:00
computezrmle 3ad3bdd64e
Update vbox_vboxmanage.cpp
- replace "list hdds" with "showhdinfo"
- add function to automatically generate a new disk UUID
2022-07-11 20:26:42 +02:00
Tal Regev 5190a61241
Compile wasm with html 2022-06-11 21:25:16 +03:00
Vitalii Koshura 779b451815
Merge pull request #4378 from talregev/TalR_boinc_wasm
[Webassembly] Compile boinc client as webassembly
2022-06-09 16:12:17 +02:00
Tal Regev 32b9ccfe1d
Compile boinc as webassembly 2022-06-09 16:05:47 +03:00
Charlie Fenton aa2297e9dc Updat for Xcode 13: Mac VBoxWrapper build script & Xcode project 2022-06-09 04:21:46 -07:00
Tal Regev 02d4519032
Fix condor app for ubuntu 22.04 2022-05-01 18:08:27 +03:00
Vitalii Koshura fbe3449e8e
Remove outdated files
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-04-28 18:07:26 +02:00
Tal Regev f694ca6f12
linux apps compile gui with vcpkg 2022-04-23 12:54:08 +03:00
Vitalii Koshura c72b73446e
[vboxwrapper] Get rid of COM implementation in favor of more stable generic implementation
Signed-off-by: Vitalii Koshura <lestat.de.lionkur@gmail.com>
2022-03-03 20:15:41 +01:00
Vitalii Koshura ecdad90b10
Merge pull request #4646 from computezrmle/change_error_message
Change error message
2022-02-22 14:39:43 +01:00
Vitalii Koshura c347a42876
Merge pull request #4632 from computezrmle/default_disk_controller
Make sata/IntelAHCI the default virtual disk controller
2022-02-22 14:07:35 +01:00
Vitalii Koshura 1efd5aaa69
Merge pull request #4631 from computezrmle/forward_rtcuseutc
forward rtc setting from host to guest
2022-02-22 13:23:13 +01:00
computezrmle f6c77a5c90
Merge branch 'master' into default_disk_controller 2022-02-22 11:01:15 +01:00
Vitalii Koshura 7e3d1ea0c0
Merge pull request #4630 from computezrmle/increase_vbox_vram
Configure more vram to avoid VMs get stuck during boot
2022-02-22 09:58:30 +01:00
computezrmle 4929fadb04
Change error message
A volunteer recently complained it's bad English because it's past tense instead of present tense.
2022-02-21 14:01:21 +01:00
computezrmle 4da102a20d
Make sata/IntelAHCI the default virtual disk controller 2022-02-09 08:51:33 +01:00
computezrmle 9acaada1ca
forward rtc setting from host to guest 2022-02-08 21:04:02 +01:00
computezrmle 7105ca622d
forward rtc setting from host to guest 2022-02-08 21:00:28 +01:00
computezrmle 189c76f909
Tweak the VM's Graphics Controller Options 2022-02-07 11:51:01 +01:00
computezrmle 8329b80033
increase vram for vbox tasks 2022-02-07 11:50:32 +01:00
computezrmle 31431b566a
increase vram for vbox tasks 2022-02-07 11:44:24 +01:00
computezrmle 88cbbbe29b
Update vbox_vboxmanage.cpp
Output from "vboxmanage -q list hdds" contains paths that are compared with the path of a file.
Linux uses "/" as preferred directory separator while Windows uses "\".
This patch ensures the compare delivers the same result on both platforms.
2022-01-17 07:16:07 +01:00
computezrmle 28eaa41f86
Merge pull request #3 from computezrmle/patch-4
Add code to use VirtualBox differencing images
2022-01-13 14:07:02 +01:00
computezrmle d8f2921f57
Merge pull request #1 from computezrmle/patch-2
Introduce tag <multiattach_vdi_file>
2022-01-13 14:06:07 +01:00