Changeset 82367 in vbox
- Timestamp:
- Dec 4, 2019 9:02:05 AM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 135197
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-server/ApplianceImplImport.cpp
r82365 r82367 1256 1256 instanceDescription->AddDescription(VirtualSystemDescriptionType_CloudProfileName, 1257 1257 Bstr(profileName).raw(), 1258 Bstr(profileName).raw());1258 NULL); 1259 1259 1260 1260 Utf8StrFmt strSetting("VM with id %s imported from the cloud provider %s", … … 1263 1263 instanceDescription->AddDescription(VirtualSystemDescriptionType_Description, 1264 1264 Bstr(strSetting).raw(), 1265 Bstr(strSetting).raw());1265 NULL); 1266 1266 } 1267 1267 catch (HRESULT arc) … … 1386 1386 vsd->AddDescription(VirtualSystemDescriptionType_OS, 1387 1387 Bstr(strOsType).raw(), 1388 Bstr(strOsType).raw());1388 NULL); 1389 1389 } 1390 1390 } … … 1395 1395 vsd->AddDescription(VirtualSystemDescriptionType_OS, 1396 1396 Bstr(strOsType).raw(), 1397 Bstr(strOsType).raw());1397 NULL); 1398 1398 } 1399 1399 … … 1435 1435 vsd->AddDescription(VirtualSystemDescriptionType_Name, 1436 1436 Bstr(strVMName).raw(), 1437 Bstr(strVMName).raw());1437 NULL); 1438 1438 /* No check again because it would be weird if a VM with such unique name exists */ 1439 1439 } … … 1771 1771 vsd->AddDescription(VirtualSystemDescriptionType_HardDiskControllerSATA, 1772 1772 Bstr(hdc.strControllerType).raw(), 1773 Bstr(hdc.strControllerType).raw());1773 NULL); 1774 1774 } 1775 1775 } … … 1786 1786 vsd->AddDescription(VirtualSystemDescriptionType_SoundCard, 1787 1787 Bstr(vsys.strSoundCardType).raw(), 1788 Bstr(vsys.strSoundCardType).raw());1788 NULL); 1789 1789 } 1790 1790 … … 3939 3939 } 3940 3940 3941 if (stack.strFirmwareType.isNotEmpty()) 3942 { 3943 FirmwareType_T firmwareType = FirmwareType_BIOS; 3944 if (stack.strFirmwareType.contains("EFI")) 3945 { 3946 if (stack.strFirmwareType.contains("32")) 3947 firmwareType = FirmwareType_EFI32; 3948 if (stack.strFirmwareType.contains("64")) 3949 firmwareType = FirmwareType_EFI64; 3950 else 3951 firmwareType = FirmwareType_EFI; 3952 } 3953 rc = pNewMachine->COMSETTER(FirmwareType)(firmwareType); 3954 if (FAILED(rc)) throw rc; 3955 } 3956 3941 3957 if (!stack.strAudioAdapter.isEmpty()) 3942 3958 if (stack.strAudioAdapter.compare("null", Utf8Str::CaseInsensitive) != 0) … … 5180 5196 stack.strOsTypeVBox = vsdeOS.front()->strVBoxCurrent; 5181 5197 5198 // Firmware 5199 std::list<VirtualSystemDescriptionEntry*> firmware = vsdescThis->i_findByType(VirtualSystemDescriptionType_BootingFirmware); 5200 if (firmware.size() != 1) 5201 stack.strFirmwareType = "BIOS";//try default BIOS type 5202 else 5203 stack.strFirmwareType = firmware.front()->strVBoxCurrent; 5204 5182 5205 // CPU count 5183 5206 std::list<VirtualSystemDescriptionEntry*> vsdeCPU = vsdescThis->i_findByType(VirtualSystemDescriptionType_CPU);
Note:
See TracChangeset
for help on using the changeset viewer.