<div class="gmail_quote">Dear Sir/Madam,<br><br>Greetings. Thanks for your immediate respone. I have deleted the oneadmin user and again i have reconfigured opennebula. Now i have solved the previous now when i tried to create the vm, vm is always in pending state.<br>
<br>[oneadmin@smscluster ~]$ onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br> 17 oneadmin myttyser pend 0 0K 00 00:01:21<br><br>please help me to solve this issue.<br>
<br><br>
This is network file i have configured<br>============================<br><br>[oneadmin@smscluster ~]$ vim <a href="http://red.net" target="_blank">red.net</a><br><br>NAME = "LAN"<br>TYPE = RANGED<br><br># This vnet can be only used by the owner user<br>
PUBLIC = NO<br><br>#Now we'll use the cluster private network (physical)<br>BRIDGE = virbr0<br><br>NETWORK_SIZE = C<br>NETWORK_ADDRESS = 192.168.116.0<br><br>#Custom Attributes to be used in Context<br>GATEWAY = 192.168.116.1<br>
DNS = 192.168.116.1<br><br>This is the image configuration file<br><br>[oneadmin@smscluster ~]$ vim ttyimage.one <br><br>NAME = "TTYLINUX"<br>PATH = /srv/cloud/one/var/images/gt_compute_centos5.3.img<br>
PUBLIC = YES<br>DESCRIPTION = "Just for testing"<br><br>This is the vm configuration file<br><br>[oneadmin@smscluster ~]$ vim ttylinux.one <br><br>NAME = myttyserver<br>CPU = 0.1<br>MEMORY = 64<br>
OS = [<br> kernel = "/boot/vmlinuz-2.6.18-238.12.1.el5xen",<br> initrd = "/boot/initrd-sl4.img",<br> root = "sda" ]<br>DISK = [<br> source = "/srv/cloud/one/var/images/gt_compute_centos5.3.img",<br>
target = "hda",<br> readonly = "no" ]<br>NIC = [ NETWORK = "LAN" ]<br><br>FEATURES=[ acpi="no" ]<br>RAW = [ type = "xen", data = " <serial type='pty'> <source path='/dev/pts/3'/> <target port='1'/> </serial>" ]<br>
<br># Context example<br>CONTEXT = [<br> hostname = "$NAME",<br> ip_public = "$NIC[IP, NETWORK=\"LAN\"]",<br> files = "/home/oneadmin/init.sh /home/oneadmin/id_rsa.pub",<br>
target = "hdc",<br> root_pubkey = "id_rsa.pub",<br> username = "oneadmin",<br> user_pubkey = "id_rsa.pub"<br>]<br><br><br>Host Status<br>=========<br><br>
[oneadmin@smscluster ~]$ onehost list<br> ID NAME CLUSTER RVM TCPU FCPU ACPU TMEM FMEM STAT<br> 3 smscluster.care.m default 0 100 96 100 1015M 251M on<br><br><br>[oneadmin@smscluster ~]$ cat /srv/cloud/one/var/oned.log <br>
Mon Aug 29 23:05:28 2011 [ONE][I]: Init OpenNebula Log system<br>Mon Aug 29 23:05:28 2011 [ONE][I]: Log Level: 3 [0=ERROR,1=WARNING,2=INFO,3=DEBUG]<br>Mon Aug 29 23:05:28 2011 [ONE][I]: ----------------------------------------<br>
Mon Aug 29 23:05:28 2011 [ONE][I]: OpenNebula Configuration File <br>Mon Aug 29 23:05:28 2011 [ONE][I]: ----------------------------------------<br>Mon Aug 29 23:05:28 2011 [ONE][I]: <br>----------------------------------<br>
AUTH_MAD=EXECUTABLE=one_auth_mad<br>DB=BACKEND=sqlite<br>DEBUG_LEVEL=3<br>DEFAULT_DEVICE_PREFIX=xvd<br>DEFAULT_IMAGE_TYPE=OS<br>HM_MAD=EXECUTABLE=one_hm<br>HOST_HOOK=ARGUMENTS=$HID -r n,COMMAND=host_error.rb,NAME=error,ON=ERROR,REMOTE=no<br>
HOST_MONITORING_INTERVAL=600<br>IMAGE_REPOSITORY_PATH=/srv/cloud/var/one/images<br>IM_MAD=ARGUMENTS=xen,EXECUTABLE=one_im_ssh,NAME=im_xen<br>IM_MAD=ARGUMENTS=ganglia,EXECUTABLE=one_im_sh,NAME=im_ganglia<br>MAC_PREFIX=02:00<br>
MANAGER_TIMER=15<br>NETWORK_SIZE=254<br>PORT=2633<br>SCRIPTS_REMOTE_DIR=/var/tmp/one<br>TM_MAD=ARGUMENTS=tm_ssh/tm_ssh.conf,EXECUTABLE=one_tm,NAME=tm_ssh<br>VM_DIR=/srv/cloud/one/var<br>VM_HOOK=ARGUMENTS=$VMID,COMMAND=image.rb,NAME=image,ON=DONE<br>
VM_HOOK=ARGUMENTS=$VMID,COMMAND=/usr/bin/env onevm delete,NAME=on_failure_delete,ON=FAILED<br>VM_HOOK=ARGUMENTS=$VMID,COMMAND=/usr/bin/env onevm resubmit,NAME=on_failure_resubmit,ON=FAILED<br>VM_HOOK=ARGUMENTS=one-$VMID,COMMAND=ebtables-xen,NAME=ebtables-start,ON=running,REMOTE=yes<br>
VM_HOOK=ARGUMENTS="",COMMAND=ebtables-flush,NAME=ebtables-flush,ON=done,REMOTE=yes<br>VM_MAD=ARGUMENTS=xen,DEFAULT=vmm_ssh/vmm_ssh_xen.conf,EXECUTABLE=one_vmm_ssh,NAME=vmm_xen,TYPE=xen<br>VM_POLLING_INTERVAL=600<br>
VNC_BASE_PORT=5900<br>----------------------------------<br>Mon Aug 29 23:05:28 2011 [ONE][I]: Bootstraping OpenNebula database.<br>Mon Aug 29 23:05:28 2011 [VMM][I]: Starting Virtual Machine Manager...<br>Mon Aug 29 23:05:28 2011 [LCM][I]: Starting Life-cycle Manager...<br>
Mon Aug 29 23:05:28 2011 [InM][I]: Starting Information Manager...<br>Mon Aug 29 23:05:28 2011 [TrM][I]: Starting Transfer Manager...<br>Mon Aug 29 23:05:28 2011 [DiM][I]: Starting Dispatch Manager...<br>Mon Aug 29 23:05:28 2011 [ReM][I]: Starting Request Manager...<br>
Mon Aug 29 23:05:28 2011 [VMM][I]: Virtual Machine Manager started.<br>Mon Aug 29 23:05:28 2011 [LCM][I]: Life-cycle Manager started.<br>Mon Aug 29 23:05:28 2011 [InM][I]: Information Manager started.<br>Mon Aug 29 23:05:28 2011 [TrM][I]: Transfer Manager started.<br>
Mon Aug 29 23:05:28 2011 [DiM][I]: Dispatch Manager started.<br>Mon Aug 29 23:05:28 2011 [ReM][I]: Request Manager started.<br>Mon Aug 29 23:05:28 2011 [ReM][I]: Starting XML-RPC server, port 2633 ...<br>Mon Aug 29 23:05:28 2011 [HKM][I]: Starting Hook Manager...<br>
Mon Aug 29 23:05:28 2011 [AuM][I]: Starting Auth Manager...<br>Mon Aug 29 23:05:28 2011 [HKM][I]: Hook Manager started.<br>Mon Aug 29 23:05:28 2011 [AuM][I]: Authorization Manager started.<br>Mon Aug 29 23:05:30 2011 [VMM][I]: Loading Virtual Machine Manager drivers.<br>
Mon Aug 29 23:05:30 2011 [VMM][I]: Loading driver: vmm_xen (XEN)<br>Mon Aug 29 23:05:30 2011 [VMM][I]: Driver vmm_xen loaded.<br>Mon Aug 29 23:05:30 2011 [InM][I]: Loading Information Manager drivers.<br>Mon Aug 29 23:05:30 2011 [InM][I]: Loading driver: im_xen<br>
Mon Aug 29 23:05:30 2011 [InM][I]: Driver im_xen loaded<br>Mon Aug 29 23:05:30 2011 [InM][I]: Loading driver: im_ganglia<br>Mon Aug 29 23:05:30 2011 [InM][I]: Driver im_ganglia loaded<br>Mon Aug 29 23:05:30 2011 [TM][I]: Loading Transfer Manager drivers.<br>
Mon Aug 29 23:05:30 2011 [VMM][I]: Loading driver: tm_ssh<br>Mon Aug 29 23:05:30 2011 [TM][I]: Driver tm_ssh loaded.<br>Mon Aug 29 23:05:30 2011 [HKM][I]: Loading Hook Manager driver.<br>Mon Aug 29 23:05:30 2011 [HKM][I]: Hook Manager loaded<br>
Mon Aug 29 23:05:30 2011 [AuM][I]: Loading Auth. Manager driver.<br>Mon Aug 29 23:05:30 2011 [MAD][E]: MAD did not answer INIT command<br>Mon Aug 29 23:07:24 2011 [ReM][D]: UserPoolInfo method invoked<br>Mon Aug 29 23:07:32 2011 [ReM][D]: VirtualMachinePoolInfo method invoked<br>
Mon Aug 29 23:07:32 2011 [ReM][D]: VirtualNetworkPoolInfo method invoked<br>Mon Aug 29 23:10:58 2011 [InM][I]: Monitoring host <a href="http://smscluster.care.mit.in" target="_blank">smscluster.care.mit.in</a> (3)<br>Mon Aug 29 23:11:01 2011 [InM][D]: Host 3 successfully monitored.<br>
Mon Aug 29 23:11:03 2011 [ReM][D]: HostPoolInfo method invoked<br>Mon Aug 29 23:11:27 2011 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Mon Aug 29 23:11:35 2011 [ReM][D]: VirtualMachineAllocate invoked<br>Mon Aug 29 23:11:37 2011 [ReM][D]: VirtualMachineAllocate invoked<br>
Mon Aug 29 23:11:39 2011 [ReM][D]: VirtualMachineAllocate invoked<br>Mon Aug 29 23:11:41 2011 [ReM][D]: VirtualMachinePoolInfo method invoked<br><font color="#888888"><br>with thanks and regards,<br></font><div><div></div>
<div class="h5">G.Kannan,<br>Research Associate,<br>CARE,MIT,<br>Anna University Chennai.<br>
</div></div></div><br><br clear="all"><br><br>