Hi i'm using OpenNebula 1.4 with libvirtd 0.7.5. I'm using an ubuntu-10.4-desktop installation for my VMs and i'm trying to use qcow2 file system for the images. I said try because when i submit the template i get fail status and error message. I installed ubuntu on a 4GB raw image and, to save disk space, i converted it in qcow2 with the option "backing_file" to keep it safe (qemu-img create -f qcow2 -o backing_file=ubuntu.img ubuntu.qcow). When i use the raw image it will works fine, but if i use the qcow2 image i get the error listed <span class="number"></span><span class="definition">below.I noticed that changing in the deploying file the disk path to the qcow2 image and submitting the Vm with "</span>virsh --connect qemu:///system create /var/lib/one//25/deployment.0" command it works. So, what's the problem?<br>
<br><code><font size="4"><span style="font-family: arial,helvetica,sans-serif;"></span></font></code>--------------------------------<br>LOG FILE<br>--------------------------------<br>Tue Sep 21 17:23:15 2010 [DiM][I]: New VM state is ACTIVE.<br>
Tue Sep 21 17:23:16 2010 [LCM][I]: New VM state is PROLOG.<br>Tue Sep 21 17:23:16 2010 [VM][I]: Virtual Machine has no context<br>Tue Sep 21 17:23:16 2010 [TM][I]: tm_ln.sh: Creating directory /var/lib/one/25/images<br>Tue Sep 21 17:23:16 2010 [TM][I]: tm_ln.sh: Executed "mkdir -p /var/lib/one/25/images".<br>
Tue Sep 21 17:23:16 2010 [TM][I]: tm_ln.sh: Executed "chmod a+w /var/lib/one/25/images".<br>Tue Sep 21 17:23:16 2010 [TM][I]: tm_ln.sh: Link /home/luca/images/ubuntu.img<br>Tue Sep 21 17:23:16 2010 [TM][I]: tm_ln.sh: Executed "ln -s /home/luca/images/ubuntu.qcow2 /var/lib/one/25/images/disk.0".<br>
Tue Sep 21 17:23:16 2010 [LCM][I]: New VM state is BOOT<br>Tue Sep 21 17:23:16 2010 [VMM][I]: Generating deployment file: /var/lib/one/25/deployment.0<br>Tue Sep 21 17:23:47 2010 [VMM][I]: Command execution fail: 'mkdir -p /var/lib/one//25/images && cat > /var/lib/one//25/images/deployment.0 && virsh --connect qemu:///system create /var/lib/one//25/images/deployment.0'<br>
Tue Sep 21 17:23:47 2010 [VMM][I]: STDERR follows.<br>Tue Sep 21 17:23:47 2010 [VMM][I]: error: Failed to create domain from /var/lib/one//25/images/deployment.0<br>Tue Sep 21 17:23:47 2010 [VMM][I]: error: monitor socket did not show up.: Connection refused<br>
Tue Sep 21 17:23:47 2010 [VMM][I]: ExitCode: 1<br>Tue Sep 21 17:23:47 2010 [VMM][E]: Error deploying virtual machine<br>Tue Sep 21 17:23:48 2010 [DiM][I]: New VM state is FAILED<br>Tue Sep 21 17:23:48 2010 [TM][W]: Ignored: LOG - 25 tm_delete.sh: Deleting /var/lib/one/25/images<br>
<br>Tue Sep 21 17:23:48 2010 [TM][W]: Ignored: LOG - 25 tm_delete.sh: Executed "rm -rf /var/lib/one/25/images".<br><br>Tue Sep 21 17:23:48 2010 [TM][W]: Ignored: TRANSFER SUCCESS 25 <br>--------------------------------<br>
TEMPLATE FILE<br>--------------------------------<br><br>NAME   = ubuntu-desk.qcow2<br>MEMORY = 1024<br>CPU=1.0<br><br>OS = [<br>boot="hd",<br>kernel="/vmlinuz",<br>initrd="/initrd.img",<br>root="sda1"<br>
]<br><br>DISK = [<br>  source = "/home/luca/images/ubuntu.qcow2",<br>  target   = "sda",<br>  readonly = "no",<br>  clone = "no"<br>]<br><br>INPUT = [ type = "tablet", bus = "usb" ]<br>
GRAPHICS = [TYPE = "vnc", LISTEN = "localhost", PORT = 5913]<br>NIC    = [ NETWORK = "private" ]<br><br>FEATURES=[ acpi="no" ]<br><br><br><br>--------------------------------<br>DEPLOY FILE GENERATED<br>
--------------------------------<br><br><domain type='kvm'><br>    <name>one-25</name><br>    <memory>1048576</memory><br>    <os><br>        <type>hvm</type><br>        <kernel>/vmlinuz</kernel><br>
        <initrd>/initrd.img</initrd><br>        <cmdline>root=/dev/sda1 </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//25/images/disk.0'/><br>            <target dev='sda'/><br>        </disk><br>        <interface type='bridge'><br>
            <source bridge='virbr0'/><br>            <mac address='00:03:c0:a8:7a:07'/><br>        </interface><br>        <graphics type='vnc' listen='localhost' port='5913'/><br>
        <input type='tablet' bus='usb'/><br>    </devices><br></domain><br><br><br>Luca<br>