VirtualBox

Changeset 92126 in vbox for trunk/src


Ignore:
Timestamp:
Oct 28, 2021 8:57:39 AM (3 years ago)
Author:
vboxsync
Message:

Audio/Validation Kit: More code needed for setting the required CFGM key for test drivers using NAT attachment types [only handle trunk for now]. ​bugref:9896 bugref:10008

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/ValidationKit/testdriver/vbox.py

    r92123 r92126  
    29422942                reporter.logXcpt();
    29432943
    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:
    29492958                    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;
    29572959
    29582960        # The UUID for the name.
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette