Skip to content

Commit

Permalink
Update KVM2 configuration for UEFI
Browse files Browse the repository at this point in the history
  • Loading branch information
klaases committed Feb 16, 2022
1 parent 296920b commit 1be7018
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions pkg/drivers/kvm/domain_definition_x86.go
Original file line number Diff line number Diff line change
Expand Up @@ -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'>
Expand Down

0 comments on commit 1be7018

Please sign in to comment.