[one-users] Do not use qcow image format with latest ONE
Ruben S. Montero
rubensm at dacya.ucm.es
Fri Oct 29 12:00:31 PDT 2010
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
DISK = [ source = "path_to_file", target="hda", driver="qcow2",...]
<disk type='file' device='disk'>
<driver name='qemu' type='qcow2'>
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:
DISK = [ name="my_image", driver="qcow2" ]
The type can be also specify for CONTEXT:
CONTEXT = [ driver="raw", SSH_KEY="AEE83..."]
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
DISK = [ driver = "raw" ]
Any feedback will be much appreciated!
On Tue, Oct 26, 2010 at 8:07 AM, Olivier Sallou <olivier.sallou at irisa.fr>wrote:
> I also face this issue on an Ubuntu 10.10 which uses latest libvirt etc...
> did you create a bug at opennebula ?
> Le 10/23/10 5:37 PM, Rangababu Chakravarthula a écrit :
> 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.
> 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.
> 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.
> Here is a post regarding the same.
> On Fri, Oct 22, 2010 at 1:47 PM, Rich Wellner <rkw at objenv.com> wrote:
>> 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.
>> --------------------- PREVIOUS REPORT BELOW -----------------------
>> 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 <martin at kopta.eu <http://lists.opennebula.org/listinfo.cgi/users-opennebula.org>> wrote:
>> >* Hello,*>**>* I am playing with latest checkout of ONE (branch one-2.0) and I found out*>* that my old images aren't working anymore (getting 'no bootable device' on*>* display). They were of type 'qcow2' which was no problem before (circa 3 weeks*>* ago). Anyway, I noticed that 'kvm' process does have 'format=raw' , so I*>* converted my images  to raw and it seems to be working now.*>**>* Hope this helps someone.*>**>* Best regards,*>* dum8d0g*>**>*  /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 0.0.0.0:0 -vga cirrus -device virtio-balloon-pci,id=balloon0,bus=pci.0,addr=0x4*>*  qemu-img convert image.qcow2 -O raw image.raw*>
>> Users mailing list
>> Users at lists.opennebula.org
> Users mailing listUsers at lists.opennebula.orghttp://lists.opennebula.org/listinfo.cgi/users-opennebula.org
> Users mailing list
> Users at lists.opennebula.org
Dr. Ruben Santiago Montero
Associate Professor (Profesor Titular), Complutense University of Madrid
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Users