VirtualBox

Changeset 10396 in vbox for trunk


Ignore:
Timestamp:
Jul 9, 2008 9:03:34 AM (17 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
33052
Message:

New VBoxManage modifyvm switch for selecting PIIX3/4 IDE controller.

File:
1 edited

Legend:

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

    r10220 r10396  
    345345                 "                            [-boot<1-4> none|floppy|dvd|disk|net>]\n"
    346346                 "                            [-hd<a|b|d> none|<uuid>|<filename>]\n"
     347                 "                            [-idecontroller PIIX3|PIIX4]\n"
    347348#ifdef VBOX_WITH_AHCI
    348349                 "                            [-sata on|off]\n"
     
    37103711    char *dvd = NULL;
    37113712    char *dvdpassthrough = NULL;
     3713    char *idecontroller = NULL;
    37123714    char *floppy = NULL;
    37133715    char *audio = NULL;
     
    39523954            dvdpassthrough = argv[i];
    39533955        }
     3956        else if (strcmp(argv[i], "-idecontroller") == 0)
     3957        {
     3958            if (argc <= i + 1)
     3959                return errorArgument("Missing argument to '%s'", argv[i]);
     3960            i++;
     3961            idecontroller = argv[i];
     3962        }
    39543963        else if (strcmp(argv[i], "-floppy") == 0)
    39553964        {
     
    47604769
    47614770            CHECK_ERROR(dvdDrive, COMSETTER(Passthrough)(strcmp(dvdpassthrough, "on") == 0));
     4771        }
     4772        if (idecontroller)
     4773        {
     4774            if (RTStrICmp(idecontroller, "PIIX3") == 0)
     4775            {
     4776                CHECK_ERROR(biosSettings, COMSETTER(IDEControllerType)(IDEControllerType_PIIX3));
     4777            }
     4778            else if (RTStrICmp(idecontroller, "PIIX4") == 0)
     4779            {
     4780                CHECK_ERROR(biosSettings, COMSETTER(IDEControllerType)(IDEControllerType_PIIX4));
     4781            }
     4782            else
     4783            {
     4784                errorArgument("Invalid -idecontroller argument '%s'", idecontroller);
     4785                rc = E_FAIL;
     4786                break;
     4787            }
    47624788        }
    47634789        if (floppy)
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