kvm: fix ide controller for rocky/alma vms (#8247)

This commit is contained in:
Wei Zhou 2023-12-06 15:05:49 +01:00 committed by GitHub
parent 4c91cc7c6f
commit db6dd52f44
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3979,7 +3979,8 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
return DiskDef.DiskBus.SCSI;
} else if (platformEmulator.contains("Ubuntu") ||
StringUtils.startsWithAny(platformEmulator,
"Fedora", "CentOS", "Red Hat Enterprise Linux", "Debian GNU/Linux", "FreeBSD", "Oracle", "Other PV")) {
"Fedora", "CentOS", "Red Hat Enterprise Linux", "Debian GNU/Linux", "FreeBSD", "Oracle",
"Rocky Linux", "AlmaLinux", "Other PV")) {
return DiskDef.DiskBus.VIRTIO;
} else if (isUefiEnabled && StringUtils.startsWithAny(platformEmulator, "Windows", "Other")) {
return DiskDef.DiskBus.SATA;