<html><body><div style="color:#000; background-color:#fff; font-family:times new roman, new york, times, serif;font-size:12pt"><div><span><br></span></div><div>The problem is that xmlrpc call with TEMPLATE_ID = is not working properly.</div><div><br></div>  <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"> <div dir="ltr"> <font face="Arial" size="2"> <hr size="1">  <b><span style="font-weight: bold;">From:</span></b> Sajith Kalathingal <sajith.kalathingal@yahoo.in><br> <b><span style="font-weight: bold;">To:</span></b> Opennebula <users@lists.opennebula.org> <br> <b><span style="font-weight: bold;">Sent:</span></b> Thursday, 9 February 2012 5:53 PM<br> <b><span style="font-weight: bold;">Subject:</span></b> Problems using allocateFromTemplate(Client client, int templateId) java OCA<br> </font> </div> <br><div
 id="yiv1774435388"><div><div style="color: rgb(0, 0, 0); background-color: rgb(255, 255, 255); font-family: times new roman,new york,times,serif; font-size: 12pt;"><div>Hi,</div><div><br></div><div>I'm trying to allocate virtual machines using the following statement</div><div><br></div><div>allocateFromTemplate(Client client, int templateId). While doing this VM goes from pending->boot->fail.</div><div><br></div><div>There is nothing interesting on oned.log or OneResponse. </div><div><br></div><div>However individual VM log shows <br></div><div><br></div><div>Thu Feb  9 12:36:28 2012 [DiM][I]: New VM state is ACTIVE.<br>Thu Feb  9 12:36:28 2012 [LCM][I]: New VM state is PROLOG.<br>Thu Feb  9 12:36:28 2012 [VM][I]: Virtual Machine has no context<br>Thu Feb  9 12:36:28 2012 [LCM][I]: New VM state is BOOT<br>Thu Feb  9 12:36:28 2012 [VMM][I]: Generating deployment file: /var/lib/one/54/deployment.0<br>Thu Feb  9
 12:36:28 2012 [VMM][E]: No MEMORY
 defined and no default provided.<br>Thu Feb  9 12:36:28 2012 [VMM][E]: deploy_action, error generating deployment file: /var/lib/one/54/deployment.0<br>Thu Feb  9 12:36:28 2012 [DiM][I]: New VM state is FAILED<br></div><div><br></div><div><br></div><div>The template which I used is <br></div><div><br></div><div>NAME   = ttylinux<br>CPU    = 1<br>MEMORY = 450<br>PATH   = /var/lib/one/public/ttylinux.img<br><br>OS = [ KERNEL     = /vmlinuz,<br>       INITRD     = /initrd.img,<br>       ROOT       = sda1,<br>       KERNEL_CMD = "ro xencons=tty console=tty1"]<br><br>DISK   = [<br>  source   = "/var/lib/one/public/ttylinux.img",<br>  target   = "hda",<br>  readonly = "no" ]<br><br>NIC    = [
 NETWORK = "Small network1" ]<br><br>FEATURES=[ acpi="no" ]<br><br></div><div><br></div><div>I tried the same template with : onetemplate instantiate `templateid` and it is working fine. <br></div><div><br></div><div>I am using Opennebula 3.2.1.</div></div></div></div><br><br> </div> </div>  </div></body></html>