summaryrefslogtreecommitdiff
path: root/roles/vm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2022-12-31 01:22:36 +0100
committerChristian Pointner <equinox@spreadspace.org>2022-12-31 01:22:36 +0100
commitda12b404157782e736a9fa3a5dab68c5f44f81f4 (patch)
treef153b50b228f5d427acaa3597d81922a8c902cb4 /roles/vm
parentincrease root disk size for ch-mon (diff)
vm/guest: fix pci passthrough
Diffstat (limited to 'roles/vm')
-rw-r--r--roles/vm/guest/create/templates/libvirt-domain.xml.j22
1 files changed, 1 insertions, 1 deletions
diff --git a/roles/vm/guest/create/templates/libvirt-domain.xml.j2 b/roles/vm/guest/create/templates/libvirt-domain.xml.j2
index c4ab6a4a..fc0ce21e 100644
--- a/roles/vm/guest/create/templates/libvirt-domain.xml.j2
+++ b/roles/vm/guest/create/templates/libvirt-domain.xml.j2
@@ -119,7 +119,7 @@
{% for device in install.vm.pci_passthrough %}
<hostdev mode='subsystem' type='pci' managed='yes'>
<source>
- <address domain='{{ "0x%04x" | format(device.domain) }}' bus='{{ "0x%02x" | format(device.bus) }}' slot='{{ "0x%02x" | format(device.slot) }}' function='{{ "0x%01x" | format(device.slot) }}'/>
+ <address domain='{{ "0x%04x" | format(device.domain) }}' bus='{{ "0x%02x" | format(device.bus) }}' slot='{{ "0x%02x" | format(device.slot) }}' function='{{ "0x%01x" | format(device.function) }}'/>
</source>
</hostdev>
{% endfor %}