Skip to content

Commit

Permalink
Force maxmem=memory for HVM with PCI devices
Browse files Browse the repository at this point in the history
Xen do not support other cases at all ("PCI device assignment for HVM
guest failed due to PoD enabled", PoD means "populate on demand").
  • Loading branch information
marmarek committed Jun 20, 2017
1 parent 083108e commit 5f187bd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion templates/libvirt/xen.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,11 @@
{% block basic %}
<name>{{ vm.name }}</name>
<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>
<vcpu placement="static">{{ vm.vcpus }}</vcpu>
{% endblock %}
Expand Down

0 comments on commit 5f187bd

Please sign in to comment.