Merge pull request #2618 from yueguobin/fix-port-nonename-error

feat(virtualbox): add fallback for VBoxManage executable detection
This commit is contained in:
Jeremy Grossmann 2026-02-27 00:39:31 +08:00 committed by GitHub
commit a0116902a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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")