VirtualBox

Changeset 62393 in vbox for trunk


Ignore:
Timestamp:
Jul 21, 2016 11:43:09 AM (8 years ago)
Author:
vboxsync
Message:

Main/Appliance: fix generation of new MAC addresses on import (for appliances created by VirtualBox only, for all others the API will do the MAC address generation when enabling the interface)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/doc/manual/user_ChangeLogImpl.xml

    r62392 r62393  
    6868      <listitem>
    6969        <para>OVA: fix for checking certain signatures</para>
     70      </listitem>
     71
     72      <listitem>
     73        <para>OVA: fix MAC address generation for appliances created by
     74          VirtualBox (bug #15623)</para>
    7075      </listitem>
    7176
  • trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp

    r62363 r62393  
    35393539              || (fKeepNATMACs && it1->mode == NetworkAttachmentType_NAT)
    35403540              || (fKeepNATMACs && it1->mode == NetworkAttachmentType_NATNetwork)))
    3541             Host::i_generateMACAddress(it1->strMACAddress);
     3541            /* Force generation of new MAC address below. */
     3542            it1->strMACAddress.setNull();
    35423543    }
    35433544    /* Now iterate over all network entries. */
     
    35673568                    {
    35683569                        it1->fEnabled = true;
     3570                        if (it1->strMACAddress.isEmpty())
     3571                            Host::i_generateMACAddress(it1->strMACAddress);
    35693572                        it1->type = (NetworkAdapterType_T)vsdeNW->strVBoxCurrent.toUInt32();
    35703573                        break;
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