Skip to content

Commit cd1f73e

Browse files
committed
[Libvirt-manager] Fix vm UUID
Fixing the UUID allows to get predictible value for that field. This is useful when working with GitOps principles and baremetal on virutal manchines, since the UUID is used by sushy-emulator to access the right VM.
1 parent 052ccea commit cd1f73e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roles/libvirt_manager/templates/domain.xml.j2

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<domain type='kvm'>
2+
<uuid>{{ vm | ansible.builtin.to_uuid }}</uuid>
23
<name>cifmw-{{ vm }}</name>
34
<memory unit='GB'>{{ vm_data.memory | default(2) }}</memory>
45
<vcpu placement='static'>{{ vm_data.cpus | default(2) }}</vcpu>

0 commit comments

Comments
 (0)