VirtualBox

Ignore:
Timestamp:
Jan 28, 2022 4:09:52 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149597
Message:

Main/Appliance: Allow users to specify a different storage controller
and/or controller port for hard disks when importing a VM. bugref:5027

'VBoxManage import foo.ova -n' has always presented a --controller
option for hard disks but the code to implement this had never been
implemented. This changeset adds the --controller functionality and
also includes a --port option for changing the controller port as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/ApplianceImpl.cpp

    r93115 r93480  
    18281828}
    18291829
     1830/**
     1831 * Private method; walks through the array of VirtualSystemDescriptionEntry entries
     1832 * and returns the one matching the given index.
     1833 */
     1834const VirtualSystemDescriptionEntry* VirtualSystemDescription::i_findByIndex(const uint32_t aIndex)
     1835{
     1836    vector<VirtualSystemDescriptionEntry>::const_iterator it;
     1837    for (it = m->maDescriptions.begin();
     1838         it != m->maDescriptions.end();
     1839         ++it)
     1840    {
     1841        const VirtualSystemDescriptionEntry &d = *it;
     1842        if (d.ulIndex == aIndex)
     1843            return &d;
     1844    }
     1845
     1846    return NULL;
     1847}
     1848
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