Force maxmem=memory for HVM with PCI devices
Xen do not support other cases at all ("PCI device assignment for HVM guest failed due to PoD enabled", PoD means "populate on demand").
This commit is contained in:
parent
083108e995
commit
5f187bd2bf
@ -2,7 +2,11 @@
|
|||||||
{% block basic %}
|
{% block basic %}
|
||||||
<name>{{ vm.name }}</name>
|
<name>{{ vm.name }}</name>
|
||||||
<uuid>{{ vm.uuid }}</uuid>
|
<uuid>{{ vm.uuid }}</uuid>
|
||||||
<memory unit="MiB">{{ vm.maxmem }}</memory>
|
{% if vm.hvm and vm.devices['pci'].persistent() | list %}
|
||||||
|
<memory unit="MiB">{{ vm.memory }}</memory>
|
||||||
|
{% else %}
|
||||||
|
<memory unit="MiB">{{ vm.maxmem }}</memory>
|
||||||
|
{% endif %}
|
||||||
<currentMemory unit="MiB">{{ vm.memory }}</currentMemory>
|
<currentMemory unit="MiB">{{ vm.memory }}</currentMemory>
|
||||||
<vcpu placement="static">{{ vm.vcpus }}</vcpu>
|
<vcpu placement="static">{{ vm.vcpus }}</vcpu>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
Reference in New Issue
Block a user