You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The module ovirt_vm has no parameter to control whether a virtual machine should be warm or cold rebooted when started as "Run Once"
in the Run Once dialog there is an option called "Rollback this configuration during reboots"
in API it is called "volatile"
COMPONENT NAME
ovirt_vm
ADDITIONAL INFORMATION
Use case:
When configure Red Hat Linux installation via Ansible and Kickstart at the end of installation process there is need to reboot a machine. Without "Rollback this configuration during reboots = True" for Run Once process goes to an installation loop.
---
- name: oVirt VM Creationhosts: localhostconnection: localvars_files:
# Contains variables to connect to the engine
- engine_vars.yml# Contains encrypted `engine_password` varibale using ansible-vault
- passwords.ymltasks:
- block:
- name: Log in oVirt Engineovirt_auth:
hostname: "{{ engine_fqdn }}"username: "{{ engine_user }}"password: "{{ engine_password }}"insecure: "{{ engine_insecure | default(true) }}"
- name: Remove VM, if VM is running it will be stoppedovirt_vm:
auth: "{{ ovirt_auth }}"state: absentname: "{{ vm_name }}"
- name: Create VM OS Diskovirt_disk:
auth: "{{ ovirt_auth }}"name: "{{ vm_name }}_OS"size: 10GiBformat: rawsparse: Truestorage_domain: dataregister: mydisk
- name: Create VMovirt_vm:
auth: "{{ ovirt_auth }}"state: runningcluster: Defaultname: "{{ vm_name }}"cd_iso: "{{ iso_file }}"boot_devices:
- hdmemory: 4GiBmemory_guaranteed: 4GiBmemory_max: 4GiBcpu_cores: 2cpu_sockets: 2cpu_shares: 1024type: serveroperating_system: rhel_8x64disks:
- name: "{{ vm_name }}_OS"bootable: Trueinterface: virtio_scsinics:
- name: nic1profile_name: ovirtmgmtkernel_path: /opt/kernel/8.2/vmlinuzinitrd_path: /opt/kernel/8.2/initrd.imgkernel_params: inst.repo=cdrom inst.ks.sendmac inst.ks=http://{{ web_serv_ip }}:8080/ks.8.2.cfg ip={{ vm_ip }}:::255.255.255.0::eth0:off net.ifnames=0kernel_params_persist: falsealways:
- name: Log out oVirt Engineovirt_auth:
state: absentovirt_auth: "{{ ovirt_auth }}"collections:
- ovirt.ovirt
The text was updated successfully, but these errors were encountered:
SUMMARY
The module ovirt_vm has no parameter to control whether a virtual machine should be warm or cold rebooted when started as "Run Once"
COMPONENT NAME
ovirt_vm
ADDITIONAL INFORMATION
Use case:
When configure Red Hat Linux installation via Ansible and Kickstart at the end of installation process there is need to reboot a machine. Without "Rollback this configuration during reboots = True" for Run Once process goes to an installation loop.
The text was updated successfully, but these errors were encountered: