VirtualBox

Changeset 101472 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Oct 17, 2023 11:45:00 AM (16 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
159541
Message:

FE/VBoxManage,FE/Qt,Main/{VirtualBox.xidl,Appliance}: Add the ability to
export and import VMs which contain an NVMe storage controller.
bugref:10159 ticketref:19320

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/ovfreader.cpp

    r99739 r101472  
    653653                        break;
    654654
    655                     case ResourceType_OtherStorageDevice:        // 20       SATA controller
     655                    case ResourceType_OtherStorageDevice:        // 20       SATA/Virtio-SCSI/NVMe controller
    656656                    {
    657657                        /* <Item>
     
    678678                        {
    679679                            HardDiskController hdc;
    680                             hdc.system = HardDiskController::VIRTIOSCSI; /**< r=klaus: GUI needs to learn about this in the import dialog, currently shown as "Unknown Hardware Item". */
     680                            hdc.system = HardDiskController::VIRTIOSCSI;
    681681                            hdc.strIdController = i.strInstanceID;
    682682                            //<rasd:ResourceSubType>VirtioSCSI</rasd:ResourceSubType>
     
    684684                            vsys.mapControllers[i.strInstanceID] = hdc;
    685685                        }
     686                        else if (   i.strResourceSubType.compare("NVMe", RTCString::CaseInsensitive) == 0
     687                                 || i.strResourceSubType.compare("vmware.nvme.controller", RTCString::CaseInsensitive) == 0 )
     688                        {
     689                            HardDiskController hdc;
     690                            hdc.system = HardDiskController::NVMe;
     691                            hdc.strIdController = i.strInstanceID;
     692                            //<rasd:ResourceSubType>NVMe</rasd:ResourceSubType>
     693                            hdc.strControllerType = i.strResourceSubType;
     694                            vsys.mapControllers[i.strInstanceID] = hdc;
     695                        }
    686696                        else
    687                             throw OVFLogicError(N_("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI or virtio-scsi controllers only, line %d (subtype:%s)"),
     697                            throw OVFLogicError(N_("Error reading \"%s\": Host resource of type \"Other Storage Device (%d)\" is supported with SATA AHCI or Virtio-SCSI or NVMe controllers only, line %d (subtype:%s)"),
    688698                                                m_strPath.c_str(),
    689699                                                ResourceType_OtherStorageDevice,
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette