Re: [one-users] OpenNebula and OVA files support
Hi Jaime, Carlo We have also tried this script but the dd command in our case fails using these options conv=notrunc oflag=seek_bytes, so finally we have downloaded the latest qemu source code from github [1] and we have compiled it. The new version is now patched and it works fine with VMKD3 images :-) and we don't need to install virtualbox package. $ ./qemu-img -V qemu-img version 1.7.92, Copyright (c) 2004-2008 Fabrice Bellard usage: qemu-img command [command options] QEMU disk image utility The new compiled qemu-img binary is now available from our frontend to convert our images and we don't need to change Jamie's code :-) [1] http://wiki.qemu.org/Download Cheers and thanks! Alvaro Carlo, that's great! thank you very much. Avoiding installing VirtualBox in some scenarios is a great win. cheers, Jaime On Thu, Apr 10, 2014 at 5:59 PM, Carlo Daffara carlo.daff...@cloudweavers.eu wrote: In alternative, this simple bash script converts from VMDK3 to VMDK2: https://github.com/erik-smit/one-liners/blob/master/qemu-img.vmdk3.hack.sh description here: http://carlos-spitzer.com/tag/image-uses-a-vmdk-feature-which-is-not-supported-by-this-qemu-version-vmdk-version-3/ We use it with great results. cheers carlo daffara CloudWeavers - Messaggio originale - Da: Alvaro Simon asi...@cesga.es A: Jaime Melis jme...@opennebula.org Cc: Users OpenNebula users@lists.opennebula.org Inviato: Giovedì, 10 aprile 2014 17:07:50 Oggetto: Re: [one-users] OpenNebula and OVA files support Hi Jaime Hi Alvaro, yes, we are aware of that issue. While we wait for a newer qemu-img version, you may want to use VirtualBox instead of qemu-img for this task. You would need to change this: https://github.com/OpenNebula/addon-appmarket/blob/master/src/worker/lib/appliance_file_converter.rb#L7 with VBoxManage scripts, something like: VBoxManage clonehd #{s} #{t} --format VMDK Thanks a lot for the tip! we will use VBoxManage command meanwhile.. Cheers Alvaro cheers, Jaime On Thu, Apr 10, 2014 at 4:16 PM, Alvaro Simon asi...@cesga.es wrote: Dear all We are playing around with OVA files, some of them have VMDK version 3 imges inside, when you include a OVA file with oneimage, ON untar the file and creates a directory into the datastore, the question is if it will be suported the VMDK image conversion in ON in the future. I see that it exists a APP from appmarket to perform this action but It will be included into ON by default? We want to convert VMDK version 3 images to qcow or raw files to be used by KVM and this will help us to convert image files automatically. unfortunately old qemu-img versions does not support VMDK version 3 (in centos 6 as example). Cheers and thanks! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenNebula and OVA files support
Hi Alvaro, yes, we are aware of that issue. While we wait for a newer qemu-img version, you may want to use VirtualBox instead of qemu-img for this task. You would need to change this: https://github.com/OpenNebula/addon-appmarket/blob/master/src/worker/lib/appliance_file_converter.rb#L7 with VBoxManage scripts, something like: VBoxManage clonehd #{s} #{t} --format VMDK cheers, Jaime On Thu, Apr 10, 2014 at 4:16 PM, Alvaro Simon asi...@cesga.es wrote: Dear all We are playing around with OVA files, some of them have VMDK version 3 imges inside, when you include a OVA file with oneimage, ON untar the file and creates a directory into the datastore, the question is if it will be suported the VMDK image conversion in ON in the future. I see that it exists a APP from appmarket to perform this action but It will be included into ON by default? We want to convert VMDK version 3 images to qcow or raw files to be used by KVM and this will help us to convert image files automatically. unfortunately old qemu-img versions does not support VMDK version 3 (in centos 6 as example). Cheers and thanks! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenNebula and OVA files support
Hi Jaime Hi Alvaro, yes, we are aware of that issue. While we wait for a newer qemu-img version, you may want to use VirtualBox instead of qemu-img for this task. You would need to change this: https://github.com/OpenNebula/addon-appmarket/blob/master/src/worker/lib/appliance_file_converter.rb#L7 with VBoxManage scripts, something like: VBoxManage clonehd #{s} #{t} --format VMDK Thanks a lot for the tip! we will use VBoxManage command meanwhile.. Cheers Alvaro cheers, Jaime On Thu, Apr 10, 2014 at 4:16 PM, Alvaro Simon asi...@cesga.es wrote: Dear all We are playing around with OVA files, some of them have VMDK version 3 imges inside, when you include a OVA file with oneimage, ON untar the file and creates a directory into the datastore, the question is if it will be suported the VMDK image conversion in ON in the future. I see that it exists a APP from appmarket to perform this action but It will be included into ON by default? We want to convert VMDK version 3 images to qcow or raw files to be used by KVM and this will help us to convert image files automatically. unfortunately old qemu-img versions does not support VMDK version 3 (in centos 6 as example). Cheers and thanks! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenNebula and OVA files support
In alternative, this simple bash script converts from VMDK3 to VMDK2: https://github.com/erik-smit/one-liners/blob/master/qemu-img.vmdk3.hack.sh description here: http://carlos-spitzer.com/tag/image-uses-a-vmdk-feature-which-is-not-supported-by-this-qemu-version-vmdk-version-3/ We use it with great results. cheers carlo daffara CloudWeavers - Messaggio originale - Da: Alvaro Simon asi...@cesga.es A: Jaime Melis jme...@opennebula.org Cc: Users OpenNebula users@lists.opennebula.org Inviato: Giovedì, 10 aprile 2014 17:07:50 Oggetto: Re: [one-users] OpenNebula and OVA files support Hi Jaime Hi Alvaro, yes, we are aware of that issue. While we wait for a newer qemu-img version, you may want to use VirtualBox instead of qemu-img for this task. You would need to change this: https://github.com/OpenNebula/addon-appmarket/blob/master/src/worker/lib/appliance_file_converter.rb#L7 with VBoxManage scripts, something like: VBoxManage clonehd #{s} #{t} --format VMDK Thanks a lot for the tip! we will use VBoxManage command meanwhile.. Cheers Alvaro cheers, Jaime On Thu, Apr 10, 2014 at 4:16 PM, Alvaro Simon asi...@cesga.es wrote: Dear all We are playing around with OVA files, some of them have VMDK version 3 imges inside, when you include a OVA file with oneimage, ON untar the file and creates a directory into the datastore, the question is if it will be suported the VMDK image conversion in ON in the future. I see that it exists a APP from appmarket to perform this action but It will be included into ON by default? We want to convert VMDK version 3 images to qcow or raw files to be used by KVM and this will help us to convert image files automatically. unfortunately old qemu-img versions does not support VMDK version 3 (in centos 6 as example). Cheers and thanks! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org
Re: [one-users] OpenNebula and OVA files support
Carlo, that's great! thank you very much. Avoiding installing VirtualBox in some scenarios is a great win. cheers, Jaime On Thu, Apr 10, 2014 at 5:59 PM, Carlo Daffara carlo.daff...@cloudweavers.eu wrote: In alternative, this simple bash script converts from VMDK3 to VMDK2: https://github.com/erik-smit/one-liners/blob/master/qemu-img.vmdk3.hack.sh description here: http://carlos-spitzer.com/tag/image-uses-a-vmdk-feature-which-is-not-supported-by-this-qemu-version-vmdk-version-3/ We use it with great results. cheers carlo daffara CloudWeavers - Messaggio originale - Da: Alvaro Simon asi...@cesga.es A: Jaime Melis jme...@opennebula.org Cc: Users OpenNebula users@lists.opennebula.org Inviato: Giovedì, 10 aprile 2014 17:07:50 Oggetto: Re: [one-users] OpenNebula and OVA files support Hi Jaime Hi Alvaro, yes, we are aware of that issue. While we wait for a newer qemu-img version, you may want to use VirtualBox instead of qemu-img for this task. You would need to change this: https://github.com/OpenNebula/addon-appmarket/blob/master/src/worker/lib/appliance_file_converter.rb#L7 with VBoxManage scripts, something like: VBoxManage clonehd #{s} #{t} --format VMDK Thanks a lot for the tip! we will use VBoxManage command meanwhile.. Cheers Alvaro cheers, Jaime On Thu, Apr 10, 2014 at 4:16 PM, Alvaro Simon asi...@cesga.es wrote: Dear all We are playing around with OVA files, some of them have VMDK version 3 imges inside, when you include a OVA file with oneimage, ON untar the file and creates a directory into the datastore, the question is if it will be suported the VMDK image conversion in ON in the future. I see that it exists a APP from appmarket to perform this action but It will be included into ON by default? We want to convert VMDK version 3 images to qcow or raw files to be used by KVM and this will help us to convert image files automatically. unfortunately old qemu-img versions does not support VMDK version 3 (in centos 6 as example). Cheers and thanks! Alvaro ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org -- Jaime Melis Project Engineer OpenNebula - Flexible Enterprise Cloud Made Simple www.OpenNebula.org | jme...@opennebula.org ___ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org