VirtualBox

Ignore:
Timestamp:
Jun 17, 2011 12:12:29 PM (13 years ago)
Author:
vboxsync
Message:

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

File:
1 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);
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