Skip to content

Commit

Permalink
vm/guest.xml.j2: add disk configuration
Browse files Browse the repository at this point in the history
Update 'guest.xml.j2' template to include disk configuration for the virtual machine.

Signed-off-by: Benjamin Chedotel <[email protected]>
  • Loading branch information
bchedotel committed Feb 7, 2024
1 parent 880929f commit 0d17975
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion templates/vm/guest.xml.j2
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,12 @@
<suspend-to-disk enabled="no" />
</pm>
<devices>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<emulator>/usr/bin/qemu-system-x86_64</emulator>
<disk type="file" device="disk">
<driver name="qemu" type="qcow2"/>
<source file="/var/lib/libvirt/images/guest0.qcow2"/>
<target dev="vda" bus="virtio"/>
</disk>
{% if "dpdk" in vm.vm_features %}
{% for interface in vm.dpdk %}
<interface type='vhostuser'>
Expand Down

0 comments on commit 0d17975

Please sign in to comment.