<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi Carlos,<br><br><br>Please find the below details to resolve the VM pending state.<br><br><br>oneadmin@onefrontend:~$ onehost list<br><br> ID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT<br> 0 192.168.138.241 0 400 400 400 8189640 7408148 on<br><br><br>oneadmin@onefrontend:~$ onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br><br><br><br>Template file
details<br><br>oneadmin@onefrontend:~/one-template$ cat ttylinux.one<br>NAME = ttylinux1<br>CPU = 1<br>MEMORY = 128<br><br>DISK = [<br> source = "/srv/cloud/one/one-template/ttylinux.img",<br> target = "hda",<br> readonly = "no" ]<br><br>NIC = [ NETWORK = "Small network" ]<br><br>FEATURES=[ acpi="no" ]<br><br>#CONTEXT = [<br># hostname = "$NAME",<br># ip_public = "PUBLIC_IP",<br># files = "/path/to/init.sh /path/to/id_dsa.pub",<br># target = "hdc",<br># root_pubkey = "id_dsa.pub",<br># username = "opennebula",<br># user_pubkey = "id_dsa.pub"<br>#]<br># --- VNC server ---<br><br>GRAPHICS = [<br> type
= "vnc",<br> listen = "0.0.0.0",<br> passwd = "passwd",<br> port = "501"]<br><br><br>oneadmin@onefrontend:~/one-template$ onevm list<br> ID USER NAME STAT CPU MEM HOSTNAME TIME<br> 54 oneadmin ttylinux runn 0 131072 192.168.138.241 00 00:07:51<br> 55 oneadmin ttylinux runn 0 131072 192.168.138.241 00 00:07:24<br> 56 oneadmin ttylinux runn 0 131072 192.168.138.241 00 00:06:08<br> 57 oneadmin ttylinux runn 0 131072 192.168.138.241 00 00:05:00<br> 58 oneadmin ttylinux pend 0 0 00 00:03:31<br> 59 oneadmin
ttylinux pend 0 0 00 00:01:51<br><br><br>oneadmin@onefrontend:~/one-template$ onehost list<br> ID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT<br> 0 192.168.138.241 4 400 394 394 8189640 7343376 on<br><br><br>oneadmin@onefrontend:~/var$ onehost show 0<br>HOST 0 INFORMATION<br>ID :
0<br>NAME : 192.168.138.241<br>STATE : MONITORED<br>IM_MAD : im_kvm<br>VM_MAD : vmm_kvm<br>TM_MAD : tm_nfs<br><br>HOST SHARES<br>MAX MEM : 8189640<br>USED MEM (REAL) : 1016876<br>USED MEM (ALLOCATED) : 524288<br>MAX CPU : 400<br>USED CPU (REAL) :
10<br>USED CPU (ALLOCATED) : 400<br>RUNNING VMS : 4<br><br>MONITORING INFORMATION<br>ARCH=x86_64<br>CPUSPEED=2499<br>FREECPU=389.2<br>FREEMEMORY=7343080<br>HOSTNAME=onenode1<br>HYPERVISOR=kvm<br>MODELNAME=Intel(R) Xeon(R) CPU X3323 @ 2.50GHz<br>NETRX=0<br>NETTX=0<br>TOTALCPU=400<br>TOTALMEMORY=8189640<br>USEDCPU=10.8<br>USEDMEMORY=1016876<br><br>oneadmin@onefrontend:~/var$ cat sched.log<br><br>Fri Jul 30 19:31:01 2010 [SCHED][I]: Dispatching virtual machine 56 to HID: 0<br> 93177 Fri Jul 30 19:31:31 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93178 Fri Jul 30 19:31:31 2010 [VM][D]: Pending virtual machines :<br> 93179 Fri Jul 30 19:31:31 2010 [SCHED][I]: Select hosts<br> 93180 PRI HID<br>
93181 -------------------<br> 93182<br> 93183 Fri Jul 30 19:32:01 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93184 Fri Jul 30 19:32:01 2010 [VM][D]: Pending virtual machines : 57<br> 93185 Fri Jul 30 19:32:01 2010 [RANK][W]: No rank defined for VM<br> 93186 Fri Jul 30 19:32:01 2010 [SCHED][I]: Select hosts<br> 93187 PRI HID<br> 93188 -------------------<br> 93189 Virtual Machine: 57<br> 93190 0 0<br> 93191<br> 93192<br> 93193 Fri Jul 30 19:32:01 2010 [SCHED][I]: Dispatching virtual machine 57 to HID: 0<br> 93194 Fri Jul 30 19:32:31 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93195 Fri Jul 30 19:32:31 2010
[VM][D]: Pending virtual machines :<br> 93196 Fri Jul 30 19:32:31 2010 [SCHED][I]: Select hosts<br> 93197 PRI HID<br> 93198 -------------------<br> 93199<br> 93200 Fri Jul 30 19:33:01 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93201 Fri Jul 30 19:33:01 2010 [VM][D]: Pending virtual machines :<br> 93202 Fri Jul 30 19:33:01 2010 [SCHED][I]: Select hosts<br> 93203 PRI HID<br> 93204 -------------------<br> 93205<br> 93206 Fri Jul 30 19:33:31 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93207 Fri Jul 30 19:33:31 2010 [VM][D]: Pending virtual machines : 58<br> 93208 Fri Jul 30 19:33:31 2010 [RANK][W]: No rank defined for VM<br>
93209 Fri Jul 30 19:33:31 2010 [SCHED][I]: Select hosts<br> 93210 PRI HID<br> 93211 -------------------<br> 93212 Virtual Machine: 58<br> 93213<br> 93214<br> 93215 Fri Jul 30 19:34:01 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93216 Fri Jul 30 19:34:01 2010 [VM][D]: Pending virtual machines : 58<br> 93217 Fri Jul 30 19:34:01 2010 [RANK][W]: No rank defined for VM<br> 93218 Fri Jul 30 19:34:01 2010 [SCHED][I]: Select hosts<br> 93219 PRI HID<br> 93220 -------------------<br> 93221 Virtual Machine: 58<br> 93222<br> 93223<br> 93224 Fri Jul 30 19:34:31 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93225 Fri Jul 30
19:34:31 2010 [VM][D]: Pending virtual machines : 58<br> 93226 Fri Jul 30 19:34:31 2010 [RANK][W]: No rank defined for VM<br> 93227 Fri Jul 30 19:34:31 2010 [SCHED][I]: Select hosts<br> 93228 PRI HID<br> 93229 -------------------<br> 93230 Virtual Machine: 58<br> 93231<br> 93232<br> 93233 Fri Jul 30 19:35:01 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93234 Fri Jul 30 19:35:01 2010 [VM][D]: Pending virtual machines : 58<br> 93235 Fri Jul 30 19:35:01 2010 [RANK][W]: No rank defined for VM<br> 93236 Fri Jul 30 19:35:01 2010 [SCHED][I]: Select hosts<br> 93237 PRI HID<br> 93238 -------------------<br> 93239 Virtual Machine:
58<br> 93240<br> 93241<br> 93242 Fri Jul 30 19:35:31 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93243 Fri Jul 30 19:35:31 2010 [VM][D]: Pending virtual machines : 58 59<br> 93244 Fri Jul 30 19:35:31 2010 [RANK][W]: No rank defined for VM<br> 93245 Fri Jul 30 19:35:31 2010 [RANK][W]: No rank defined for VM<br> 93246 Fri Jul 30 19:35:31 2010 [SCHED][I]: Select hosts<br> 93247 PRI HID<br> 93248 -------------------<br> 93249 Virtual Machine: 58<br> 93250<br> 93251 Virtual Machine: 59<br> 93252<br> 93253<br> 93254 Fri Jul 30 19:36:01 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93255 Fri Jul 30 19:36:01 2010 [VM][D]: Pending virtual machines : 58 59<br> 93256 Fri Jul 30 19:36:01 2010 [RANK][W]: No rank defined for
VM<br> 93257 Fri Jul 30 19:36:01 2010 [RANK][W]: No rank defined for VM<br> 93258 Fri Jul 30 19:36:01 2010 [SCHED][I]: Select hosts<br> 93259 PRI HID<br> 93260 -------------------<br> 93261 Virtual Machine: 58<br> 93262<br> 93263 Virtual Machine: 59<br> 93264<br> 93265<br> 93266 Fri Jul 30 19:36:31 2010 [HOST][D]: Discovered Hosts (enabled): 0<br> 93267 Fri Jul 30 19:36:31 2010 [VM][D]: Pending virtual machines : 58 59<br> 93268 Fri Jul 30 19:36:31 2010 [RANK][W]: No rank defined for VM<br> 93269 Fri Jul 30 19:36:31 2010 [RANK][W]: No rank defined for VM<br> 93270 Fri Jul 30 19:36:31 2010 [SCHED][I]: Select hosts<br> 93271 PRI HID<br>
93272 -------------------<br> 93273 Virtual Machine: 58<br><br><br><br><br><br><br>Please find the oned log<br><br><br>Fri Jul 30 19:31:01 2010 [DiM][D]: Deploying VM 56<br>Fri Jul 30 19:31:01 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:31:01 2010 [VMM][D]: Message received: POLL SUCCESS 54 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: onefrontend:/srv/cloud/one/one-template/ttylinux.img 192.168.138.241:/srv/cloud/one/var//56/images/disk.0<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: DST: /srv/cloud/one/var//56/images/disk.0<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: Creating directory /srv/cloud/one/var//56/images<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: Executed "mkdir -p
/srv/cloud/one/var//56/images".<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//56/images".<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: Cloning /srv/cloud/one/one-template/ttylinux.img<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: Executed "cp /srv/cloud/one/one-template/ttylinux.img /srv/cloud/one/var//56/images/disk.0".<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: LOG - 56 tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//56/images/disk.0".<br><br>Fri Jul 30 19:31:02 2010 [TM][D]: Message received: TRANSFER SUCCESS 56 -<br><br>Fri Jul 30 19:31:03 2010 [VMM][D]: Message received: DEPLOY SUCCESS 56 one-56<br><br>Fri Jul 30 19:31:31 2010 [VMM][I]: Monitoring VM 55.<br>Fri Jul 30 19:31:31 2010 [VMM][I]: Monitoring VM 56.<br>Fri Jul 30 19:31:31 2010 [VMM][D]: Message received: POLL SUCCESS
55 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:31:31 2010 [VMM][D]: Message received: POLL SUCCESS 56 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:31:34 2010 [InM][I]: Monitoring host 192.168.138.241 (0)<br>Fri Jul 30 19:31:38 2010 [InM][D]: Host 0 successfully monitored.<br>Fri Jul 30 19:31:55 2010 [ReM][D]: VirtualMachineAllocate invoked<br>Fri Jul 30 19:31:55 2010 [DiM][D]: Allocating a new VM<br>Fri Jul 30 19:31:58 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:32:01 2010 [VMM][I]: Monitoring VM 54.<br>Fri Jul 30 19:32:01 2010 [ReM][D]: VirtualMachineDeploy invoked<br>Fri Jul 30 19:32:01 2010 [DiM][D]: Deploying VM 57<br>Fri Jul 30 19:32:01 2010 [VMM][D]: Message received: POLL SUCCESS 54 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: onefrontend:/srv/cloud/one/one-template/ttylinux.img
192.168.138.241:/srv/cloud/one/var//57/images/disk.0<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: DST: /srv/cloud/one/var//57/images/disk.0<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: Creating directory /srv/cloud/one/var//57/images<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: Executed "mkdir -p /srv/cloud/one/var//57/images".<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: Executed "chmod a+w /srv/cloud/one/var//57/images".<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: Cloning /srv/cloud/one/one-template/ttylinux.img<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: Executed "cp /srv/cloud/one/one-template/ttylinux.img /srv/cloud/one/var//57/images/disk.0".<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: LOG - 57 tm_clone.sh: Executed
"chmod a+w /srv/cloud/one/var//57/images/disk.0".<br><br>Fri Jul 30 19:32:02 2010 [TM][D]: Message received: TRANSFER SUCCESS 57 -<br><br>Fri Jul 30 19:32:02 2010 [VMM][D]: Message received: DEPLOY SUCCESS 57 one-57<br><br>Fri Jul 30 19:32:19 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:32:22 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:32:29 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:32:31 2010 [VMM][I]: Monitoring VM 55.<br>Fri Jul 30 19:32:31 2010 [VMM][I]: Monitoring VM 56.<br>Fri Jul 30 19:32:31 2010 [VMM][I]: Monitoring VM 57.<br>Fri Jul 30 19:32:31 2010 [VMM][D]: Message received: POLL SUCCESS 55 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:32:31 2010 [VMM][D]: Message received: POLL SUCCESS 56 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:32:31 2010 [VMM][D]: Message received: POLL SUCCESS 57 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:32:31 2010
[ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:33:01 2010 [VMM][I]: Monitoring VM 54.<br>Fri Jul 30 19:33:01 2010 [VMM][D]: Message received: POLL SUCCESS 54 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:33:04 2010 [InM][I]: Monitoring host 192.168.138.241 (0)<br>Fri Jul 30 19:33:08 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:33:08 2010 [InM][D]: Host 0 successfully monitored.<br>Fri Jul 30 19:33:24 2010 [ReM][D]: VirtualMachineAllocate invoked<br>Fri Jul 30 19:33:24 2010 [DiM][D]: Allocating a new VM<br>Fri Jul 30 19:33:27 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:33:31 2010 [VMM][I]: Monitoring VM 55.<br>Fri Jul 30 19:33:31 2010 [VMM][I]: Monitoring VM 56.<br>Fri Jul 30 19:33:31 2010 [VMM][I]: Monitoring VM 57.<br>Fri Jul 30 19:33:31 2010 [VMM][D]: Message received: POLL SUCCESS 55 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:33:31 2010 [VMM][D]: Message received:
POLL SUCCESS 56 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:33:31 2010 [VMM][D]: Message received: POLL SUCCESS 57 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:33:54 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:33:55 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:34:01 2010 [VMM][I]: Monitoring VM 54.<br>Fri Jul 30 19:34:01 2010 [VMM][D]: Message received: POLL SUCCESS 54 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:34:31 2010 [VMM][I]: Monitoring VM 55.<br>Fri Jul 30 19:34:31 2010 [VMM][I]: Monitoring VM 56.<br>Fri Jul 30 19:34:31 2010 [VMM][I]: Monitoring VM 57.<br>Fri Jul 30 19:34:31 2010 [VMM][D]: Message received: POLL SUCCESS 55 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:34:31 2010 [VMM][D]: Message received: POLL SUCCESS 56 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:34:31 2010 [VMM][D]: Message received: POLL SUCCESS 57 STATE=a
USEDMEMORY=131072<br><br>Fri Jul 30 19:34:34 2010 [InM][I]: Monitoring host 192.168.138.241 (0)<br>Fri Jul 30 19:34:38 2010 [InM][D]: Host 0 successfully monitored.<br>Fri Jul 30 19:35:01 2010 [VMM][I]: Monitoring VM 54.<br>Fri Jul 30 19:35:01 2010 [VMM][D]: Message received: POLL SUCCESS 54 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:35:04 2010 [ReM][D]: VirtualMachineAllocate invoked<br>Fri Jul 30 19:35:04 2010 [DiM][D]: Allocating a new VM<br>Fri Jul 30 19:35:10 2010 [ReM][D]: VirtualMachinePoolInfo method invoked<br>Fri Jul 30 19:35:31 2010 [VMM][I]: Monitoring VM 55.<br>Fri Jul 30 19:35:31 2010 [VMM][I]: Monitoring VM 56.<br>Fri Jul 30 19:35:31 2010 [VMM][I]: Monitoring VM 57.<br>Fri Jul 30 19:35:31 2010 [VMM][D]: Message received: POLL SUCCESS 57 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:35:31 2010 [VMM][D]: Message received: POLL SUCCESS 55 STATE=a USEDMEMORY=131072<br><br>Fri Jul 30 19:35:31 2010 [VMM][D]: Message
received: POLL SUCCESS 56 STATE=a USEDMEMORY=131072<br><br><br>Thanks & Regards,<br>Nagesh.<br><br><br><br><br>--- On <b>Fri, 7/30/10, Carlos Martín Sánchez <i><cmartins@fdi.ucm.es></i></b> wrote:<br><blockquote style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"><br>From: Carlos Martín Sánchez <cmartins@fdi.ucm.es><br>Subject: Re: [one-users] VM's are going to pending state though enough resources<br>To: "bathina nageswararao" <nag_bathina@yahoo.com><br>Cc: users@lists.opennebula.org<br>Date: Friday, July 30, 2010, 3:38 PM<br><br><div id="yiv96875471">Hi Bathina,<br><br>The only hint I can give you is that the VM may be requesting more resources than the ones available in your host. Or maybe you are using the REQUIREMENTS field making your host non-suitable to deploy the VM.<br>
<br>Please provide more information, like the VM template, the logs (oned.log and shed.log), the extended information of your host ($ onehost show 0) if you need more specific help.<br><br>Regards,<br>Carlos.<br><br clear="all">
Carlos Martín, Cloud Technology Engineer/Researcher<br>DSA Research Group: web <a rel="nofollow" target="_blank" href="http://dsa-research.org">http://dsa-research.org</a> and blog <a rel="nofollow" target="_blank" href="http://blog.dsa-research.org">http://blog.dsa-research.org</a><br>
OpenNebula Open Source Toolkit for Cloud Computing: <a rel="nofollow" target="_blank" href="http://www.OpenNebula.org">http://www.OpenNebula.org</a><br>
<br><br><div class="yiv96875471gmail_quote">On 30 July 2010 07:12, bathina nageswararao <span dir="ltr"><<a rel="nofollow" ymailto="mailto:nag_bathina@yahoo.com" target="_blank" href="/mc/compose?to=nag_bathina@yahoo.com">nag_bathina@yahoo.com</a>></span> wrote:<br><blockquote class="yiv96875471gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<table border="0" cellpadding="0" cellspacing="0"><tbody><tr><td style="font: inherit;" valign="top">Hi,<br><br>VM's are going to pending state though enough resources.<br><br>Any one please provide me the solution.<br>
<br>oneadmin@onefrontend:~$ onehost list<br> ID NAME RVM TCPU FCPU ACPU TMEM FMEM STAT<br> 0 192.168.138.241 4 400 388 388 8189640 6013732 on<br><br>Regards,<br>Nagesh.</td>
</tr></tbody></table><br>
<br>_______________________________________________<br>
Users mailing list<br>
<a rel="nofollow" ymailto="mailto:Users@lists.opennebula.org" target="_blank" href="/mc/compose?to=Users@lists.opennebula.org">Users@lists.opennebula.org</a><br>
<a rel="nofollow" target="_blank" href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
<br></blockquote></div><br>
</div></blockquote></td></tr></table><br>