Re: [Users] How can I make a VM immortal?
That's fine, I thought there was an option in api that make the start as normal one. 2013/9/24 Itamar Heim ih...@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 lof...@gmail.com mailto:lof...@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/usershttp://lists.ovirt.org/__mailman/listinfo/users http://lists.ovirt.org/**mailman/listinfo/usershttp://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? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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 ih...@redhat.com mailto:ih...@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 lof...@gmail.com mailto:lof...@gmail.com mailto:lof...@gmail.com mailto:lof...@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 RD ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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. ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
[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? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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 ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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 lof...@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/usershttp://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? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users
Re: [Users] How can I make a VM immortal?
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 lof...@gmail.com mailto:lof...@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? ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users