Can add TPM2 chipset
This commit is contained in:
@ -55,6 +55,7 @@ interface VMInfoInterface {
|
||||
iso_files: string[];
|
||||
disks: VMDisk[];
|
||||
networks: VMNetInterface[];
|
||||
tpm_module: boolean;
|
||||
}
|
||||
|
||||
export class VMInfo implements VMInfoInterface {
|
||||
@ -71,6 +72,7 @@ export class VMInfo implements VMInfoInterface {
|
||||
iso_files: string[];
|
||||
disks: VMDisk[];
|
||||
networks: VMNetInterface[];
|
||||
tpm_module: boolean;
|
||||
|
||||
constructor(int: VMInfoInterface) {
|
||||
this.name = int.name;
|
||||
@ -86,6 +88,7 @@ export class VMInfo implements VMInfoInterface {
|
||||
this.iso_files = int.iso_files;
|
||||
this.disks = int.disks;
|
||||
this.networks = int.networks;
|
||||
this.tpm_module = int.tpm_module;
|
||||
}
|
||||
|
||||
static NewEmpty(): VMInfo {
|
||||
@ -99,6 +102,7 @@ export class VMInfo implements VMInfoInterface {
|
||||
iso_files: [],
|
||||
disks: [],
|
||||
networks: [],
|
||||
tpm_module: true,
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -187,6 +187,17 @@ function VMDetailsInner(
|
||||
p.onChange?.();
|
||||
}}
|
||||
/>
|
||||
<br />
|
||||
|
||||
<CheckboxInput
|
||||
editable={p.editable}
|
||||
label="Enable TPM 2.0 module"
|
||||
checked={p.vm.tpm_module}
|
||||
onValueChange={(v) => {
|
||||
p.vm.tpm_module = v;
|
||||
p.onChange?.();
|
||||
}}
|
||||
/>
|
||||
|
||||
{p.vm.uuid && (
|
||||
<ResAutostartInput
|
||||
|
Reference in New Issue
Block a user