Update KVM2 configuration for UEFI

pull/13622/head
klaases 2022-02-16 21:03:30 +00:00
parent 296920b757
commit 1be70185bd
1 changed files with 5 additions and 3 deletions

View File

@ -40,15 +40,17 @@ const domainTmpl = `
{{end}}
</cpu>
<os>
<type>hvm</type>
<type machine="q35">hvm</type>
<loader readonly='yes' type='pflash'>/usr/share/OVMF/OVMF_CODE.fd</loader>
<nvram>/usr/share/OVMF/OVMF_VARS.fd</nvram>s
<boot dev='cdrom'/>
<boot dev='hd'/>
<bootmenu enable='no'/>
<bootmenu enable='yes'/>
</os>
<devices>
<disk type='file' device='cdrom'>
<source file='{{.ISO}}'/>
<target dev='hdc' bus='scsi'/>
<target dev='sdc' bus='sata'/>
<readonly/>
</disk>
<disk type='file' device='disk'>