<html><head><style type='text/css'>p { margin: 0; }</style></head><body><div style='font-family: arial,helvetica,sans-serif; font-size: 10pt; color: #000000'>This is how I see it:<br><br>Engine should have an offline database of its assigned hosts and their state (With state I mean properties. One of these properties would be the auto-start one).<br>So when a host starts the engine starts and then loops assigned virtual machines. While looping the virtual machines checs its auto-start property. If it's set to true it starts the virtual machine.<br><br>Not sure if what I am describing has an easy implementation with current oVirt architecture. Any comments from people who might understand better oVirt architecture on this use-case?<br><br>I think the hosts should rely the least possible on the management server.<br><br><hr id="zwchr"><blockquote style="border-left:2px solid rgb(16, 16, 255);margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"Itamar Heim" <iheim@redhat.com><br><b>Para: </b>"Adrian Gibanel" <adrian.gibanel@btactic.com><br><b>CC: </b>"users" <users@ovirt.org><br><b>Enviados: </b>Viernes, 7 de Diciembre 2012 19:39:26<br><b>Asunto: </b>Re: [Users] Auto-start vms on boot?<br><br>On 12/07/2012 06:23 PM, Adrian Gibanel wrote:<br>> My use case is that I just don't want to start manually the virtual machines when the host starts and, also, if the host is shutdown it should guest-shutdown the virtual machines.<br>><br>> Any doc on that pin option? How one is supposed to pin a virtual machine to a host?<br><br>just to be clear, we still don't have the behavior i described. I just <br>stated the only use case i'm familiar for a similar requirement.<br>(pinning a VM to host is done via the edit vm dialog).<br><br>question on your use case - how would the engine know if the admin just <br>shutdown a VM manually from a VM which should be auto started (should we <br>add such a checkbox).<br>in the use case i described, we would be adding a 'start/stop VM with <br>host' for a VM pinned to a host.<br><br>><br>> Thank you.<br>><br>> ----- Mensaje original -----<br>><br>>> On 12/06/2012 10:34 PM, Adrian Gibanel wrote:<br>>>> It would seem that oVirt does not provide an standard way of<br>>>> forcing boot of virtual machines at boot.<br>>>><br>>>> Pools can have pre-started vms as stated here:<br>>>> https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.1/html/Administration_Guide/Prestarting_Virtual_Machines_in_a_Pool.html<br>>>> but pools imply state-less virtual machines and I am talking more<br>>>> about normal virtual machines.<br>>>><br>>>> I've found this script:<br>>>><br>>>> https://github.com/iranzo/rhevm-utils/blob/master/rhev-vm-start.py<br>>>><br>>>> which could do to the trick if run at host boot.<br>>>><br>>>> I've also thought (but not tried) to mark a virtual machine as<br>>>> "Highly Available" even if I have only one host (I mean, usually<br>>>> HA only makes sense when you have two hosts).<br>>>><br>>>> Marking a VM as H.A. would do the trick?<br>>>> Any special reason why there isn't and standard way of marking<br>>>> which vms should be auto-started at boot?<br>>>><br>>>> Just wanted to hear your thoughts before filling an RFE.<br>>>><br>>>><br>>>> Thank you.<br>>>><br>>> what exactly is your use case?<br>>> the one i'm familiar with is to tie the VM life cycle to a specific<br>>> host, so a VM which is pinned to a specific host for a certain task<br>>> (say, IDS), is always starting when the host starts, and will be<br>>> automatically shutdown when host is moved to maintenance.<br>>> so only relevant for VMs which are pinned to a host.<br></blockquote>-- <br><div><span name="x"></span><font style="font-weight: bold;" size="3"><a style="color: rgb(0, 0, 0);" href="http://www.btactic.com/"><span id="DWT100"><font class="Apple-style-span" face="verdana, helvetica, sans-serif"><span class="Apple-style-span" style="background-color: rgb(255, 255, 255);"></span></font></span></a></font><font style="font-family: 'Times New Roman';" color="#5f5f5f" face="Arial" size="1"><font size="3"><span style="font-family: verdana,helvetica,sans-serif; color: rgb(0, 0, 0);"><font style="font-family: helvetica;" size="2"><strong>Adrián Gibanel</strong><br>I.T. Manager<br><br>+34 675 683 301<br><a href="http://btactic.com/">www.btactic.com</a></font><br><br></span></font></font><font color="#008000" face="Arial" size="1"><img src="http://www.btactic.com/signaturabtacticmail/btacticsignature.png" style="border-width: 0px;"><br></font><font class="Apple-style-span" face="Arial"><b><span class="Apple-style-span" style="font-family: Verdana; font-weight: normal;"><span id="bc4bed34-88ab-466b-a731-c40f5c09ab6c"><font color="#5f5f5f" face="Arial" size="1"><br>Ens podeu seguir a/Nos podeis seguir en:<br>
<br>
</font></span><a href="http://www.facebook.com/pages/btactic/118651634826400?v=app_9953271133"><img style="border: 0pt none;" src="http://www.btactic.com/wp-content/themes/btactic/img/facebookfoot.jpg"></a> i <a href="http://twitter.com/btactic"><img style="border: 0pt none;" src="http://www.btactic.com/wp-content/themes/btactic/img/twitterfoot.jpg"></a></span></b></font><br><font color="#008000" face="Arial" size="1"><br></font><div><font color="#008000" face="Arial" size="1">Abans d´imprimir
aquest missatge, pensa en el medi ambient. El medi ambient és cosa de
tothom.
/ Antes de imprimir el mensaje piensa en el medio ambiente. El medio
ambiente
es cosa de todos. </font><font color="#5f5f5f" face="Arial" size="1"><br>
<br>
AVIS: <br>
El contingut d'aquest missatge i els seus annexos és confidencial. Si no
en sou el destinatari, us fem saber que està prohibit utilitzar-lo,
divulgar-lo
i/o copiar-lo sense tenir l'autorització corresponent. Si heu rebut
aquest
missatge per error, us agrairem que ho feu saber immediatament <span class="Object" id="OBJ_PREFIX_DWT103">al remitent
i que procediu a destruir el missatge</span>.<br>
<br>
AVISO:<br>
El contenido de este mensaje y de sus anexos es confidencial. Si no es
el destinatario, les hacemos saber que está prohibido utilizarlo,
divulgarlo
y/o copiarlo sin tener la autorización correspondiente. Si han recibido
este mensaje por error, les agradeceríamos que lo hagan saber
inmediatamente
<span class="Object" id="OBJ_PREFIX_DWT104">al remitente y que procedan a
destruir el mensaje</span>.</font>
</div><span name="x"></span><br></div></div></body></html>