[one-users] adding Xen host to KVM cloud

Steven Timm timm at fnal.gov
Thu Jan 6 12:42:49 PST 2011


DOCS say I should be able to do

REQUIREMENTS = "HYPERVISOR=\"xen\""

I have done this in my template,

[timm at fcl002 ~/OpenNebula]$ onevm show 177
VIRTUAL MACHINE 177 INFORMATION
ID             : 177
NAME           : cloudmysql.fnal.gov
STATE          : PENDING
LCM_STATE      : LCM_INIT
START TIME     : 01/06 14:34:21
END TIME       : -
DEPLOY ID:     : -

VIRTUAL MACHINE MONITORING
NET_RX         : 0
USED MEMORY    : 0
USED CPU       : 0
NET_TX         : 0

VIRTUAL MACHINE TEMPLATE
CONTEXT=[
   FILES=/cloud/images/OpenNebula/templates/init.sh 
/home/timm/OpenNebula/k5login,
   GATEWAY=131.225.154.1,
   HOSTNAME=cloudmysql.fnal.gov,
   IP_PUBLIC=131.225.154.212,
   NETMASK=255.255.254.0,
   NS=131.225.8.120,
   ROOT_PUBKEY=id_dsa.pub,
   TARGET=hdc,
   USERNAME=opennebula,
   USER_PUBKEY=id_dsa.pub ]
CPU=2
DISK=[
   CLONE=YES,
   DISK_ID=0,
   IMAGE=cloudmysql-hybrid,
   IMAGE_ID=34,
   READONLY=NO,
   SAVE=NO,
   SOURCE=/var/lib/one/image-repo/fa1787c8130cd476fd57ad0cd53a384ea778f182,
   TARGET=sda,
   TYPE=DISK ]
DISK=[
   DISK_ID=1,
   SIZE=5120,
   TARGET=sdb,
   TYPE=swap ]
DISK=[
   BUS=scsi,
   DISK_ID=2,
   FORMAT=ext3,
   SAVE=yes,
   SIZE=4096,
   TARGET=sdc,
   TYPE=fs ]
FEATURES=[
   ACPI=no ]
GRAPHICS=[
   AUTOPORT=yes,
   KEYMAP=en-us,
   LISTEN=127.0.0.1,
   PORT=-1,
   TYPE=vnc ]
MEMORY=2048
NAME=cloudmysql.fnal.gov
NIC=[
   BRIDGE=xenbr0,
   MAC=00:16:3E:02:03:04 ]
REQUIREMENTS=HYPERVISOR="xen"
VCPU=2
VMID=177

----------------------

but VM stays pending forever.
[timm at fcl002 ~/OpenNebula]$ onehost show 18
HOST 18 INFORMATION
ID                    : 18
NAME                  : fcl010
CLUSTER               : xen
STATE                 : MONITORED
IM_MAD                : im_xen
VM_MAD                : vmm_xen
TM_MAD                : tm_ssh

HOST SHARES
MAX MEM               : 25155584
USED MEM (REAL)       : 24763392
USED MEM (ALLOCATED)  : 0
MAX CPU               : 1600
USED CPU (REAL)       : 1
USED CPU (ALLOCATED)  : 0
RUNNING VMS           : 0

MONITORING INFORMATION
ARCH=x86_64
CPUSPEED=2660
FREECPU=1599
FREEMEMORY=392192
HOSTNAME=fcl010.fnal.gov
HYPERVISOR=xen
MODELNAME=Intel(R) Xeon(R) CPU E5640 @ 2.67GHz
NETRX=10776773
NETTX=73603
TOTALCPU=1600
TOTALMEMORY=25155584
USEDCPU=1

As you see I do have one hypervisor=xen node as shown in
the onehost show virtual machine.

What's happening?

Steve


On Thu, 6 Jan 2011, Steven Timm 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?  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.)
>
> Steve
>
>
>> 
>
>

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