Hi,<div><br></div><div>The core automatically sets the CLUSTER requirement if the VM uses one of the following:</div><div>- an Image stored in a Datastore assigned to a Cluster</div><div>- a VNet assigned to a Cluster</div>
<div><br></div><div>You will need to add the Host to the Cluster, or use Images/Vnets available to that Host.</div><div><br></div><div><br></div><div>By the way, I recommend to use NAME inside the requirements. This attribute is the OpenNebula name for the Host, the one you see in onehost/Sunstone. On the other hand, HOSTNAME is an attribute returned by the monitorization probes, and it may not be the same as the Host NAME. This will happen for example if you have an alias in /etc/hosts, or the short vs FQDN...</div>
<div><br></div><div>Regards<br clear="all">--<br>Carlos Martín, MSc<br>Project Engineer<br>OpenNebula - The Open-source Solution for Data Center Virtualization<div><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="http://www.OpenNebula.org" target="_blank">www.OpenNebula.org</a> | <a href="mailto:cmartin@opennebula.org" target="_blank">cmartin@opennebula.org</a> | <a href="http://twitter.com/opennebula" target="_blank">@OpenNebula</a></span><span style="border-collapse:collapse;color:rgb(136,136,136);font-family:arial,sans-serif;font-size:13px"><a href="mailto:cmartin@opennebula.org" style="color:rgb(42,93,176)" target="_blank"></a></span></div>
<br>
<br><br><div class="gmail_quote">On Thu, Oct 4, 2012 at 1:47 PM, Rainer Schubert <span dir="ltr"><<a href="mailto:rainer.hartwig.schubert@gmail.com" target="_blank">rainer.hartwig.schubert@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hey André,<div><br></div><div>the problem is, that I have a Cluster with the id 100, but the Host "MyHost" is not a member of it. So Opennebula will always try to deploy my VM on the cluster ID 100 to Host "MyHost" and have the pending mode.</div>
<div><br></div><div>bye <div><div class="h5"><br><br><div class="gmail_quote">2012/10/4 André Monteiro <span dir="ltr"><<a href="mailto:andre.monteir@gmail.com" target="_blank">andre.monteir@gmail.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi Rainer,</div><div> </div><div>I never had this change on a template before, but maybe 100 is the default cluster, even when it doesn't exist.</div><div>About the pending state, is the used capacity full? Force the deployment on over-commit with the "Deploy" button on actions top right menu.<br clear="all">
<br>--<br>André Monteiro<br><br><br>
<br><br></div><div><div><div class="gmail_quote">On Thu, Oct 4, 2012 at 12:34 PM, Rainer Schubert <span dir="ltr"><<a href="mailto:rainer.hartwig.schubert@gmail.com" target="_blank">rainer.hartwig.schubert@gmail.com</a>></span> wrote:<br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">Hi <span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px">André,</span><div>
<font color="#222222" face="arial, sans-serif"><br></font></div><div><font color="#222222" face="arial, sans-serif">thank you very much for your help. When I use:</font></div>
<div><font color="#222222" face="arial, sans-serif"><br></font></div><div>REQUIREMENTS="HOSTNAME = \"myhost\""</div><div><br></div><div>The created VM is still in pending mode. When I look into the Live-Template "VM Template" my option was supplemented with a cluster option:</div>
<div><br></div><table style="width:80%"><tbody><tr><td style="padding-top:6px;padding-bottom:6px;padding-left:0px;font-weight:bold;border-bottom-color:rgb(204,204,204);border-bottom-width:1px;border-bottom-style:solid">
REQUIREMENTS</td> <td style="padding-top:6px;padding-bottom:6px;border-bottom-color:rgb(204,204,204);border-bottom-width:1px;border-bottom-style:solid">CLUSTER_ID = 100 & ( HOSTNAME = "MyHost" )</td>
</tr></tbody></table><div> </div>
<div>My modified template under "virtual resources" look like this:</div><div><br></div><div><br></div><div>REQUIREMENTS="HOSTNAME = \"MyHost\""</div><div><br></div><div><br></div><div>So, Sunstone put the Clusteroption in to REQUIREMENTS by himself? MyHost is not in any Cluster, that is a standalone server.</div>
<div><br></div><div>best regards<div><div><br><br><div class="gmail_quote">2012/10/4 André Monteiro <span dir="ltr"><<a href="mailto:andre.monteir@gmail.com" target="_blank">andre.monteir@gmail.com</a>></span><br>
<blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote">
<div>Hi,</div><div> </div><div>Just check the VM checkbox and select "Deploy" on the menu, the existing hosts will appear to select where to deploy.</div><div>Also you can add on your template</div><div> </div>
<div>
REQUIREMENTS="HOSTNAME = \"myhost\""<br clear="all"><br>--<br>André Monteiro<br><br><br>
<br><br></div><div class="gmail_quote"><div><div>On Thu, Oct 4, 2012 at 12:01 PM, Rainer Schubert <span dir="ltr"><<a href="mailto:rainer.hartwig.schubert@gmail.com" target="_blank">rainer.hartwig.schubert@gmail.com</a>></span> wrote:<br>
</div></div><blockquote style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid" class="gmail_quote"><div><div>Hi,<div><br></div><div>I want create a new VM, which will be deployed always on the same host? In Sunstone I can't find the option in the CREATE popup menu. Is there a way to deploy a VM alsowas on same Host?</div>
<div>
<br></div><div>thank you</div>
<br></div></div>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>
</blockquote></div><br></div></div></div>
</blockquote></div><br>
</div></div></blockquote></div><br></div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br></div>