mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
[KVM] Allow passing the OS type machine for KVM XML domains through VM setting (#11569)
* [KVM] Allow passing OS type machine to XML domains
This commit is contained in:
parent
23a53e213e
commit
96cabf7e43
@ -41,6 +41,7 @@ public interface VmDetailConstants {
|
|||||||
String KVM_VNC_PORT = "kvm.vnc.port";
|
String KVM_VNC_PORT = "kvm.vnc.port";
|
||||||
String KVM_VNC_ADDRESS = "kvm.vnc.address";
|
String KVM_VNC_ADDRESS = "kvm.vnc.address";
|
||||||
String KVM_VNC_PASSWORD = "kvm.vnc.password";
|
String KVM_VNC_PASSWORD = "kvm.vnc.password";
|
||||||
|
String KVM_GUEST_OS_MACHINE_TYPE = "kvm.guest.os.machine.type";
|
||||||
|
|
||||||
// KVM specific, custom virtual GPU hardware
|
// KVM specific, custom virtual GPU hardware
|
||||||
String VIDEO_HARDWARE = "video.hardware";
|
String VIDEO_HARDWARE = "video.hardware";
|
||||||
|
|||||||
@ -3306,6 +3306,9 @@ public class LibvirtComputingResource extends ServerResourceBase implements Serv
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
guest.setIothreads(customParams.containsKey(VmDetailConstants.IOTHREADS));
|
guest.setIothreads(customParams.containsKey(VmDetailConstants.IOTHREADS));
|
||||||
|
if (customParams.containsKey(VmDetailConstants.KVM_GUEST_OS_MACHINE_TYPE)) {
|
||||||
|
guest.setMachineType(customParams.get(VmDetailConstants.KVM_GUEST_OS_MACHINE_TYPE));
|
||||||
|
}
|
||||||
}
|
}
|
||||||
guest.setUuid(uuid);
|
guest.setUuid(uuid);
|
||||||
if(!isGuestS390x()) {
|
if(!isGuestS390x()) {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user