Hi,<br>I&#39;m not involved on the ovirt development, but here are my thoughts:<br>1. oVirt makes sense on a datacenter scenario, where there is always a HA management server that takes care of everything, including the management of all VMs state.<br>
2. If you want such a tight relation between the host and the VMs running on it, you don&#39;t need oVirt, just &quot;plain&quot; host virtualization, like the one that comes on every linux distro with virt-manager.There you can install and manage the VMs on a single host, forcing them to stop or start on host shutdown or boot.<br>
3. This is what I&#39;ve been doing myself. Virt-manager can manage all hosts running kvm/qemu but don&#39;t have this datacenter approach, where you store your VMs on a SAN/iSCSI and you run you VMs on diskless hosts and can migrate them as you which, for instance.<br>
<br>If the oVirt developers think that i?m missing something or that I&#39;m wrong, please come and correct me :-)<br><br>Alex<br><br><div class="gmail_quote">2012/12/9 Itamar Heim <span dir="ltr">&lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 12/09/2012 02:55 PM, Adrian Gibanel wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
This is how I see it:<br>
<br>
Engine should have an offline database of its assigned hosts and their<br>
state (With state I mean properties. One of these properties would be<br>
the auto-start one).<br>
So when a host starts the engine starts and then loops assigned virtual<br>
machines. While looping the virtual machines checs its auto-start<br>
property. If it&#39;s set to true it starts the virtual machine.<br>
<br>
Not sure if what I am describing has an easy implementation with current<br>
oVirt architecture. Any comments from people who might understand better<br>
oVirt architecture on this use-case?<br>
<br>
I think the hosts should rely the least possible on the management server.<br>
</blockquote>
<br></div>
my concern is how to make sure engine only starts VMs it should in this case.<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
------------------------------<u></u>------------------------------<u></u>------------<br>
<br>
    *De: *&quot;Itamar Heim&quot; &lt;<a href="mailto:iheim@redhat.com" target="_blank">iheim@redhat.com</a>&gt;<br>
    *Para: *&quot;Adrian Gibanel&quot; &lt;<a href="mailto:adrian.gibanel@btactic.com" target="_blank">adrian.gibanel@btactic.com</a>&gt;<br>
    *CC: *&quot;users&quot; &lt;<a href="mailto:users@ovirt.org" target="_blank">users@ovirt.org</a>&gt;<br>
    *Enviados: *Viernes, 7 de Diciembre 2012 19:39:26<br>
    *Asunto: *Re: [Users] Auto-start vms on boot?<div><div class="h5"><br>
<br>
    On 12/07/2012 06:23 PM, Adrian Gibanel wrote:<br>
     &gt; My use case is that I just don&#39;t want to start manually the<br>
    virtual machines when the host starts and, also, if the host is<br>
    shutdown it should guest-shutdown the virtual machines.<br>
     &gt;<br>
     &gt; Any doc on that pin option? How one is supposed to pin a virtual<br>
    machine to a host?<br>
<br>
    just to be clear, we still don&#39;t have the behavior i described. I just<br>
    stated the only use case i&#39;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<br>
    (should we<br>
    add such a checkbox).<br>
    in the use case i described, we would be adding a &#39;start/stop VM with<br>
    host&#39; for a VM pinned to a host.<br>
<br>
     &gt;<br>
     &gt; Thank you.<br>
     &gt;<br>
     &gt; ----- Mensaje original -----<br>
     &gt;<br>
     &gt;&gt; On 12/06/2012 10:34 PM, Adrian Gibanel wrote:<br>
     &gt;&gt;&gt; It would seem that oVirt does not provide an standard way of<br>
     &gt;&gt;&gt; forcing boot of virtual machines at boot.<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; Pools can have pre-started vms as stated here:<br>
     &gt;&gt;&gt;<br>
    <a href="https://access.redhat.com/knowledge/docs/en-US/Red_Hat_Enterprise_Virtualization/3.1/html/Administration_Guide/Prestarting_Virtual_Machines_in_a_Pool.html" target="_blank">https://access.redhat.com/<u></u>knowledge/docs/en-US/Red_Hat_<u></u>Enterprise_Virtualization/3.1/<u></u>html/Administration_Guide/<u></u>Prestarting_Virtual_Machines_<u></u>in_a_Pool.html</a><br>

     &gt;&gt;&gt; but pools imply state-less virtual machines and I am talking more<br>
     &gt;&gt;&gt; about normal virtual machines.<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; I&#39;ve found this script:<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; <a href="https://github.com/iranzo/rhevm-utils/blob/master/rhev-vm-start.py" target="_blank">https://github.com/iranzo/<u></u>rhevm-utils/blob/master/rhev-<u></u>vm-start.py</a><br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; which could do to the trick if run at host boot.<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; I&#39;ve also thought (but not tried) to mark a virtual machine as<br>
     &gt;&gt;&gt; &quot;Highly Available&quot; even if I have only one host (I mean, usually<br>
     &gt;&gt;&gt; HA only makes sense when you have two hosts).<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; Marking a VM as H.A. would do the trick?<br>
     &gt;&gt;&gt; Any special reason why there isn&#39;t and standard way of marking<br>
     &gt;&gt;&gt; which vms should be auto-started at boot?<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; Just wanted to hear your thoughts before filling an RFE.<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt;<br>
     &gt;&gt;&gt; Thank you.<br>
     &gt;&gt;&gt;<br>
     &gt;&gt; what exactly is your use case?<br>
     &gt;&gt; the one i&#39;m familiar with is to tie the VM life cycle to a specific<br>
     &gt;&gt; host, so a VM which is pinned to a specific host for a certain task<br>
     &gt;&gt; (say, IDS), is always starting when the host starts, and will be<br>
     &gt;&gt; automatically shutdown when host is moved to maintenance.<br>
     &gt;&gt; so only relevant for VMs which are pinned to a host.<br>
<br>
--<br></div></div>
&lt;<a href="http://www.btactic.com/" target="_blank">http://www.btactic.com/</a>&gt;*<u></u>Adrián Gibanel*<div class="im"><br>
I.T. Manager<br>
<br>
<a href="tel:%2B34%20675%20683%20301" value="+34675683301" target="_blank">+34 675 683 301</a><br>
</div><a href="http://www.btactic.com" target="_blank">www.btactic.com</a> &lt;<a href="http://btactic.com/" target="_blank">http://btactic.com/</a>&gt;<div class="im"><br>
<br>
<br>
*<br>
Ens podeu seguir a/Nos podeis seguir en:<br>
<br></div>
&lt;<a href="http://www.facebook.com/pages/btactic/118651634826400?v=app_9953271133" target="_blank">http://www.facebook.com/<u></u>pages/btactic/118651634826400?<u></u>v=app_9953271133</a>&gt;<br>
i &lt;<a href="http://twitter.com/btactic" target="_blank">http://twitter.com/btactic</a>&gt;*<div class="im"><br>
<br>
Abans d´imprimir aquest missatge, pensa en el medi ambient. El medi<br>
ambient és cosa de tothom. / Antes de imprimir el mensaje piensa en el<br>
medio ambiente. El medio ambiente es cosa de todos.<br>
<br>
AVIS:<br>
El contingut d&#39;aquest missatge i els seus annexos és confidencial. Si no<br>
en sou el destinatari, us fem saber que estŕ prohibit utilitzar-lo,<br>
divulgar-lo i/o copiar-lo sense tenir l&#39;autorització corresponent. Si<br>
heu rebut aquest missatge per error, us agrairem que ho feu saber<br>
immediatament al remitent i que procediu a destruir el missatge.<br>
<br>
AVISO:<br>
El contenido de este mensaje y de sus anexos es confidencial. Si no es<br>
el destinatario, les hacemos saber que está prohibido utilizarlo,<br>
divulgarlo y/o copiarlo sin tener la autorización correspondiente. Si<br>
han recibido este mensaje por error, les agradeceríamos que lo hagan<br>
saber inmediatamente al remitente y que procedan a destruir el mensaje.<br>
<br>
<br>
<br></div><div class="im">
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
<br>
</div></blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
______________________________<u></u>_________________<br>
Users mailing list<br>
<a href="mailto:Users@ovirt.org" target="_blank">Users@ovirt.org</a><br>
<a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/<u></u>mailman/listinfo/users</a><br>
</div></div></blockquote></div><br>