VirtualBox

Changeset 37531 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Jun 17, 2011 12:12:29 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
72367
Message:

Main;FE;CloneVM: add clone options; regenerate MACs of all network adapters dependent of the user option; docs

Location:
trunk/src/VBox/Frontends
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageMisc.cpp

    r37449 r37531  
    392392                                                 trgMachine.asOutParam()),
    393393                    RTEXITCODE_FAILURE);
     394
     395    /* Clone options */
     396    com::SafeArray<CloneOptions_T> options;
     397    options.push_back(CloneOptions_KeepNATMACs);
     398
     399    /* Start the cloning */
    394400    ComPtr<IProgress> progress;
    395401    CHECK_ERROR_RET(srcMachine, CloneTo(trgMachine,
    396402                                        mode,
    397                                         FALSE,
     403                                        ComSafeArrayAsInParam(options),
    398404                                        progress.asOutParam()),
    399405                    RTEXITCODE_FAILURE);
  • trunk/src/VBox/Frontends/VirtualBox/src/wizards/clonevm/UICloneVMWizard.cpp

    r37468 r37531  
    8080    }
    8181
     82    /* NAT network adapters should keep there MAC address to prevent any
     83     * reactivation. For the other modes they should be regenerated to prevent
     84     * address conflicts in the network. */
     85    QVector<KCloneOptions> options;
     86    options.append(KCloneOptions_KeepNATMACs);
     87
    8288    /* Start cloning. */
    83     CProgress progress = m_machine.CloneTo(cloneMachine, mode, false);
     89    CProgress progress = m_machine.CloneTo(cloneMachine, mode, options);
    8490    if (!m_machine.isOk())
    8591    {
Note: See TracChangeset for help on using the changeset viewer.

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