Hi,<div><br></div><div>This is now implemented in the one-2.0 branch in git. There is a new DRIVER attribute for DISK. For KVM driver it is the format used for the disk device.</div><div><br></div><div>Example:</div><div><br>
</div><div>DISK = [ source = "path_to_file", target="hda", driver="qcow2",...]<br><br></div><div>will generate</div><div><disk type='file' device='disk'></div><div> <source file='path_to_image'></div>
<div> <target dev='hda'></div><div> <driver name='qemu' type='qcow2'></div><div></disk></div><div><br></div><div>If you are using the Image Repository you can add DRIVER to the image template (or add the DRIVER attribute with oneimage update). Or you may specify it in the VM template as:</div>
<div><br></div><div>DISK = [ name="my_image", driver="qcow2" ]</div><div><br></div><div>The type can be also specify for CONTEXT:</div><div><br></div><div>CONTEXT = [ driver="raw", SSH_KEY="AEE83..."]</div>
<div><br></div><div>Finally the driver defaults to raw, you can change that for all your images (including context) in $ONE_LOCATION/etc/vmm_ssh/vmm_ssh_kvm.conf with </div><div><br></div><div>DISK = [ driver = "raw" ]</div>
<div><br></div><div><br></div><div>Any feedback will be much appreciated!</div><div><br></div><div>Cheers</div><div><br></div><div>Ruben<br><div class="gmail_quote">On Tue, Oct 26, 2010 at 8:07 AM, Olivier Sallou <span dir="ltr"><<a href="mailto:olivier.sallou@irisa.fr">olivier.sallou@irisa.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<div text="#000000" bgcolor="#ffffff">
Hi,<br>
I also face this issue on an Ubuntu 10.10 which uses latest libvirt
etc...<br>
<br>
did you create a bug at opennebula ? <br>
<br>
Olivier<br>
<br>
<br>
Le 10/23/10 5:37 PM, Rangababu Chakravarthula a écrit :
<div><div></div><div class="h5"><blockquote type="cite">Rich<br>
It is libvirt that adds that flag. I am not exactly sure, starting
which version it started to do this. It wasn't doing this in
libvirt 0.75. I think starting 0.8 it has started to do this.<br>
<br>
Unless specified otherwise, by default libvirt marks driver type
as "raw" which gets passed as format flag to kvm. Because of this
qcow virtual size is not exposed to the guest.<br>
<br>
OpenNebula, when it creates the libvirt deployment file, doesn't
add any flag. We had to change LibvirtDriver.cc and specifically
add type=qcow2 attribute to the driver xml flag, and recompile
one.<br>
<br>
Here is a post regarding the same.<br>
<a href="http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-September/002894.html" target="_blank">http://lists.opennebula.org/htdig.cgi/users-opennebula.org/2010-September/002894.html</a><br>
<br>
Ranga<br>
<div class="gmail_quote">
On Fri, Oct 22, 2010 at 1:47 PM, Rich Wellner <span dir="ltr"><<a href="mailto:rkw@objenv.com" target="_blank">rkw@objenv.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">
<div bgcolor="#ffffff" text="#000000"> <font size="-1">Using
RC1 I just ran across a bug that was reported in August.
I've included the text of the email below. I just wanted
to give a heads up that it's still there. The weird part
is that I have no idea how it got triggered. I was able
to run images yesterday until about noon. Started playing
around with some other images and from there on out,
nothing would start because one kept requesting the raw
flag, including images that had previously been working.<br>
<br>
<br>
--------------------- PREVIOUS REPORT BELOW
-----------------------<br>
<br>
</font><span style="border-collapse:separate;color:rgb(0, 0, 0);font-family:Times;font-style:normal;font-variant:normal;font-weight:normal;letter-spacing:normal;line-height:normal;text-indent:0px;text-transform:none;white-space:normal;word-spacing:0px;font-size:medium">
<pre style="white-space:pre-wrap">Hello,
That is really weird as we have not added a format parameter to the
deployment file we use to create a VM. Could you please send us
$ONE_LOCATION/var/<vm_id>/deployment.0 of one of the VM's that fail?
Thank you
On Tue, Aug 24, 2010 at 2:17 PM, Martin Kopta <<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">martin at kopta.eu</a>> wrote:
><i> Hello,
</i>><i>
</i>><i> I am playing with latest checkout of ONE (branch one-2.0) and I found out
</i>><i> that my old images aren't working anymore (getting 'no bootable device' on
</i>><i> display). They were of type 'qcow2' which was no problem before (circa 3 weeks
</i>><i> ago). Anyway, I noticed that 'kvm' process does have 'format=raw' [1], so I
</i>><i> converted my images [2] to raw and it seems to be working now.
</i>><i>
</i>><i> Hope this helps someone.
</i>><i>
</i>><i> Best regards,
</i>><i> dum8d0g
</i>><i>
</i>><i> [1] /usr/bin/kvm -S -M pc-0.12 -enable-kvm -m 512 -smp 1,sockets=1,cores=1,threads=1 -name one-15 -uuid cea35f06-61cc-c87c-75bc-03e8c3cb637d -nodefaults -chardev socket,id=monitor,path=/var/lib/libvirt/qemu/one-15.monitor,server,nowait -mon chardev=monitor,mode=readline -rtc base=utc -no-acpi -boot c -drive file=/home/one/vms/15/images/disk.0,if=none,id=drive-ide0-0-0,boot=on,format=raw -device ide-drive,bus=ide.0,unit=0,drive=drive-ide0-0-0,id=ide0-0-0 -drive file=/home/one/vms/15/images/disk.1,if=none,media=cdrom,id=drive-ide0-1-0,readonly=on,format=raw -device ide-drive,bus=ide.1,unit=0,drive=drive-ide0-1-0,id=ide0-1-0 -device rtl8139,vlan=0,id=net0,mac=02:00:c0:a8:7a:05,bus=pci.0,addr=0x3 -net tap,fd=41,vlan=0,name=hostnet0 -chardev pty,id=serial0 -device isa-serial,chardev=serial0 -usb -vnc <a href="http://0.0.0.0:0" target="_blank">0.0.0.0:0</a> -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4
</i>><i> [2] qemu-img convert image.qcow2 -O raw image.raw
</i>></pre>
</span><br>
</div>
<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>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opennebula.org" target="_blank">Users@lists.opennebula.org</a>
<a href="http://lists.opennebula.org/listinfo.cgi/users-opennebula.org" target="_blank">http://lists.opennebula.org/listinfo.cgi/users-opennebula.org</a>
</pre>
</blockquote>
</div></div></div>
<br>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.opennebula.org">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></div><br><br clear="all"><br>-- <br>Dr. Ruben Santiago Montero<br>Associate Professor (Profesor Titular), Complutense University of Madrid<br><br>URL: <a href="http://dsa-research.org/doku.php?id=people:ruben" target="_blank">http://dsa-research.org/doku.php?id=people:ruben</a><br>
Weblog: <a href="http://blog.dsa-research.org/?author=7" target="_blank">http://blog.dsa-research.org/?author=7</a><br>
</div>