mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 20:01:16 +00:00
68bf13dbef
Up to now, users can configure BIOS via the <loader/> element. With the upcoming implementation of UEFI this is not enough as BIOS and UEFI are conceptually different. For instance, while BIOS is ROM, UEFI is programmable flash (although all writes to code section are denied). Therefore we need new attribute @type which will differentiate the two. Then, new attribute @readonly is introduced to reflect the fact that some images are RO. Moreover, the OVMF (which is going to be used mostly), works in two modes: 1) Code and UEFI variable store is mixed in one file. 2) Code and UEFI variable store is separated in two files The latter has advantage of updating the UEFI code without losing the configuration. However, in order to represent the latter case we need yet another XML element: <nvram/>. Currently, it has no additional attributes, it's just a bare element containing path to the variable store file. Signed-off-by: Michal Privoznik <mprivozn@redhat.com> Acked-by: Laszlo Ersek <lersek@redhat.com> Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
50 lines
1.4 KiB
XML
50 lines
1.4 KiB
XML
<domain type='xen' id='1'>
|
|
<name>fvtest</name>
|
|
<uuid>b5d70dd2-75cd-aca5-1776-9660b059d8bc</uuid>
|
|
<memory unit='KiB'>409600</memory>
|
|
<currentMemory unit='KiB'>409600</currentMemory>
|
|
<vcpu placement='static'>1</vcpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
<loader type='rom'>/usr/lib/xen/boot/hvmloader</loader>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<features>
|
|
<acpi/>
|
|
</features>
|
|
<clock offset='utc' adjustment='reset'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>restart</on_reboot>
|
|
<on_crash>restart</on_crash>
|
|
<devices>
|
|
<emulator>/usr/lib64/xen/bin/qemu-dm</emulator>
|
|
<disk type='file' device='disk'>
|
|
<driver name='file'/>
|
|
<source file='/root/foo.img'/>
|
|
<backingStore/>
|
|
<target dev='hda' bus='ide'/>
|
|
</disk>
|
|
<disk type='file' device='cdrom'>
|
|
<driver name='file'/>
|
|
<source file='/root/boot.iso'/>
|
|
<backingStore/>
|
|
<target dev='hdc' bus='ide'/>
|
|
<readonly/>
|
|
</disk>
|
|
<interface type='bridge'>
|
|
<mac address='00:16:3e:1b:b1:47'/>
|
|
<source bridge='xenbr0'/>
|
|
<script path='vif-bridge'/>
|
|
<target dev='vif1.0'/>
|
|
</interface>
|
|
<parallel type='tcp'>
|
|
<source mode='connect' host='localhost' service='9999'/>
|
|
<protocol type='raw'/>
|
|
<target port='0'/>
|
|
</parallel>
|
|
<input type='mouse' bus='ps2'/>
|
|
<input type='keyboard' bus='ps2'/>
|
|
<graphics type='vnc' port='5901' autoport='no'/>
|
|
</devices>
|
|
</domain>
|