I try do use one of the images available from [1] These images comes in two flavors, one vmx, one ovf. I do not know how to convert one of these to centos6-libvirt-kvm virt-convert gives me an error $ virt-convert -i ovf -o virt-image path_to_image.ovf ERROR Couldn't convert disks: Disk conversion failed with exit status 1: qemu-img: Could not open 'path_to_image.vmdk' The vmdk does exist. It seems that qemu-img can not handle this vmdk format. I am also not sure if v2v could do it. I think the essence of my post is the question Is it possible to use vmx or ovf images with kvm, possibly after converting them? [1] http://info.puppetlabs.com/download-learning-puppet-VM.html -- Kind Regards, Markus Falb
<div>š</div><div>š</div><div>29.03.2013, 16:08, "Markus Falb" <markus.falb@fasel.at>:</div><blockquote type="cite"><p>I try do use one of the images available from [1]<br />These images comes in two flavors, one vmx, one ovf.<br /><br />I do not know how to convert one of these to centos6-libvirt-kvm<br /><br />virt-convert gives me an error<br /><br />$ virt-convert -i ovf -o virt-image path_to_image.ovf<br />ERROR šššCouldn't convert disks: Disk conversion failed with exit status<br />1: qemu-img: Could not open 'path_to_image.vmdk'<br /><br />The vmdk does exist. It seems that qemu-img can not handle this vmdk<br />format. I am also not sure if v2v could do it.<br /><br />I think the essence of my post is the question<br />Is it possible to use vmx or ovf images with kvm, possibly after<br />converting them?<br /><br />[1] <a href="http://info.puppetlabs.com/download-learning-puppet-VM.html">http://info.puppetlabs.com/download-learning-puppet-VM.html</a><br />-- <br />Kind Regards, Markus Falb<br /><br />_______________________________________________<br />CentOS-virt mailing list<br /><a href="mailto:CentOS-virt@centos.org">CentOS-virt@centos.org</a><br /><a href="http://lists.centos.org/mailman/listinfo/centos-virt">http://lists.centos.org/mailman/listinfo/centos-virt</a></p></blockquote><div>1) convert VirtualBox img-file to raw</div><div>2) KVM supports raw format</div><div>-- <br />ôÒÕÄÎÏ ÖÉÔØ ÎÉÞÅÇÏ ÎÅ ÄÅÌÁÑ, ÎÏ ÍÙ ÐÒÉ×ÙËÌÉ ÂÏÒÏÔØÓÑ Ó ÔÒÕÄÎÏÓÔÑÍÉ.</div>
Try to use qemu-img directly, like this: qemu-img convert -f vmdk -O raw Your-Original-Disk-Image.vmdk Raw-Disk-Image.img Zoltan On 3/29/2013 1:08 PM, Markus Falb wrote:> I try do use one of the images available from [1] > These images comes in two flavors, one vmx, one ovf. > > I do not know how to convert one of these to centos6-libvirt-kvm > > virt-convert gives me an error > > $ virt-convert -i ovf -o virt-image path_to_image.ovf > ERROR Couldn't convert disks: Disk conversion failed with exit status > 1: qemu-img: Could not open 'path_to_image.vmdk' > > The vmdk does exist. It seems that qemu-img can not handle this vmdk > format. I am also not sure if v2v could do it. > > I think the essence of my post is the question > Is it possible to use vmx or ovf images with kvm, possibly after > converting them? > > [1] http://info.puppetlabs.com/download-learning-puppet-VM.html
On 29.3.2013 15:17, Van wrote:> > > 29.03.2013, 16:08, "Markus Falb" <markus.falb at fasel.at>:...>> $ virt-convert -i ovf -o virt-image path_to_image.ovf >> ERROR Couldn't convert disks: Disk conversion failed with exit status >> 1: qemu-img: Could not open 'path_to_image.vmdk'> 1) convert VirtualBox img-file to rawThe question was *how* to convert. Anyways, I tried the virt-convert/qemu-img from Fedora 18 and it worked. -- Kind Regards, Markus Falb