[Users] How can I make a VM "immortal"?

Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually?

On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case

On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case You mean a anacrontab script?

Ok, that's easy to accomplish. But when I use restapi to start a VM, why does the log show me that it runs in RUNONCE mode rather than NORMAL START? 2013/9/24 lofyer <lofyer@gmail.com>
On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? ______________________________**_________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/**mailman/listinfo/users<http://lists.ovirt.org/mailman/listinfo/users>
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case
You mean a anacrontab script?

On 09/24/2013 06:34 AM, lof yer wrote:
Ok, that's easy to accomplish. But when I use restapi to start a VM, why does the log show me that it runs in RUNONCE mode rather than NORMAL START?
since the api allows you to pass any parameter to affect the run. does it matter?
2013/9/24 lofyer <lofyer@gmail.com <mailto:lofyer@gmail.com>>
On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? _________________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/__mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case
You mean a anacrontab script?

That's fine, I thought there was an option in api that make the start as normal one. 2013/9/24 Itamar Heim <iheim@redhat.com>
On 09/24/2013 06:34 AM, lof yer wrote:
Ok, that's easy to accomplish. But when I use restapi to start a VM, why does the log show me that it runs in RUNONCE mode rather than NORMAL START?
since the api allows you to pass any parameter to affect the run. does it matter?
2013/9/24 lofyer <lofyer@gmail.com <mailto:lofyer@gmail.com>>
On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? ______________________________**___________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> http://lists.ovirt.org/__**mailman/listinfo/users<http://lists.ovirt.org/__mailman/listinfo/users>
<http://lists.ovirt.org/**mailman/listinfo/users<http://lists.ovirt.org/mailman/listinfo/users>
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case
You mean a anacrontab script?

Actually this is a bug [1]. [1] https://bugzilla.redhat.com/show_bug.cgi?id=1005562 On 09/24/2013 09:53 AM, lof yer wrote:
That's fine, I thought there was an option in api that make the start as normal one.
2013/9/24 Itamar Heim <iheim@redhat.com <mailto:iheim@redhat.com>>
On 09/24/2013 06:34 AM, lof yer wrote:
Ok, that's easy to accomplish. But when I use restapi to start a VM, why does the log show me that it runs in RUNONCE mode rather than NORMAL START?
since the api allows you to pass any parameter to affect the run. does it matter?
2013/9/24 lofyer <lofyer@gmail.com <mailto:lofyer@gmail.com> <mailto:lofyer@gmail.com <mailto:lofyer@gmail.com>>>
On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? ___________________________________________________ Users mailing list Users@ovirt.org <mailto:Users@ovirt.org> <mailto:Users@ovirt.org <mailto:Users@ovirt.org>> http://lists.ovirt.org/____mailman/listinfo/users <http://lists.ovirt.org/__mailman/listinfo/users>
<http://lists.ovirt.org/__mailman/listinfo/users <http://lists.ovirt.org/mailman/listinfo/users>>
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case
You mean a anacrontab script?
-- Michael Pasternak RedHat, ENG-Virtualization R&D

On Tue, 2013-09-24 at 08:44 +0800, lofyer wrote:
On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case You mean a anacrontab script?
You can for example use Nagios/Icinga with the event handler functionality. When your vm is down, Nagios/Icinga can start it again via an event handler script (which will use Pyhton SDK or REST-API to start the vm). Regards, René PS: Had some mail/dns issues today, so maybe some mails with suggestions are missing on my side...
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

On 09/24/13 19:57, René Koch (ovido) wrote:
On Tue, 2013-09-24 at 08:44 +0800, lofyer wrote:
On 2013/9/24 6:03, Itamar Heim wrote:
On 09/23/2013 06:18 PM, lofyer wrote:
Besides assigning a watchdog device to it, are there any other ways to make the VM autostart even if an user shutdown it manually? _______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users if a user shut down a vm from inside or via engine? i suggest an external script on engine monitoring its status and starting it for such a use case You mean a anacrontab script?
You can for example use Nagios/Icinga with the event handler functionality. When your vm is down, Nagios/Icinga can start it again via an event handler script (which will use Pyhton SDK or REST-API to start the vm).
Regards, René
PS: Had some mail/dns issues today, so maybe some mails with suggestions are missing on my side...
_______________________________________________ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users That's interesting, I'll have a try later since I never use nagios/icinga before. For now I'm using a anacrontab scripts that start the "down" vms every 10 minutes.
participants (5)
-
Itamar Heim
-
lof yer
-
lofyer
-
Michael Pasternak
-
René Koch (ovido)