[one-users] deploy a vm to a special hosts

Carlos Martín Sánchez cmartin at opennebula.org
Thu Oct 4 06:30:07 PDT 2012


Hi,

The core automatically sets the CLUSTER requirement if the VM uses one of
the following:
- an Image stored in a Datastore assigned to a Cluster
- a VNet assigned to a Cluster

You will need to add the Host to the Cluster, or use Images/Vnets available
to that Host.


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...

Regards
--
Carlos Martín, MSc
Project Engineer
OpenNebula - The Open-source Solution for Data Center Virtualization
www.OpenNebula.org | cmartin at opennebula.org |
@OpenNebula<http://twitter.com/opennebula><cmartin at opennebula.org>



On Thu, Oct 4, 2012 at 1:47 PM, Rainer Schubert <
rainer.hartwig.schubert at gmail.com> wrote:

> Hey André,
>
> 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.
>
> bye
>
>
> 2012/10/4 André Monteiro <andre.monteir at gmail.com>
>
>> Hi Rainer,
>>
>> I never had this change on a template before, but maybe 100 is the
>> default cluster, even when it doesn't exist.
>> About the pending state, is the used capacity full? Force the deployment
>> on over-commit with the "Deploy" button on actions top right menu.
>>
>> --
>> André Monteiro
>>
>>
>>
>>
>> On Thu, Oct 4, 2012 at 12:34 PM, Rainer Schubert <
>> rainer.hartwig.schubert at gmail.com> wrote:
>>
>>> Hi André,
>>>
>>> thank you very much for your help. When I use:
>>>
>>> REQUIREMENTS="HOSTNAME = \"myhost\""
>>>
>>> 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:
>>>
>>> REQUIREMENTS CLUSTER_ID = 100 & ( HOSTNAME = "MyHost" )
>>>
>>> My modified template under "virtual resources" look like this:
>>>
>>>
>>> REQUIREMENTS="HOSTNAME = \"MyHost\""
>>>
>>>
>>> So, Sunstone put the Clusteroption in to REQUIREMENTS by himself? MyHost
>>> is not in any Cluster, that is a standalone server.
>>>
>>> best regards
>>>
>>>
>>> 2012/10/4 André Monteiro <andre.monteir at gmail.com>
>>>
>>>> Hi,
>>>>
>>>> Just check the VM checkbox and select "Deploy" on the menu, the
>>>> existing hosts will appear to select where to deploy.
>>>> Also you can add on your template
>>>>
>>>>  REQUIREMENTS="HOSTNAME = \"myhost\""
>>>>
>>>> --
>>>> André Monteiro
>>>>
>>>>
>>>>
>>>>
>>>> On Thu, Oct 4, 2012 at 12:01 PM, Rainer Schubert <
>>>> rainer.hartwig.schubert at gmail.com> wrote:
>>>>
>>>>> Hi,
>>>>>
>>>>> 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?
>>>>>
>>>>> thank you
>>>>>
>>>>> _______________________________________________
>>>>> Users mailing list
>>>>> Users at lists.opennebula.org
>>>>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>>>>>
>>>>>
>>>>
>>>
>>
>
> _______________________________________________
> Users mailing list
> Users at lists.opennebula.org
> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20121004/917ac5d3/attachment-0001.htm>


More information about the Users mailing list