Changeset 16302 in vbox
- Timestamp:
- Jan 28, 2009 12:25:59 PM (16 years ago)
- Location:
- trunk/src/VBox/Main
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/ApplianceImpl.cpp
r16299 r16302 163 163 164 164 CIMOSType_T cimos; 165 string strVirtualSystemType; 165 string strVirtualSystemType; // generic hardware description; OVF says this can be something like "vmx-4" or "xen"; 166 // VMware Workstation 6.5 is "vmx-07" 166 167 167 168 HardwareItemsMap mapHardwareItems; // map of virtual hardware items, sorted by unique instance ID … … 1186 1187 else if (!RTStrICmp(hdc.strControllerType.c_str(), "PIIX4")) 1187 1188 hdcController = IDEControllerType_PIIX4; 1188 vsd->addEntry(VirtualSystemDescriptionType_Hard diskControllerIDE, toString<uint32_t>(hdc.idController), hdc.strControllerType, toString<ULONG>(hdcController));1189 vsd->addEntry(VirtualSystemDescriptionType_HardDiskControllerIDE, toString<uint32_t>(hdc.idController), hdc.strControllerType, toString<ULONG>(hdcController)); 1189 1190 break; 1190 1191 } … … 1194 1195 // @todo: figure out the SATA types 1195 1196 /* We only support a plain AHCI controller, so use them always */ 1196 vsd->addEntry(VirtualSystemDescriptionType_Hard diskControllerSATA, toString<uint32_t>(hdc.idController), hdc.strControllerType, "AHCI");1197 vsd->addEntry(VirtualSystemDescriptionType_HardDiskControllerSATA, toString<uint32_t>(hdc.idController), hdc.strControllerType, "AHCI"); 1197 1198 break; 1198 1199 } … … 1217 1218 hdcController = "BusLogic"; 1218 1219 # endif /* VBOX_WITH_BUSLOGIC */ 1219 vsd->addEntry(VirtualSystemDescriptionType_Hard diskControllerSCSI, toString<uint32_t>(hdc.idController), hdc.strControllerType, hdcController);1220 vsd->addEntry(VirtualSystemDescriptionType_HardDiskControllerSCSI, toString<uint32_t>(hdc.idController), hdc.strControllerType, hdcController); 1220 1221 break; 1221 1222 } … … 1264 1265 /* Make the path unique to the VBox installation */ 1265 1266 searchUniqueDiskImageFilePath(path); 1266 vsd->addEntry(VirtualSystemDescriptionType_Hard disk, hd.strDiskId, di.strHref, path);1267 vsd->addEntry(VirtualSystemDescriptionType_HardDiskImage, hd.strDiskId, di.strHref, path); 1267 1268 } 1268 1269 } … … 1396 1397 1397 1398 /* Hard disk controller IDE */ 1398 list<VirtualSystemDescriptionEntry> vsdeHDCIDE = vsd->findByType(VirtualSystemDescriptionType_Hard diskControllerIDE);1399 list<VirtualSystemDescriptionEntry> vsdeHDCIDE = vsd->findByType(VirtualSystemDescriptionType_HardDiskControllerIDE); 1399 1400 /* @todo: we support one IDE controller only */ 1400 1401 if (vsdeHDCIDE.size() > 0) … … 1411 1412 #ifdef VBOX_WITH_AHCI 1412 1413 /* Hard disk controller SATA */ 1413 list<VirtualSystemDescriptionEntry> vsdeHDCSATA = vsd->findByType(VirtualSystemDescriptionType_Hard diskControllerSATA);1414 list<VirtualSystemDescriptionEntry> vsdeHDCSATA = vsd->findByType(VirtualSystemDescriptionType_HardDiskControllerSATA); 1414 1415 /* @todo: we support one SATA controller only */ 1415 1416 if (vsdeHDCSATA.size() > 0) … … 1433 1434 #ifdef VBOX_WITH_SCSI 1434 1435 /* Hard disk controller SCSI */ 1435 list<VirtualSystemDescriptionEntry> vsdeHDCSCSI = vsd->findByType(VirtualSystemDescriptionType_Hard diskControllerSCSI);1436 list<VirtualSystemDescriptionEntry> vsdeHDCSCSI = vsd->findByType(VirtualSystemDescriptionType_HardDiskControllerSCSI); 1436 1437 /* @todo: do we support more than one SCSI controller? */ 1437 1438 if (vsdeHDCSCSI.size() > 0) … … 1447 1448 1448 1449 /* Create the hard disks & connect them to the appropriate controllers. */ 1449 list<VirtualSystemDescriptionEntry> vsdeHD = vsd->findByType(VirtualSystemDescriptionType_Hard disk);1450 list<VirtualSystemDescriptionEntry> vsdeHD = vsd->findByType(VirtualSystemDescriptionType_HardDiskImage); 1450 1451 if (vsdeHD.size() > 0) 1451 1452 { -
trunk/src/VBox/Main/idl/VirtualBox.xidl
r16298 r16302 2992 2992 <const name="CPU" value="3" /> 2993 2993 <const name="Memory" value="4" /> 2994 <const name="HarddiskControllerIDE" value="5" /> 2995 <const name="HarddiskControllerSATA" value="6" /> 2996 <const name="HarddiskControllerSCSI" value="7" /> 2997 <const name="Harddisk" value="8" /> 2998 <const name="NetworkAdapter" value="9" /> 2994 <const name="HardDiskControllerIDE" value="5" /> 2995 <const name="HardDiskControllerSATA" value="6" /> 2996 <const name="HardDiskControllerSCSI" value="7" /> 2997 <const name="HardDiskImage" value="8" /> 2998 <const name="CDROM" value="9" /> 2999 <const name="Floppy" value="10" /> 3000 <const name="NetworkAdapter" value="11" /> 2999 3001 3000 3002 </enum>
Note:
See TracChangeset
for help on using the changeset viewer.