Skip to content

Commit 870672e

Browse files
claudia-lolarocky Cloud User
authored andcommitted
edits to libvirt_vm creation
1 parent d450861 commit 870672e

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

etc/kayobe/environments/stackhpc-sushy-baremetal/ansible/create-virtual-baremetal.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,17 +37,24 @@
3737
libvirt_vms:
3838
- state: present
3939
name: "{{ inventory_hostname }}"
40-
memory_mb: '4657'
40+
uuid: "{{ uuid }}"
41+
memory_mb: '4660'
4142
vcpus: '2'
43+
cpu_mode: 'host-model'
4244
# xml_file: "{{ sushy_directory }}/vbmc-node.xml.j2"
4345
volumes:
4446
- name: '{{ inventory_hostname }}.qcow2'
4547
device: 'disk'
4648
format: 'qcow2'
47-
capacity: '20GB'
49+
# capacity: '20GB'
4850
pool: 'default'
51+
file_path: '/var/lib/libvirt/images/{{ inventory_hostname }}.qcow2'
52+
type: 'file'
4953
interfaces:
50-
- network: 'breth1'
54+
- network: 'default'
55+
source:
56+
dev: 'breth1'
57+
mode: 'bridge'
5158
start: false
5259
autostart: false
5360
boot_firmware: uefi

0 commit comments

Comments
 (0)