<div dir="ltr"><div><div><div>I just found very simple solution by adding a dummy interface on host.<br></div>Same with VMs. So the only hosts with dummy interface are able to run the VMs. Works even with HA-VMs.<br></div>For sure it is a hack and not so elegant solution, But it works.:)<br></div>a.<br><br></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><pre cols="72"><span><pre cols="72">***********************************************************</pre></span> Dr. Arman Khalatyan eScience -SuperComputing
Leibniz-Institut für Astrophysik Potsdam (AIP)
An der Sternwarte 16, 14482 Potsdam, Germany <br><span><pre cols="72">***********************************************************<br></pre></span></pre>
</div></div></div>
<br><div class="gmail_quote">On Sun, Nov 30, 2014 at 3:33 PM, Doron Fediuck <span dir="ltr"><<a href="mailto:dfediuck@redhat.com" target="_blank">dfediuck@redhat.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Just for the record, affinity deals with the relation<br>
between VMs, and pinning is about the relation between<br>
a VM and a host.<br>
<br>
We're considering extending affinity to handle hosts<br>
as well, but it's not a trivial change.<br>
<span class="HOEnZb"><font color="#888888"><br>
Doron<br>
</font></span><span class=""><br>
----- Original Message -----<br>
> From: "Arman Khalatyan" <<a href="mailto:arm2arm@gmail.com">arm2arm@gmail.com</a>><br>
</span><div><div class="h5">> To: "Itamar Heim" <<a href="mailto:iheim@redhat.com">iheim@redhat.com</a>><br>
> Cc: "users" <<a href="mailto:users@ovirt.org">users@ovirt.org</a>><br>
> Sent: Sunday, November 30, 2014 3:30:19 PM<br>
> Subject: Re: [ovirt-users] How to stick VM to hosts?<br>
><br>
> Thanks for ideas.<br>
> I will try <a href="http://www.ovirt.org/External_Scheduler_Samples" target="_blank">http://www.ovirt.org/External_Scheduler_Samples</a> looks nice.<br>
> Itamar the VM-Affinity selects the VMs, but not the hosts.<br>
> Would be nice in the next release to add some host pinning options as well.<br>
> Cheers,<br>
> Arman.<br>
><br>
><br>
> ***********************************************************<br>
> Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für Astrophysik<br>
> Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany<br>
> ***********************************************************<br>
><br>
> On Sun, Nov 30, 2014 at 2:20 PM, Itamar Heim < <a href="mailto:iheim@redhat.com">iheim@redhat.com</a> > wrote:<br>
><br>
><br>
> On 11/30/2014 12:58 PM, Artyom Lukianov wrote:<br>
><br>
><br>
> I am sure you know about vm pinning, but it promise that you can run vm only<br>
> on one specific vm, in your case you want to run vm on some range of hosts,<br>
> exclude some specific hosts. At the moment ovirt don't have such thing of<br>
> policy, but you can write your own filter for scheduler-proxy, that will<br>
> filter all hosts except ones that you need:<br>
> <a href="http://www.ovirt.org/Features/" target="_blank">http://www.ovirt.org/Features/</a> oVirt_External_Scheduling_ Proxy<br>
> <a href="http://www.ovirt.org/External_" target="_blank">http://www.ovirt.org/External_</a> Scheduler_Samples<br>
><br>
> You need to install package ovirt-scheduler-proxy and also enable it via<br>
> engine-config -s ExternalSchedulerEnabled=True.<br>
> Also additional info you can find under cd /usr/share/doc/ovirt-<br>
> scheduler-proxy*<br>
><br>
> why - since 3.4 we have affinity support out of the box?<br>
> <a href="http://www.ovirt.org/Features/" target="_blank">http://www.ovirt.org/Features/</a> VM-Affinity<br>
><br>
><br>
><br>
><br>
><br>
> I hope it will help you.<br>
> Thanks<br>
><br>
> ----- Original Message -----<br>
> From: "Arman Khalatyan" < <a href="mailto:arm2arm@gmail.com">arm2arm@gmail.com</a> ><br>
> To: "users" < <a href="mailto:users@ovirt.org">users@ovirt.org</a> ><br>
> Sent: Friday, November 28, 2014 11:51:40 AM<br>
> Subject: [ovirt-users] How to stick VM to hosts?<br>
><br>
> Hello,<br>
> I have 2 VMs with the negative Affinity.<br>
> I am looking some way to force the VMs running on different selected hosts.<br>
> Assuming I have hosts c1-c8: Can I tell VM to run on c1-c8 but not c2 and c4?<br>
> Thanks,<br>
> Arman.<br>
><br>
> ****************************** *****************************<br>
> Dr. Arman Khalatyan eScience -SuperComputing Leibniz-Institut für Astrophysik<br>
> Potsdam (AIP) An der Sternwarte 16, 14482 Potsdam, Germany<br>
> ****************************** *****************************<br>
><br>
</div></div>> ______________________________ _________________<br>
<div class="HOEnZb"><div class="h5">> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/" target="_blank">http://lists.ovirt.org/</a> mailman/listinfo/users<br>
> ______________________________ _________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/" target="_blank">http://lists.ovirt.org/</a> mailman/listinfo/users<br>
><br>
><br>
><br>
><br>
> _______________________________________________<br>
> Users mailing list<br>
> <a href="mailto:Users@ovirt.org">Users@ovirt.org</a><br>
> <a href="http://lists.ovirt.org/mailman/listinfo/users" target="_blank">http://lists.ovirt.org/mailman/listinfo/users</a><br>
><br>
</div></div></blockquote></div><br></div>