VirtualBox

Changeset 17868 in vbox


Ignore:
Timestamp:
Mar 14, 2009 3:59:29 PM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
44422
Message:

OVF: fixed exporting of SATA & SCSI controllers

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

Legend:

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

    r17833 r17868  
    26262626                        break;
    26272627
    2628 //                         case VirtualSystemDescriptionType_HardDiskControllerSATA:       // @todo
    2629 //                         break;
     2628                        case VirtualSystemDescriptionType_HardDiskControllerSATA:
     2629                            /*  <Item>
     2630                                    <rasd:Caption>sataController0</rasd:Caption>
     2631                                    <rasd:Description>SATA Controller</rasd:Description>
     2632                                    <rasd:InstanceId>4</rasd:InstanceId>
     2633                                    <rasd:ResourceType>20</rasd:ResourceType>
     2634                                    <rasd:ResourceSubType>ahci</rasd:ResourceSubType>
     2635                                    <rasd:Address>0</rasd:Address>
     2636                                    <rasd:BusNumber>0</rasd:BusNumber>
     2637                                </Item>
     2638                            */
     2639                            if (uLoop == 1)
     2640                            {
     2641                                strDescription = "SATA Controller";
     2642                                strCaption = "sataController0";
     2643                                type = OVFResourceType_OtherStorageDevice; // 20
     2644                                // it seems that OVFTool always writes these two, and since we can only
     2645                                // have one SATA controller, we'll use this as well
     2646                                lAddress = 0;
     2647                                lBusNumber = 0;
     2648
     2649                                if (    desc.strVbox.isEmpty()      // AHCI is the default in VirtualBox
     2650                                     || (!desc.strVbox.compare("ahci", Utf8Str::CaseInsensitive))
     2651                                   )
     2652                                    strResourceSubType = "AHCI";
     2653                                else
     2654                                    throw setError(VBOX_E_NOT_SUPPORTED,
     2655                                                   tr("Invalid config string \"%s\" in SATA controller"), desc.strVbox.c_str());
     2656
     2657                                // remember this ID
     2658                                idSATAController = ulInstanceID;
     2659                                lSATAControllerIndex = lIndexThis;
     2660                            }
     2661                        break;
    26302662
    26312663                        case VirtualSystemDescriptionType_HardDiskControllerSCSI:
     
    34123444#ifdef VBOX_WITH_AHCI
    34133445//     <const name="HardDiskControllerSATA" value="7" />
    3414         rc = GetStorageControllerByName(Bstr("IDE"), pController.asOutParam());
    3415         strVbox = "";
     3446        rc = GetStorageControllerByName(Bstr("SATA"), pController.asOutParam());
     3447        strVbox = "AHCI";
    34163448        if (SUCCEEDED(rc))
    34173449        {
     
    35143546                break;
    35153547
    3516 //                 case StorageBus::SCSI:
    3517 //                         // mhda.busType = StorageBus_SCSI;
    3518 //                     throw setError(VBOX_E_NOT_SUPPORTED,
    3519 //                                 tr("SCSI controller support is not available yet in VirtualBox"));
    3520 //                         // @todo
    3521 //                 break;
     3548                case StorageBus::SCSI:
     3549                    lChannelVsys = lChannel;        // should be between 0 and 15
     3550                    lControllerVsys = lSCSIControllerIndex;
     3551                break;
    35223552
    35233553                default:
  • trunk/src/VBox/Main/idl/VirtualBox.xidl

    r17865 r17868  
    29722972    <const name="DvdDrive" value="16" />
    29732973    <const name="HardDisk" value="17" />
     2974    <const name="OtherStorageDevice" value="20" />
    29742975    <const name="UsbController" value="23" />
    29752976    <const name="SoundCard" value="35" />
     
    31713172          see <link to="IAppliance" /> for an overview.
    31723173
    3173           Since importing the appliance will most probably involve copying and converting
     3174          Since exporting the appliance will most probably involve copying and converting
    31743175          disk images, which can take a long time, this method operates asynchronously and
    31753176          returns an IProgress object to allow the caller to monitor the progress.
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