<div dir="ltr"><b>Hi Sir,</b><br><br> I tried creating vm, but the vm got stuck in "PROLOG" state only and after sometime goes to "FAILED" state.....<br><br>I am using 2 m/c's where first m/c has opennebula 
3.9.80 in it and acts as Frontend m/c & the second m/c has Ubuntu 
12.04 os with XEN hypervisor in it.....<br>
<br>First, in frontend m/c i imported the <b>"CentOS Server 5.8 - xen" </b>os from marketplace and after it came to <b>"Ready"</b> state, i started creating template...<br><br>At
 the time of creating template gave the template name, set the cpu &
 vcpu with memory.....In storage tab selected the imported image as 
Disk, selected the created Network,.... using Opennebula sunstone gui.......<br>
<br>In OS Booting tab, i have selected these things:-<br><b>Arch :- x86_64<br></b><b>Boot :- HD<br></b><b>Root :- sda1<br></b><b>kernel_cmd :- ro<br></b><b>Bootloader :- /usr/lib/xen-4.1/bin/pygrub</b><br>

<br><table><tbody><tr><td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">CPU</td>                    <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



0.5</td>                </tr><tr>                  <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">OS</td>                  <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



                  <br></td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">ROOT</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



sda1</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">BOOTLOADER</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



/usr/lib/xen-4.1/bin/pygrub</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">ARCH</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



x86_64</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">BOOT</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



hd</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">KERNEL_CMD</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



ro</td>                </tr><tr>                  <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">DISK</td>                  <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



                  <br></td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">IMAGE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



CentOS Server 5.8 - xen</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">CLONE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



YES</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">SOURCE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



/var/lib/one/var/datastores/100/d985d5a5d29de9cfa8094ed02db3081d</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



DATASTORE_ID</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">100</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



DEV_PREFIX</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">hd</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



TARGET</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">hda</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



IMAGE_ID</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">10</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



READONLY</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">NO</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



TM_MAD</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">shared</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



SAVE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">NO</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



DATASTORE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">user_ds</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



TYPE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">FILE</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



DISK_ID</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">0</td>                </tr><tr>                    <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



VCPU</td>                    <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">1</td>                </tr><tr>                  <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



NIC</td>                  <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">                  <br></td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



VLAN</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">NO</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



IP6_LINK</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">fe80::400:c0ff:fea8:8ccc</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



NIC_ID</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">0</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



NETWORK</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">localhost</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



MAC</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">02:00:c0:a8:8c:cc</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



BRIDGE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">br0</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



NETWORK_ID</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">1</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



IP</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">192.168.140.204</td>                </tr><tr>                    <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



MEMORY</td>                    <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">512</td>                </tr><tr>                  <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



GRAPHICS</td>                  <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">                  <br></td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



LISTEN</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">0.0.0.0</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



PORT</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">5934</td>                </tr><tr>                    <td style="padding-left:25px;font-weight:normal;border-bottom:0pt none;padding-top:1px;padding-bottom:1px">



TYPE</td>                    <td style="border-bottom:0pt none;padding-top:1px;padding-bottom:1px">VNC</td>                </tr><tr>                    <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



TEMPLATE_ID</td>                    <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">19</td>                </tr><tr>                    <td style="padding-left:0px;font-weight:bold;border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">



VMID</td>                    <td style="border-bottom:1px solid rgb(204,204,204);padding-top:6px;padding-bottom:6px">34</td></tr></tbody></table><br><br>In Kernel & Ramdisk tab, <b style="color:rgb(255,0,0)">there is nothing to selec</b>t.......<br>



<br>In Input/Output tab selected the vnc and then gave <b>"CREATE"</b> ..... template was created successfully....<br><br>After creating template gave instantiate and the vm got created but it is going to <b style="color:rgb(255,0,0)">"PROLOG"</b> state and then goes to <b style="color:rgb(255,0,0)">"FAILED"</b> state and not coming to <b>"ON"</b> state......<br clear="all">

<br>So, I tried creating Template manually, but then also VM's goes to <b>"PROLOG"</b> state and then to <b style="color:rgb(255,0,0)">"FAILED" </b>state..<br>
<br>Please find my template below:-<br><br>#---------------------------------------<br># VM definition example<br>#---------------------------------------<br><br>NAME = "VmXen"<br>CPU    = 0.5<br>MEMORY = 512<br>
<br>#REQUIREMENTS = "HOSTNAME=\"node\""<br><br>RANK         = FREECPU<br><br># --- kernel & boot device ---<br><br>OS = [<br>kernel = "/boot/vmlinuz-3.2.0-23-generic-pae",<br>initrd = "/boot/initrd.img-3.2.0-23-generic-pae",<br>
    root = "sda1",<br>    boot = "sda"<br>    ]<br>#OS     = [ bootloader=/usr/lib/xen-4.1/bin/pygrub ]<br><br>DISK = [<br>#    image = "CentOS Server 5.8 - xen",<br>    IMAGE_ID = 10,<br>    target = "sda",<br>
    readonly = "no"<br>    ]<br><br>#DISK = [ type   = swap,        size   = 512]<br><br>NIC = [ NETWORK_ID = 1 ]<br>#NIC    = [ NETWORK = "localhost" ]<br>#NIC    = [ NETWORK = "Private network" ]<br>
<br>FEATURES=[ acpi="no" ]<br><br>GRAPHICS = [<br>type    = "vnc",<br>listen  = "localhost",<br>port    = "5902"<br>]<br><br>#CONTEXT = [<br>#    hostname = "$NAME",<br>#    ip_public = "$NIC[IP, NETWORK=\"localhost\"]",<br>
#    files  = "/var/lib/one/templates/init.sh",<br>#    target = "sdc"<br>#    ]<br><br>RAW    = [type  = "xen", data  = "vcpus=1"]<br><br><div><div><br></div></div>Sir, please guide me if there is anything wrong in my template.....<br>


<br><b>And please find below the vm log details:-</b><br><div><div><div><div><div><br>Fri May  3 11:46:05 2013 [DiM][I]: New VM state is ACTIVE.<br>Fri May  3 11:46:05 2013 [LCM][I]: New VM state is PROLOG.<br><span>Fri May  3 11:53:30 2013 [LCM][E]: monitor_done_action, VM in a wrong state</span><br>


<span>Fri May  3 11:53:30 2013 [LCM][E]: monitor_done_action, VM in a wrong state</span><br><span>Fri May  3 12:04:08 2013 [LCM][E]: monitor_done_action, VM in a wrong state</span><br><span>Fri May  3 12:04:08 2013 [LCM][E]: monitor_done_action, VM in a wrong state</span><br>


Fri
 May  3 12:05:13 2013 [TM][I]: clone: Cloning 
/var/lib/one/var/datastores/100/d985d5a5d29de9cfa8094ed02db3081d in 
node1:/var/lib/one/var//datastores/0/36/disk.0<br>Fri May  3 12:05:13 2013 [TM][I]: ExitCode: 0<br>Fri
 May  3 12:05:14 2013 [TM][I]: Command execution fail: 
/var/lib/one/var/remotes/tm/shared/context 
/var/lib/one/var/vms/36/context.sh /var/lib/one/templates/init.sh 
node1:/var/lib/one/var//datastores/0/36/disk.1 36 0<br>Fri May  3 12:05:14 2013 [TM][I]: context: Generating context block device at node1:/var/lib/one/var//datastores/0/36/disk.1<br><span>Fri
 May  3 12:05:14 2013 [TM][E]: context: Command "cp -R 
/var/lib/one/templates/init.sh /var/lib/one/var/datastores/.isofiles/36"
 failed: cp: cannot stat `/var/lib/one/templates/init.sh': No such file 
or directory</span><br><span>Fri May  3 12:05:14 2013 [TM][E]: Error copying /var/lib/one/templates/init.sh to /var/lib/one/var/datastores/.isofiles/36</span><br>Fri May  3 12:05:14 2013 [TM][I]: ExitCode: 1<br>
<span>Fri
 May  3 12:05:14 2013 [TM][E]: Error executing image transfer script: 
Error copying /var/lib/one/templates/init.sh to 
/var/lib/one/var/datastores/.isofiles/36</span><br>Fri May  3 12:05:14 2013 [DiM][I]: New VM state is FAILED</div></div></div></div></div><br clear="all"><br>-- <br><div><p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<b><i><span style="font-size:18pt;font-family:Wingdings;color:gray" lang="EN-GB"></span></i></b><b><i><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:gray" lang="EN-GB">Regards,</span></i></b><b><i><span style="font-size:18pt;font-family:Wingdings;color:gray" lang="EN-GB"></span></i></b></p>
<p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b><i><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:gray" lang="EN-GB">Preetham. N</span></i></b></p>
<p style="margin:0px;color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><b><i><span style="font-size:10pt;font-family:'Trebuchet MS',sans-serif;color:gray" lang="EN-GB"><br>
</span></i></b></p></div><b><div><b><br></b></div><div><b><br></b></div><br></b>
</div>