You could ensure the VMs don't automatically start and use an Ansible playbook to start the VMs in the order you like.

Something like:

---
- name: Playbook to start the VMs in the required order
  hosts: localhost
  tasks:
  - name: Authenticate with RHV
    ovirt.ovirt.ovirt_auth:
      url: "{{ rhvm_url }}"
      username: "{{ rhvm_username }}"
      password: "{{ rhvm_password }}"

    - name: "{{ vm }}: Connect to RHV and power the VM on"
      ovirt.ovirt.ovirt_vm:
        auth: "{{ ovirt_auth }}"
        state: running
        name: "{{ vm }}"
      async: 180
      poll: 0
      loop:
      - vm1
      - vm2
      - vm3
      loop_control:
        loop_var: vm

You'll need ansible installed (obviously) but also the ovirt.ovirt ansible collection.

This is easily done with something like:
https_proxy=http://your_proxy:3128 ansible-galaxy collection install ovirt.ovirt

Remove the https_proxy if its not required.

Hope that helps


On Mon, 15 Jul 2024 at 23:52, Sergei Panchenko <daemonff@gmail.com> wrote:
Good morning!

Is there any way to configure VM start order? For example, I would like to make it so VM3 starts only after VM2 starts and VM2 starts only after VM1 starts. I know about run/migrate priority, but it is the other scenario.
_______________________________________________
Users mailing list -- users@ovirt.org
To unsubscribe send an email to users-leave@ovirt.org
Privacy Statement: https://www.ovirt.org/privacy-policy.html
oVirt Code of Conduct: https://www.ovirt.org/community/about/community-guidelines/
List Archives: https://lists.ovirt.org/archives/list/users@ovirt.org/message/X7VVPBZYVRHQEXWNWXY7X4HAUJLNF2DO/