mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-25 23:25:24 +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
8 lines
428 B
Plaintext
8 lines
428 B
Plaintext
(vm (name 'pvtest')(memory 384)(maxmem 512)(vcpus 1)\
|
|
(uuid '49a0c6ff-c066-5392-6498-3632d093c2e7')(bootloader '/usr/bin/pygrub')\
|
|
(on_poweroff 'destroy')(on_reboot 'restart')(on_crash 'restart')\
|
|
(image (linux (args 'ro root=/dev/VolGroup00/LogVol00')))\
|
|
(device (tap (dev 'xvda')(uname 'tap:aio:/var/lib/xen/images/rhel5pv.img')\
|
|
(mode 'w!')))(device (vif (mac '00:16:3e:23:9e:eb')(bridge 'xenbr0')\
|
|
(script 'vif-bridge'))))\
|