mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-11-03 11:51:11 +00:00
5b75a4a80d
Move the check for boot elements into a separate function and remove its dependency on the parser-supplied bootHash table. Reconstructing the hash table from the domain definition effectively duplicates the check for duplicate boot order values, also present in virDomainDeviceBootParseXML. Now it will also be run on domains created by other means than XML parsing, since it will be run even for code paths that did not supply the bootHash table before. Signed-off-by: Ján Tomko <jtomko@redhat.com>
36 lines
1.1 KiB
XML
36 lines
1.1 KiB
XML
<domain type='xen' id='15'>
|
|
<name>fvtest</name>
|
|
<uuid>596a5d21-71f4-8fb2-e068-e2386a5c413e</uuid>
|
|
<memory unit='KiB'>430080</memory>
|
|
<currentMemory unit='KiB'>430080</currentMemory>
|
|
<vcpu placement='static'>2</vcpu>
|
|
<os>
|
|
<type>hvm</type>
|
|
<loader type='rom'>/usr/lib/xen/boot/hvmloader</loader>
|
|
<kernel>/var/lib/xen/vmlinuz.2Dn2YT</kernel>
|
|
<initrd>/var/lib/xen/initrd.img.0u-Vhq</initrd>
|
|
<cmdline> method=http://download.fedora.devel.redhat.com/pub/fedora/linux/core/test/5.91/x86_64/os </cmdline>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<clock offset='variable' adjustment='0' basis='utc'/>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<driver name='file' type='raw'/>
|
|
<source file='/root/some.img'/>
|
|
<target dev='xvda' bus='xen'/>
|
|
</disk>
|
|
<serial type='pty'>
|
|
<target port='0'/>
|
|
</serial>
|
|
<console type='pty'>
|
|
<target type='serial' port='0'/>
|
|
</console>
|
|
<input type='mouse' bus='ps2'/>
|
|
<input type='keyboard' bus='ps2'/>
|
|
<memballoon model='xen'/>
|
|
</devices>
|
|
</domain>
|