mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-26 23:55:23 +00:00
eb3143154e
Kernel cmdline args can be passed to xen pv domains even when a bootloader is specified. The current config-to-sxpr mapping ignores cmdline when bootloader is present. Since the xend sub-driver is used with many xen toolstack versions, this patch takes conservative approach of adding an else block to existing !def->os.bootloader, and only appends sxpr if def->os.cmdline is non-NULL. V2: Fix existing testcase broken by this patch and add new testcases
23 lines
590 B
XML
23 lines
590 B
XML
<domain type='xen' id='15'>
|
|
<name>pvtest</name>
|
|
<uuid>596a5d2171f48fb2e068e2386a5c413e</uuid>
|
|
<bootloader>/usr/bin/pygrub</bootloader>
|
|
<bootloader_args>-q</bootloader_args>
|
|
<os>
|
|
<type>linux</type>
|
|
<cmdline>xenfb.video=8,1280,1024</cmdline>
|
|
</os>
|
|
<memory>430080</memory>
|
|
<vcpu>2</vcpu>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<devices>
|
|
<disk type='file' device='disk'>
|
|
<source file='/root/some.img'/>
|
|
<target dev='xvda'/>
|
|
</disk>
|
|
<console tty='/dev/pts/4'/>
|
|
</devices>
|
|
</domain>
|