mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +00:00
20311a9af8
The most common cause of errors with rhel5-api turn on was missing "(type ioemu)" in sexpr or its equivalent in XM configuration file. This happens because the presence of that part in sexpr (or cfg) depends on xen version the host is running. Let's avoid it by explicitly specifying interface model which ensures "type ioemu" will always be emitted. This patch adds <model type='e1000'/> withing the interface element in all affected xml files. And (model 'e1000') to all corresponding sexpr files with similar fix to cfg files. Such configuration works regardless on Xen version.
38 lines
906 B
XML
38 lines
906 B
XML
<domain type='xen' id='6'>
|
|
<name>test</name>
|
|
<uuid>cc2315e7d26a307a438c6d188ec4c09c</uuid>
|
|
<os>
|
|
<type>hvm</type>
|
|
<loader>/usr/lib/xen/boot/hvmloader</loader>
|
|
<boot dev='hd'/>
|
|
</os>
|
|
<memory>391168</memory>
|
|
<currentMemory>358400</currentMemory>
|
|
<vcpu>1</vcpu>
|
|
<on_poweroff>destroy</on_poweroff>
|
|
<on_reboot>destroy</on_reboot>
|
|
<on_crash>destroy</on_crash>
|
|
<features>
|
|
<acpi/>
|
|
<apic/>
|
|
<pae/>
|
|
</features>
|
|
<devices>
|
|
<emulator>/usr/lib/xen/bin/qemu-dm</emulator>
|
|
<interface type='ethernet'>
|
|
<mac address='00:16:3e:0a:7b:39'/>
|
|
<model type='e1000'/>
|
|
</interface>
|
|
<disk type='block' device='disk'>
|
|
<driver name='phy'/>
|
|
<source dev='/dev/sda8'/>
|
|
<target dev='hda'/>
|
|
</disk>
|
|
<disk device='cdrom'>
|
|
<target dev='hdc'/>
|
|
<readonly/>
|
|
</disk>
|
|
<graphics type='vnc' port='5906'/>
|
|
</devices>
|
|
</domain>
|