From 5696d1ccb750c4fe8f61149d1e620fad46b07150 Mon Sep 17 00:00:00 2001 From: grossmj Date: Mon, 7 Nov 2022 23:59:33 +0800 Subject: [PATCH] Fix issues with VMnet interface on macOS >= 11.0. Ref #3381 --- gns3server/compute/vmware/__init__.py | 1 + gns3server/compute/vmware/vmware_vm.py | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/gns3server/compute/vmware/__init__.py b/gns3server/compute/vmware/__init__.py index 36121fb0..16ff2500 100644 --- a/gns3server/compute/vmware/__init__.py +++ b/gns3server/compute/vmware/__init__.py @@ -380,6 +380,7 @@ class VMware(BaseManager): if vmnet in vmnet_interfaces and self.is_managed_vmnet(vmnet) is False: vmnet_interfaces.remove(vmnet) + log.debug("VMnet interfaces found: ", vmnet_interfaces) self._vmnets = vmnet_interfaces @property diff --git a/gns3server/compute/vmware/vmware_vm.py b/gns3server/compute/vmware/vmware_vm.py index db8c6b87..52ebcea3 100644 --- a/gns3server/compute/vmware/vmware_vm.py +++ b/gns3server/compute/vmware/vmware_vm.py @@ -465,6 +465,10 @@ class VMwareVM(BaseNode): try: if self._ubridge_hypervisor: + if parse_version(platform.mac_ver()[0]) >= parse_version("11.0.0"): + # give VMware some time to create the bridge interfaces, so they can be found + # by psutil and used by uBridge + await asyncio.sleep(1) for adapter_number in range(0, self._adapters): nio = self._ethernet_adapters[adapter_number].get_nio(0) if nio: