@Upendra Moturi: the setting of the vnc port is based on the VMID and it's unique. Also i havent any other applications or vms using vnc. <br><br>I think i found the problem: I'm using qcow2 image format to save disk space and I noticed that the DRIVER attribute is discarded in deployment file creation and i'm not able to use qcow2 format for my images. Without this i cant use images created with backing_file either. I put the <driver name='qemu' type='qcow2' /> by hand in the deployment file and deploy it manually and the image boot.<br>
To do this i left my "not-booting-vm" running so the link to the image wasnt deleted, i change few things in the deployment.0 file (the name, the vnc port, and i've add the driver tag) and used "virsh create deployment.0" command. The vm works fine and use the image with backing_file option.<br>
<br>I hope this feature will be fixed asap!<br><br>Here my template, deployment file generated by opennebula, the correct one, and the virsh dumpxml output.<br><br><br>Luca<br><br>~~~~~~~~ VM TEMPLATE FILE ~~~~~~~~~~~~~<br>
<br><br>NAME   = ubuntu.qcow2<br>MEMORY = 512<br>CPU=0.5<br><br>OS = [<br>    BOOT    ="hd",<br>    ROOT    ="hda"<br>]<br><br>DISK = [<br>    TYPE= "disk",<br>    DRIVER="qcow2",<br>
    SOURCE     = "/public/luca/ubuntu10.qcow2",<br>    TARGET     = "hda",<br>    CLONE     = "no",<br>    SAVE = "no"<br>]<br><br>INPUT = [ type = "tablet", bus = "usb" ]<br>
<br>GRAPHICS = [TYPE = "vnc", LISTEN = "localhost", port="5901"]<br>NIC    = [ NETWORK = "private" ]<br><br>FEATURES=[ acpi="no" ]<br><br><br>~~~~~~~~ DEPLOYMENT FILE ~~~~~~~~~~~~~<br>
<br><domain type='kvm'><br>    <name>one-61</name><br>    <memory>524288</memory><br>    <os><br>        <type>hvm</type><br>        <boot dev='hd'/><br>
    </os><br>    <devices><br>        <emulator>/usr/bin/kvm</emulator><br>        <disk type='file' device='disk'><br>            <source file='/var/lib/one//61/images/disk.0'/><br>
            <target dev='hda'/><br>        </disk><br>        <interface type='bridge'><br>            <source bridge='virbr0'/><br>            <mac address='02:00:c0:a8:7a:09'/><br>
        </interface><br>        <graphics type='vnc' listen='localhost' port='5961'/><br>        <input type='tablet' bus='usb'/><br>    </devices><br>    <features><br>
        <acpi/><br>    </features><br></domain><br><br><br><br>~~~~~~~~ WORKING DEPLOYMENT FILE ~~~~~~~~~~<br><br><domain type='kvm'><br>    <name>one-test</name> #Changed the name<br>
    <memory>524288</memory><br>    <os><br>        <type>hvm</type><br>        <boot dev='hd'/><br>    </os><br>    <devices><br>        <emulator>/usr/bin/kvm</emulator><br>
        <disk type='file' device='disk'><br>            <driver name='qemu' type='qcow2'/>  #Added this line<br>            <source file='/var/lib/one//61/images/disk.0'/><br>
            <target dev='hda'/><br>        </disk><br>        <interface type='bridge'><br>            <source bridge='virbr0'/><br>            <mac address='02:00:c0:a8:7a:09'/><br>
        </interface><br>        <graphics type='vnc' listen='localhost' port='5901'/>  #Changed vnc port<br>        <input type='tablet' bus='usb'/><br>    </devices><br>
    <features><br>        <acpi/><br>    </features><br></domain><br><br><br>
<br>~~~~~~~~ VIRSH DUMPXML # ~~~~~~~~~~~~~~~<br><br><strong></strong><br><domain type='kvm' id='70'><br>  <name>one-test</name><br>  <uuid>98cbf252-5f3c-005a-1b29-a66fad8882d9</uuid><br>
  <memory>524288</memory><br>  <currentMemory>524288</currentMemory><br>  <vcpu>1</vcpu><br>  <os><br>    <type arch='i686' machine='pc-0.12'>hvm</type><br>
    <boot dev='hd'/><br>  </os><br>  <features><br>    <acpi/><br>  </features><br>  <clock offset='utc'/><br>  <on_poweroff>destroy</on_poweroff><br>  <on_reboot>restart</on_reboot><br>
  <on_crash>destroy</on_crash><br>  <devices><br>    <emulator>/usr/bin/kvm</emulator><br>    <disk type='file' device='disk'><br>      <driver name='qemu' type='qcow2'/><br>
      <source file='/var/lib/one//61/images/disk.0'/><br>      <target dev='hda' bus='ide'/><br>    </disk><br>    <interface type='bridge'><br>      <mac address='02:00:c0:a8:7a:09'/><br>
      <source bridge='virbr0'/><br>      <target dev='vnet2'/><br>    </interface><br>    <input type='tablet' bus='usb'/><br>    <input type='mouse' bus='ps2'/><br>
    <graphics type='vnc' port='5901' autoport='no' listen='localhost'/><br>    <video><br>      <model type='cirrus' vram='9216' heads='1'/><br>    </video><br>
  </devices><br>  <seclabel type='dynamic' model='apparmor'><br>    <label>libvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9</label><br>    <imagelabel>libvirt-98cbf252-5f3c-005a-1b29-a66fad8882d9</imagelabel><br>
  </seclabel><br></domain><br><br><br><div class="gmail_quote">On Thu, Nov 18, 2010 at 9:56 AM, Upendra Moturi <span dir="ltr"><<a href="mailto:upendra.m@hexagrid.com" target="_blank">upendra.m@hexagrid.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Can you check libvirt logs of host.<br>Generally the below message comes when there is address already in use(vnc port). <br><div>error: monitor socket did not show up.: Connection refused<br></div>If change the vncport and try.<div>

<div></div><div><br><br>
<div class="gmail_quote">On Thu, Nov 18, 2010 at 2:15 PM, Ruben Diez <span dir="ltr"><<a href="mailto:rdiez@cesga.es" target="_blank">rdiez@cesga.es</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">


Try to comment the "GRAPHICS " stuff.... Do it works for this case??<br>
<br>
Regards<br>
<br>
Luca Lorenzini escribió:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I've some problems to create the exact vm template for any distribution different from Ubuntu. I want to try OpenSuse for my vm's images but or i get status failed [1] o if I delete the  KERNEL variable in the template I get "No bootable device". the image isnt corrupted, infact i can use it using kvm from console (kvm -hda /public/images/osuse.qcow2 -m 1024).<br>



Some suggestions?<br>
<br>
PS: It's possible to add in the website some tested and working templates?<br>
<br>
<br>
[1] ~~~~~~~~~~~ vm.log ~~~~~~~~~~~~~~~~~~~~~<br>
<br>
Wed Nov 17 17:29:15 2010 [VMM][I]: Generating deployment file: /var/lib/one/26/deployment.0<br>
Wed Nov 17 17:29:47 2010 [VMM][I]: Command execution fail: /tmp/one/vmm/kvm/deploy /var/lib/one//26/images/deployment.0<br>
Wed Nov 17 17:29:47 2010 [VMM][I]: STDERR follows.<br>
Wed Nov 17 17:29:47 2010 [VMM][I]: error: Failed to create domain from /var/lib/one//26/images/deployment.0<br>
Wed Nov 17 17:29:47 2010 [VMM][I]: error: monitor socket did not show up.: Connection refused<br>
Wed Nov 17 17:29:47 2010 [VMM][I]: ExitCode: 255<br>
Wed Nov 17 17:29:47 2010 [VMM][E]: Error deploying virtual machine<br>
Wed Nov 17 17:29:48 2010 [DiM][I]: New VM state is FAILED<br>
<br>
~~~~~~~~~~~ vm template ~~~~~~~~~~~~~~~~~~~~~<br>
<br>
NAME   = osuse test<br>
MEMORY =1024<br>
CPU=1<br>
<br>
OS = [<br>
    BOOT    ="hd",<br>
    KERNEL    ="/vmlinuz", # i made a link on / pointing at /boot/"kernel-file"<br>
    INITRD    ="/initrd", #i made a link on / pointing at /boot/"initrd-image-file"<br>
    ROOT    ="sda2" #mount execution on the vm states  "/dev/sda2 on / type ext4"<br>
]<br>
<br>
DISK = [<br>
    SOURCE     = "/public/images/osuse.qcow2",<br>
    TARGET     = "sda",<br>
    CLONE     = "no",<br>
    SAVE     = "no",<br>
   DRIVER     = "qcow2"<br>
]<br>
<br>
<br>
INPUT = [ type = "tablet", bus = "usb" ]<br>
GRAPHICS = [TYPE = "vnc", LISTEN = "localhost"]<br>
<br>
FEATURES=[ acpi="no" ]<br>
<br>
<br>
~~~~~~~~~~~ generated deployment ~~~~~~~~~~~~~~~~~~~~~<br>
<br>
<br>
<domain type='kvm'><br>
    <name>one-26</name><br>
    <memory>524288</memory><br>
    <os><br>
        <type>hvm</type><br>
        <kernel>/vmlinuz</kernel><br>
        <initrd>/initrd</initrd><br>
        <cmdline>root=/dev/sda2 </cmdline><br>
        <boot dev='hd'/><br>
    </os><br>
    <devices><br>
        <emulator>/usr/bin/kvm</emulator><br>
        <disk type='file' device='disk'><br>
            <source file='/var/lib/one//26/images/disk.0'/><br>
            <target dev='sda'/><br>
        </disk><br>
        <graphics type='vnc' listen='localhost' port='5926' /><br>
        <input type='tablet' bus='usb'/><br>
    </devices><br>
</domain><br>
<br>
------------------------------------------------------------------------<br>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
  <br>
</blockquote>
<br>
_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a><br>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a><br>
</blockquote></div><br><br clear="all"><br></div></div><font color="#888888">-- <br>Thanks and Regards,<br>Upendra.M<br>
</font></blockquote></div><br>