[ovirt-users] Re: VM AutoStart

2020-10-01 Thread Gianluca Cecchi
On Wed, Sep 30, 2020 at 9:14 PM Jeremey Wise wrote: > i would like to eventually go ansible route.. and was starting down that > path but this is fabulous. > > I will modify and post how it went. > > One question: How /where do you set this saved new and delicious script > so once

[ovirt-users] Re: VM AutoStart

2020-10-01 Thread Strahil Nikolov via Users
In EL 8 , there is no 'default' python. You can use both. My choice would be ansible because APIs change , but also ansible modules are updated. If you create your own script , you will have to take care about the updates, while with ansible - you just update the relevan packages :) Best

[ovirt-users] Re: VM AutoStart

2020-10-01 Thread Strahil Nikolov via Users
As I mentioned, I would use systemd service to start the ansible play (or a script running it). Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 22:15:17 Гринуич+3, Jeremey Wise написа: i would like to eventually go ansible route..  and was starting down that path

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Derek Atkins
I did. years ago. When 4.0 was current. Some of the work to implement that went into 4.4, where it will recover state on a crash (i.e., if you have VMs marked as auto-start and you have a power outage, it will restart them). However, I believe there is no order to it, and it will only start

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Jeremey Wise
Ya.. that is a lot easier. Someone should put this in as a feature request. I don't want HA (and have errors on getting that to work) I just want VMs to boot on initial cluster start. this was standard in libvirt :) I am trying to convert to oVirt ways... On Wed, Sep 30, 2020 at 4:10 PM

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Derek Atkins
HI, On Wed, September 30, 2020 3:50 pm, Jeremey Wise wrote: > As the three servers are Centos8 minimal installs. + oVirt HCI wizard to > keep them lean and mean... a couple questions Note that you run this on the Engine VM, not on a host. > 1) which version of python would I need for this (note

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Jeremey Wise
As the three servers are Centos8 minimal installs. + oVirt HCI wizard to keep them lean and mean... a couple questions 1) which version of python would I need for this (note in script about python 2 but isn't that deprecated?) [root@thor /]# yum install python Last metadata expiration check:

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Derek Atkins
I run it out of rc.local: /usr/local/sbin/start_vms.py > /var/log/start_vms 2>&1 & The script is smart enough to wait for the engine to be fully active. -derek On Wed, September 30, 2020 3:11 pm, Jeremey Wise wrote: > i would like to eventually go ansible route.. and was starting down that >

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Jeremey Wise
i would like to eventually go ansible route.. and was starting down that path but this is fabulous. I will modify and post how it went. One question: How /where do you set this saved new and delicious script so once oVirt-engine comes up... it runs? Thanks On Wed, Sep 30, 2020 at 2:42 PM

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Derek Atkins
Hi, I had a script based around ovirt-shell which I re-wrote as a script around the Python SDK4 which I run on my engine during the startup sequence. The script will wait for the engine to come up and ensure the storage domains are up before it tries to start the VMs. Then it will go ahead and

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Strahil Nikolov via Users
Also consider setting a reasonable 'TimeoutStartSec=' in your systemd service file when you create the service... Best Regards, Strahil Nikolov В сряда, 30 септември 2020 г., 20:18:01 Гринуич+3, Strahil Nikolov via Users написа: I would create an ansible playbook that will be

[ovirt-users] Re: VM AutoStart

2020-09-30 Thread Strahil Nikolov via Users
I would create an ansible playbook that will be running from the engine: 1. Check the engine's health page via uri module and wait_for (maybe with a regex) Healthpage is : https://engine_FQDN/ovirt-engine/services/health 2. Use ansible ovirt_vm module to start your vms in the order you want 3.

[ovirt-users] Re: vm autostart and priorities

2019-02-07 Thread Simone Tiraboschi
On Thu, Feb 7, 2019 at 1:59 PM Greg Sheremeta wrote: > > On Thu, Feb 7, 2019 at 5:28 AM Hetz Ben Hamo wrote: > >> Hi, >> >> I'm migrating my VM's to oVirt from ESXI and I've only got one left on >> the ESXi side - a VM which provides me DNS, mail and DHCP services. Without >> this VM's, I can't

[ovirt-users] Re: vm autostart and priorities

2019-02-07 Thread Greg Sheremeta
On Thu, Feb 7, 2019 at 5:28 AM Hetz Ben Hamo wrote: > Hi, > > I'm migrating my VM's to oVirt from ESXI and I've only got one left on the > ESXi side - a VM which provides me DNS, mail and DHCP services. Without > this VM's, I can't access the internet. > I'm not sure about the feasability of