VirtualBox

Ignore:
Timestamp:
Oct 15, 2009 3:17:58 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
53544
Message:

VBoxManage: Added support for adding/removing storage controllers, and attaching/removing disks/drives to them

Location:
trunk/src/VBox/Frontends/VBoxManage
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/Makefile.kmk

    r22866 r23802  
    6565        VBoxManageList.cpp \
    6666        VBoxManageDisk.cpp \
     67        VBoxManageStorageController.cpp \
    6768        VBoxManageSnapshot.cpp \
    6869        VBoxManageUSB.cpp \
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp

    r23801 r23802  
    20312031        { "closemedium",      handleCloseMedium },
    20322032        { "unregisterimage",  handleCloseMedium }, /* backward compatiblity */
     2033        { "attachdisk",       handleAttachDisk },
     2034        { "storagectl",       handleStorageController },
    20332035        { "showhdinfo",       handleShowHardDiskInfo },
    20342036        { "showvdiinfo",      handleShowHardDiskInfo }, /* backward compatiblity */
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManage.h

    r23569 r23802  
    9292#define USAGE_DHCPSERVER            RT_BIT_64(47)
    9393#define USAGE_DUMPHDINFO            RT_BIT_64(48)
     94#define USAGE_ATTACHDISK            RT_BIT_64(49)
     95#define USAGE_STORAGECONTROLLER     RT_BIT_64(50)
    9496#define USAGE_ALL                   (~(uint64_t)0)
    9597/** @} */
     
    190192int handleCloseMedium(HandlerArg *a);
    191193
     194/* VBoxManageStorageController.cpp */
     195int handleAttachDisk(HandlerArg *a);
     196int handleStorageController(HandlerArg *a);
     197
    192198// VBoxManageImport.cpp
    193199int handleImportAppliance(HandlerArg *a);
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageHelp.cpp

    r23801 r23802  
    366366    }
    367367
     368    if (u64Cmd & USAGE_ATTACHDISK)
     369    {
     370        RTPrintf("VBoxManage attachdisk       <uuid|vmname>\n"
     371                 "                            --type <dvd|hdd|floppy>\n"
     372                 "                            --file <null|none|uuid|filename|host:<drive>>\n"
     373                 "                            --controller <name>\n"
     374                 "                            --port <number>\n"
     375                 "                            --device <number>\n"
     376                 "\n");
     377    }
     378
     379    if (u64Cmd & USAGE_STORAGECONTROLLER)
     380    {
     381        RTPrintf("VBoxManage storagectl       <uuid|vmname>\n"
     382                 "                            --storagectl <name>\n"
     383                 "                            [--add <ide/sata/scsi/floppy>]\n"
     384                 "                            [--type <LsiLogic/BusLogic/IntelAhci/PIIX3/PIIX4/ICH6/I82078>]\n"
     385                 "                            [--passthrough <on|off> --port <number> --device <number>]\n"
     386                 "                            [--sataideemulation<1-4> <1-30>]\n"
     387                 "                            [--sataportcount <1-30>]\n"
     388                 "                            [--remove]\n"
     389                 "\n");
     390    }
     391
    368392    if (u64Cmd & USAGE_SHOWHDINFO)
    369393    {
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