feat(virtualbox): add fallback for VBoxManage executable detection

Add an additional fallback check for the VBoxManage executable using the capitalized "VBoxManage" command name. This improves compatibility on systems where the executable may be case-sensitive or installed with a different naming convention, ensuring the VirtualBox manager can locate the necessary binary when the lowercase "vboxmanage" is not found.
This commit is contained in:
YueGuobin 2026-02-26 09:57:51 +08:00
parent 4519130a8c
commit c55fd9e066

View File

@ -68,6 +68,8 @@ class VirtualBox(BaseManager):
vboxmanage_path = vboxmanage_path_osx
if not vboxmanage_path:
vboxmanage_path = shutil.which("vboxmanage")
if not vboxmanage_path:
vboxmanage_path = shutil.which("VBoxManage")
if vboxmanage_path and not os.path.exists(vboxmanage_path):
log.error(f"VBoxManage path '{vboxmanage_path}' doesn't exist")