[one-users] adding Xen host to KVM cloud

Steven Timm timm at fnal.gov
Thu Jan 6 12:58:30 PST 2011


[timm at fcl002 ~/OpenNebula]$ onecluster list
   ID     NAME
    0  default
    1      xen
[timm at fcl002 ~/OpenNebula]$ onehost list
   ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM 
STAT
   13 fcl003            default    1   1600   1599    800   23.5G   21.5G 
on
   14 fcl004            default    3   1600   1596    500   23.5G   16.8G 
on
   16 fcl005            default    2   1600   1599    600   23.5G   19.4G 
on
    8 fcl006            default    0   1600   1600   1600   23.5G   23.2G 
on
   17 fcl007            default    7   1600   1597   1200   23.5G    7.1G 
on
   12 fcl008            default    1   1600   1599    800   23.5G   21.2G 
on
   11 fcl009            default    0   1600   1600   1600   23.5G   23.2G 
on
   18 fcl010            xen        0   1600   1486   1600     24G    383M 
on


Whether I have

REQUIREMENTS = "CLUSTER\"=xen\""
(the name of the cluster with one xen node)
or
REQUIREMENTS = "HYPERVISOR\"=xen\""

my VM's just stay forever in pending state.

Interestingly enough, if
I put REQUIREMENTS = "HYPERVISOR=\"kvm\""
then the VM does match and launch just fine.

Also, some other users who are trying to launch
jobs and not specifying any hypervisor or cluster are ending up
on the xen node by accident.

No idea from the scheduler log as  to why it is not matching.

Steve

On Thu, 6 Jan 2011, Piotr Kandziora wrote:

> Hi,
>
> On Thu, Jan 6, 2011 at 9:20 PM, Steven Timm <timm at fnal.gov> wrote:
>>>>
>>>
>>> Is a restart of oned necessary?  If so will I lose all the running
>>> VM's on the cloud?
>>>
>>> Steve Timm
>>>
>>>
>>
>> It turned out that a restart of oned was necessary and I did not
>> lose all the running VM's in the cloud.
>>
>> Next question--if I have a working KVM OS image,
>> can I just install a kernel-xen in it, save it, and then
>> bring it up on the xen node?
>
> If you are using HVM you do not have to change image (only xen
> template). In case of PV you have to use kernel with domU support (of
> course you need change also template).
>
>  Also is there any way by
>> using requirements field in the template to require the instance
>> to launch on Xen? (I have defined a second cluster "xen" with
>> the one node in it.)
>>
>
> In accordence with
> http://opennebula.org/documentation:rel2.0:cluster_guide you can use:
> REQUIREMENTS = "CLUSTER = \"xen\""
> in your template file.
>
>
> Best regards
> Piotr Kandziora
> --
> Iris Cloud Project
>

-- 
------------------------------------------------------------------
Steven C. Timm, Ph.D  (630) 840-8525
timm at fnal.gov  http://home.fnal.gov/~timm/
Fermilab Computing Division, Scientific Computing Facilities,
Grid Facilities Department, FermiGrid Services Group, Group Leader.
Lead of FermiCloud project.



More information about the Users mailing list