{ desc: '2.4 Kernel', val: 'l24' },
],
'Microsoft Windows': [
+ { desc: '11/2022', val: 'win11' },
{ desc: '10/2016/2019', val: 'win10' },
{ desc: '8.x/2012/2012r2', val: 'win8' },
{ desc: '7/2008r2', val: 'win7' },
'pveQemuBiosSelector': {
change: 'biosChange',
},
+ '#': {
+ afterrender: 'setMachine',
+ },
+ },
+
+ setMachine: function() {
+ let me = this;
+ let vm = this.getViewModel();
+ let ostype = vm.get('current.ostype');
+ if (ostype === 'win11') {
+ me.lookup('machine').setValue('q35');
+ me.lookup('bios').setValue('ovmf');
+ me.lookup('addtpmbox').setValue(true);
+ }
},
},
{
xtype: 'proxmoxKVComboBox',
name: 'machine',
+ reference: 'machine',
value: '__default__',
fieldLabel: gettext('Machine'),
comboItems: [
{
xtype: 'pveQemuBiosSelector',
name: 'bios',
+ reference: 'bios',
value: '__default__',
fieldLabel: 'BIOS',
},