[one-users] unable to create EC2 instances

Upendra Sharma upendras at hotmail.com
Tue Mar 22 22:32:15 PDT 2011


Hi,

I have installed openNebula and it works fine to create private cloud but I am unable to create EC2 instances with the same setup. It will be a great help if someone could tell me whats going wrong over here.

problem: The VM keeps sitting to be scheduled and never gets scheduled to move to the next stage of prol.

For creating EC2 instances, I have followed the instructions on this link (http://www.opennebula.org/documentation:rel2.0:ec2g)

I added ec2 host using the following command

$ onehost create ec2 im_ec2 vmm_ec2 tm_dummy

$ onehost list
  ID NAME              CLUSTER  RVM   TCPU   FCPU   ACPU    TMEM    FMEM STAT
   0 obelix40          cloud1     0    800    798    800      4G    2.9G   on
   5 obelix43          cloud2     1    800    798    700      4G    2.4G   on
  10 ec2               default    0      0      0    100      0K      0K   on

Thereafter I created the template for vm on EC2
-------------------- ec2_template ----------------
CPU      = 0.5
MEMORY   = 128
RANK = HOSTNAME

#Xen or KVM template machine, this will be use when submitting this VM to local resources
#OS       = [kernel="/vmlinuz",initrd= "/initrd.img",root="sda1" ]
#DISK     = [source="/imges/apache.img",target="sda",readonly="no"]
#NIC      = [bridge="eth0"]

#EC2 template machine, this will be use wen submitting this VM to EC2
EC2 = [ AMI="ami-00bafcb5",
        KEYPAIR="upendra-keypair",
        AUTHORIZED_PORTS="22",
        INSTANCETYPE=m1.small]
#Add this if you want to use only EC2 cloud
REQUIREMENTS = "HOSTNAME = \"ec2\""
---------------------------------------------------------

I used the above mentioned template to create an EC2 instance using the following command:

$  onevm create ec2_template

$ onevm list
   ID     USER     NAME STAT CPU     MEM        HOSTNAME        TIME
    3  upendra   Proxy2 runn   0  511.8M        obelix43 00 02:56:35
   10  upendra   one-10 pend   0      0K                 00 00:22:21








My sched.log looks like this



======== sched.log ===============

Wed Mar 23 00:56:48 2011 [SCHED][I]: Init Scheduler Log system

Wed Mar 23 00:56:48 2011 [SCHED][I]: Starting scheduler loop...

Wed Mar 23 00:56:48 2011 [SCHED][I]: Scheduler loop started.

Wed Mar 23 00:57:18 2011 [HOST][D]: Discovered Hosts (enabled): 0 1 2 3 4 5 6 7 8 10

Wed Mar 23 00:57:18 2011 [VM][D]: Pending virtual machines : 9

Wed Mar 23 00:57:18 2011 [RANK][W]: No rank defined for VM

Wed Mar 23 00:57:18 2011 [SCHED][I]: Select hosts

        PRI     HID

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

Virtual Machine: 9



[ ...]





Wed Mar 23 01:26:18 2011 [HOST][D]: Discovered Hosts (enabled): 0 1 2 3 4 5 6 7 8 10

Wed Mar 23 01:26:18 2011 [VM][D]: Pending virtual machines : 10

Wed Mar 23 01:26:18 2011 [SCHED][I]: Select hosts

        PRI     HID

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

Virtual Machine: 10



================================================


my oned.log looks like this

===== oned.log============
Wed Mar 23 00:56:47 2011 [ONE][I]: Init OpenNebula Log system
Wed Mar 23 00:56:47 2011 [ONE][I]: Log Level: 3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG]
Wed Mar 23 00:56:47 2011 [ONE][I]: ----------------------------------------
Wed Mar 23 00:56:47 2011 [ONE][I]:      OpenNebula Configuration File
Wed Mar 23 00:56:47 2011 [ONE][I]: ----------------------------------------
Wed Mar 23 00:56:47 2011 [ONE][I]:
----------------------------------
DB=BACKEND=sqlite
DEBUG_LEVEL=3
DEFAULT_DEVICE_PREFIX=xvd
DEFAULT_IMAGE_TYPE=OS
HM_MAD=EXECUTABLE=one_hm
HOST_MONITORING_INTERVAL=600
IMAGE_REPOSITORY_PATH=/home/upendra/oneImageRepository
IM_MAD=ARGUMENTS=xen,EXECUTABLE=one_im_ssh,NAME=im_xen
IM_MAD=ARGUMENTS=im_ec2/im_ec2.conf,DEFAULT=im_ec2/im_ec2.conf,EXECUTABLE=one_im_ec2,NAME=im_ec2
MAC_PREFIX=02:00
MANAGER_TIMER=30
NETWORK_SIZE=254
PORT=2633
SCRIPTS_REMOTE_DIR=/tmp/one
TM_MAD=ARGUMENTS=tm_ssh/tm_ssh.conf,EXECUTABLE=one_tm,NAME=tm_ssh
TM_MAD=ARGUMENTS=tm_dummy/tm_dummy.conf,EXECUTABLE=one_tm,NAME=tm_dummy
VM_DIR=/home/upendra/vm_images/shared_images
VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE
VM_MAD=ARGUMENTS=xen,DEFAULT=vmm_ssh/vmm_ssh_xen.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_xen,TYPE=xen
VM_MAD=ARGUMENTS=vmm_ec2/vmm_ec2.conf,EXECUTABLE=one_vmm_ec2,NAME=vmm_ec2,TYPE=xml
VM_POLLING_INTERVAL=600
VNC_BASE_PORT=5900
----------------------------------
Wed Mar 23 00:56:47 2011 [ONE][I]: Bootstraping OpenNebula database.
Wed Mar 23 00:56:47 2011 [VMM][I]: Starting Virtual Machine Manager...
Wed Mar 23 00:56:47 2011 [VMM][I]: Virtual Machine Manager started.
Wed Mar 23 00:56:47 2011 [LCM][I]: Starting Life-cycle Manager...
Wed Mar 23 00:56:47 2011 [InM][I]: Starting Information Manager...
Wed Mar 23 00:56:47 2011 [TrM][I]: Starting Transfer Manager...
Wed Mar 23 00:56:47 2011 [LCM][I]: Life-cycle Manager started.
Wed Mar 23 00:56:47 2011 [InM][I]: Information Manager started.
Wed Mar 23 00:56:47 2011 [TrM][I]: Transfer Manager started.
Wed Mar 23 00:56:47 2011 [DiM][I]: Starting Dispatch Manager...
Wed Mar 23 00:56:47 2011 [ReM][I]: Starting Request Manager...
Wed Mar 23 00:56:47 2011 [ReM][I]: Starting XML-RPC server, port 2633 ...
Wed Mar 23 00:56:47 2011 [HKM][I]: Starting Hook Manager...
Wed Mar 23 00:56:47 2011 [DiM][I]: Dispatch Manager started.
Wed Mar 23 00:56:47 2011 [ReM][I]: Request Manager started.
Wed Mar 23 00:56:47 2011 [HKM][I]: Hook Manager started.
Wed Mar 23 00:56:49 2011 [VMM][I]: Loading Virtual Machine Manager drivers.
Wed Mar 23 00:56:49 2011 [VMM][I]:      Loading driver: vmm_xen (XEN)
Wed Mar 23 00:56:49 2011 [VMM][I]:      Driver vmm_xen loaded.
Wed Mar 23 00:56:49 2011 [VMM][I]:      Loading driver: vmm_ec2 (XML)
Wed Mar 23 00:56:49 2011 [VMM][I]:      Driver vmm_ec2 loaded.
Wed Mar 23 00:56:49 2011 [InM][I]: Loading Information Manager drivers.
Wed Mar 23 00:56:49 2011 [InM][I]:      Loading driver: im_xen
Wed Mar 23 00:56:49 2011 [InM][I]:      Driver im_xen loaded
Wed Mar 23 00:56:49 2011 [InM][I]:      Loading driver: im_ec2
Wed Mar 23 00:56:49 2011 [InM][I]:      Driver im_ec2 loaded
Wed Mar 23 00:56:49 2011 [TM][I]: Loading Transfer Manager drivers.
Wed Mar 23 00:56:49 2011 [VMM][I]:      Loading driver: tm_ssh
Wed Mar 23 00:56:49 2011 [TM][I]:       Driver tm_ssh loaded.
Wed Mar 23 00:56:49 2011 [VMM][I]:      Loading driver: tm_dummy
Wed Mar 23 00:56:49 2011 [TM][I]:       Driver tm_dummy loaded.
Wed Mar 23 00:56:49 2011 [HKM][I]: Loading Hook Manager driver.
Wed Mar 23 00:56:49 2011 [HKM][I]:      Hook Manager loaded
Wed Mar 23 00:57:17 2011 [InM][I]: Monitoring host ec2 (10)
Wed Mar 23 00:57:18 2011 [ReM][D]: HostPoolInfo method invoked

[...]

Wed Mar 23 01:25:18 2011 [ReM][D]: HostPoolInfo method invoked
Wed Mar 23 01:25:18 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Wed Mar 23 01:25:48 2011 [ReM][D]: HostPoolInfo method invoked
Wed Mar 23 01:25:48 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Wed Mar 23 01:26:17 2011 [InM][I]: Monitoring host ec2 (10)
Wed Mar 23 01:26:18 2011 [ReM][D]: HostPoolInfo method invoked
Wed Mar 23 01:26:18 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Wed Mar 23 01:26:45 2011 [VMM][I]: --Mark--
Wed Mar 23 01:26:47 2011 [InM][I]: --Mark--
Wed Mar 23 01:26:48 2011 [ReM][D]: HostPoolInfo method invoked
Wed Mar 23 01:26:48 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
Wed Mar 23 01:27:17 2011 [InM][I]: Monitoring host ec2 (10)
Wed Mar 23 01:27:18 2011 [ReM][D]: HostPoolInfo method invoked
Wed Mar 23 01:27:18 2011 [ReM][D]: VirtualMachinePoolInfo method invoked
======================================================




thanks,
-upendra
 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opennebula.org/pipermail/users-opennebula.org/attachments/20110323/94319612/attachment.htm>


More information about the Users mailing list