Add VirtIO SCSI support

This commit is contained in:
Stian Viskjer 2020-07-04 01:10:41 +02:00
parent d3676e92ee
commit 510435225a
6 changed files with 25 additions and 4 deletions

View File

@ -5719,7 +5719,8 @@ class vboxconnector {
'buslogic' => 'buslogic',
'lsilogicsas' => 'lsilogicsas',
'usb' => 'usb',
'nvme' => 'nvme'
'nvme' => 'nvme',
'virtioscsi' => 'virtioscsi'
);
if(!isset($cTypes[strtolower($cType)])) {

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.4 KiB

View File

@ -4824,9 +4824,13 @@ var vboxStorage = {
*/
getBusIconName: function(bus) {
if(vboxStorage[bus].displayInherit) bus = vboxStorage[bus].displayInherit
return bus.toLowerCase();
if (vboxStorage[bus].iconName) {
return vboxStorage[bus].iconName;
} else {
return bus.toLowerCase();
}
},
IDE: {
maxPortCount: 2,
limitOneInstance: true,
@ -4882,6 +4886,7 @@ var vboxStorage = {
return s;
}
},
SAS: {
maxPortCount: 8,
maxDevicesPerPortCount: 1,
@ -4897,7 +4902,6 @@ var vboxStorage = {
},
displayInherit: 'SATA'
},
Floppy: {
maxPortCount: 1,
@ -4939,6 +4943,22 @@ var vboxStorage = {
return s;
},
displayInherit: 'IDE'
},
VirtioSCSI: {
iconName: 'virtio_scsi',
maxPortCount: 256,
maxDevicesPerPortCount: 1,
types: ['VirtioSCSI'],
driveTypes: ['disk'],
slotName: function(p,d) { return trans('virtio-scsi Port %1','VBoxGlobal', null, 'StorageSlot').replace('%1',p); },
slots: function() {
var s = {};
for(var i = 0; i < 8; i++) {
s[i+'-0'] = trans('virtio-scsi Port %1','VBoxGlobal', null, 'StorageSlot').replace('%1',i);
}
return s;
}
}
};