- Timestamp:
- Oct 28, 2021 8:57:39 AM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/ValidationKit/testdriver/vbox.py
r92123 r92126 2942 2942 reporter.logXcpt(); 2943 2943 2944 # Needed to reach the host (localhost) from the guest. See xTracker #9896. 2945 for iSlot in range(0, 32): 2946 try: 2947 oNic = oVM.getNetworkAdapter(iSlot); 2948 if not oNic.enabled: 2944 if self.fpApiVer >= 7.0: 2945 # Needed to reach the host (localhost) from the guest. See xTracker #9896. 2946 for iSlot in range(0, 32): 2947 try: 2948 oNic = oVM.getNetworkAdapter(iSlot); 2949 if not oNic.enabled: 2950 continue; 2951 if oNic.attachmentType == vboxcon.NetworkAttachmentType_NAT: 2952 sAdpName = self.getNetworkAdapterNameFromType(oNic); 2953 reporter.log2('Enabling "LocalhostReachable" (NAT) for network adapter "%s" in slot %d' % (sAdpName, iSlot)); 2954 sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % \ 2955 iSlot, sAdpName; 2956 self.oVBox.setExtraData(sKey, '1'); 2957 except: 2949 2958 continue; 2950 if oNic.attachmentType == vboxcon.NetworkAttachmentType_NAT:2951 reporter.log2('Enabling "LocalhostReachable" (NAT) for network adapter in slot %d' % (iSlot));2952 sKey = 'VBoxInternal/Devices/%s/%d/LUN#0/Config/LocalhostReachable' % \2953 iSlot, self.getNetworkAdapterNameFromType(oNic);2954 self.oVBox.setExtraData(sKey, '1');2955 except:2956 continue;2957 2959 2958 2960 # The UUID for the name.
Note:
See TracChangeset
for help on using the changeset viewer.