Changeset 17868 in vbox
- Timestamp:
- Mar 14, 2009 3:59:29 PM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 44422
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r17833 r17868 2626 2626 break; 2627 2627 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; 2630 2662 2631 2663 case VirtualSystemDescriptionType_HardDiskControllerSCSI: … … 3412 3444 #ifdef VBOX_WITH_AHCI 3413 3445 // <const name="HardDiskControllerSATA" value="7" /> 3414 rc = GetStorageControllerByName(Bstr(" IDE"), pController.asOutParam());3415 strVbox = " ";3446 rc = GetStorageControllerByName(Bstr("SATA"), pController.asOutParam()); 3447 strVbox = "AHCI"; 3416 3448 if (SUCCEEDED(rc)) 3417 3449 { … … 3514 3546 break; 3515 3547 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; 3522 3552 3523 3553 default: -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r17865 r17868 2972 2972 <const name="DvdDrive" value="16" /> 2973 2973 <const name="HardDisk" value="17" /> 2974 <const name="OtherStorageDevice" value="20" /> 2974 2975 <const name="UsbController" value="23" /> 2975 2976 <const name="SoundCard" value="35" /> … … 3171 3172 see <link to="IAppliance" /> for an overview. 3172 3173 3173 Since importing the appliance will most probably involve copying and converting3174 Since exporting the appliance will most probably involve copying and converting 3174 3175 disk images, which can take a long time, this method operates asynchronously and 3175 3176 returns an IProgress object to allow the caller to monitor the progress.
Note:
See TracChangeset
for help on using the changeset viewer.