[pve-devel] [PATCH v3 pve-manager 1/1] qemu: processor : set x86-64-v2-AES as default cputype for create wizard
Alexandre Derumier
aderumier at odiso.com
Tue Jun 6 17:04:39 CEST 2023
Signed-off-by: Alexandre Derumier <aderumier at odiso.com>
---
www/manager6/qemu/OSDefaults.js | 1 +
www/manager6/qemu/OSTypeEdit.js | 1 +
2 files changed, 2 insertions(+)
diff --git a/www/manager6/qemu/OSDefaults.js b/www/manager6/qemu/OSDefaults.js
index 5e588a58..58bc76ff 100644
--- a/www/manager6/qemu/OSDefaults.js
+++ b/www/manager6/qemu/OSDefaults.js
@@ -43,6 +43,7 @@ Ext.define('PVE.qemu.OSDefaults', {
virtio: 1,
},
scsihw: 'virtio-scsi-single',
+ cputype: 'x86-64-v2-AES',
};
// virtio-net is in kernel since 2.6.25
diff --git a/www/manager6/qemu/OSTypeEdit.js b/www/manager6/qemu/OSTypeEdit.js
index d9a0988e..3332a0bc 100644
--- a/www/manager6/qemu/OSTypeEdit.js
+++ b/www/manager6/qemu/OSTypeEdit.js
@@ -27,6 +27,7 @@ Ext.define('PVE.qemu.OSTypeInputPanel', {
me.setWidget('pveBusSelector', targetValues.busType);
me.setWidget('pveNetworkCardSelector', targetValues.networkCard);
+ me.setWidget('CPUModelSelector', targetValues.cputype);
var scsihw = targetValues.scsihw || '__default__';
this.getViewModel().set('current.scsihw', scsihw);
this.getViewModel().set('current.ostype', ostype);
--
2.30.2
More information about the pve-devel
mailing list