Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-11-05 Thread Richard W.M. Jones
On Tue, Oct 21, 2014 at 04:37:12PM +0200, Sven Kieske wrote:
> 
> 
> On 21/10/14 16:13, Fabian Deutsch wrote:
> > AFAIK the new virt-v2v is still not supporting OVAs.
> 
> The manual at: http://libguestfs.org/virt-v2v.1.html
> makes me assume something else:
> 
> "-i ova is used for reading from a VMware ova source file."

This is correct, OVA import is supported and working, provided you use
the latest version and update all the supporting packages -- see my
earlier email on this thread.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-p2v converts physical machines to virtual machines.  Boot with a
live CD or over the network (PXE) and turn machines into KVM guests.
http://libguestfs.org/virt-v2v
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-11-05 Thread Richard W.M. Jones
On Mon, Oct 20, 2014 at 10:27:39PM -0700, Paul Jansen wrote:
> It seems that the newest virtv2v has dropped support for importing
> from an ESXi standalone machine - and now only works with vcenter.
> I didn't have any success with using the current virt-v2v attaching
> to an ESXi host.
[...]
> It seems my best option at the moment is to export the VMware VM as
> an OVA and then try and use a newer virt-v2v to import this into
> ovirt.

It's correct that we no longer allow direct connections to ESXi, and
also correct that using OVA is the way to go.

Make sure you are using the latest version of virt-v2v *AND* the
supporting packages.  If using RHEL 7.0 then you should be using the
repository here, and make sure to do a full 'yum update' to get all
the new packages:

https://www.redhat.com/archives/libguestfs/2014-May/msg00090.html

> Can someone suggest an alternative course of action?  It seems
> strange that I can't just import a disk into ovirt, construct a VM
> and attach the disk.

It's a missing feature of oVirt that you can't just upload a disk image.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
Read my programming and virtualization blog: http://rwmj.wordpress.com
virt-top is 'top' for virtual machines.  Tiny program with many
powerful monitoring features, net stats, disk stats, logging, etc.
http://people.redhat.com/~rjones/virt-top
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-23 Thread Paul Jansen
>>On 21/10/14 02:27, Paul Jansen wrote: >>>I've just been doing some searching 
>>to try and work out how to get a >>>vmware windows VM into ovirt. >>>It seems 
>>that the newest virtv2v has dropped support for importing >>>from an ESXi 
>>standalone machine - and now only works with vcenter.  I >>>didn't have any 
>>success with using the current virt-v2v attaching to >>>an ESXi host. 
I've prepared the VM by first removing the vmware tools and have 
>installled the various virtio drivers, as well as running the 
>'mergeide' registry file to enable IDE.  I've used 'qemu-img' to 
>convirt this VMDK file to QCOW2.  It does not appear that there is a 
>straightforward way for me to import this new qcow2 disk into ovirt. 
It seems my best option at the moment is to export the VMware VM as 
>an OVA and then try and use a newer virt-v2v to import this into ovirt. 
>Alternatively I could construct a VM in virt-manager and attach the 
>converted qcow2 disk
 to it, and then use virt-v2v to import this into >>>ovirt. >>Can someone 
suggest an alternative course of action?  It seems >>>strange that I can't just 
import a disk into ovirt,  construct a VM >>>and attach the disk. >>Is 
there anything int he works to make this process easier? >>Thanks, >>>Paul 
>>>
>Wrote this awhile back as a quick qcow to ovf implementation to import 
>into ovirt-engine/rhevm. There are newer options but this does the job 
>really quick. Will wrap the qcow image into an exploded ova structure or 
>zipped. You can then import it directly into engine with 
>engine-image-uploader.
> >https://jboggs.fedorapeople.org/guest-image-ovf-creator.py 
Thanks for all the replies with suggestions on how to tackle this.

I've tried Joey's script above and it does the trick nicely.
Having 'qemu-img', Joey's script referenced above plus engine-image-uploader on 
a machine allowed me to convert a VMDK file to QCOW2 and then push the resulant 
QCOW2 disk - wrapped in a basic VM - up to my ovirt export domain.
From there I was able to import it as a template, and then create a machine 
based on that template.
This was relatively simple.

I'm looking forward to seeing some integration in the oVirt UI that may handle 
this in future.
I have a VMware vcenter installation and often use the 'deploy from OVF 
template' menu item - which I just pass a http URI with the OVF/OVA and have it 
deploy a VM on my cluster.  This would be great to see in ovirt.___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Fernando Fuentes
Just try throwing ideas out there... I actually use virtualbox tools to convert 
all my disks...
VBoxManage clonehd

Once converted to a raw image I use KVM to import to my storage and than v2v to 
import it to oVirt.
I have a small script I wrote that does this automatically for me
I have converted .vdi, .vmdk, .qcow2, etc It has never fail me...


Sent from iPhone

> On Oct 21, 2014, at 2:38 PM, Joey Boggs  wrote:
> 
>> On 10/21/2014 11:23 AM, Federico Alberto Sayd wrote:
>>> On 21/10/14 02:27, Paul Jansen wrote:
>>> I've just been doing some searching to try and work out how to get a vmware 
>>> windows VM into ovirt.
>>> It seems that the newest virtv2v has dropped support for importing from an 
>>> ESXi standalone machine - and now only works with vcenter.  I didn't have 
>>> any success with using the current virt-v2v attaching to an ESXi host.
>>> 
>>> I've prepared the VM by first removing the vmware tools and have installled 
>>> the various virtio drivers, as well as running the 'mergeide' registry file 
>>> to enable IDE.  I've used 'qemu-img' to convirt this VMDK file to QCOW2.  
>>> It does not appear that there is a straightforward way for me to import 
>>> this new qcow2 disk into ovirt.
>>> 
>>> It seems my best option at the moment is to export the VMware VM as an OVA 
>>> and then try and use a newer virt-v2v to import this into ovirt.
>>> Alternatively I could construct a VM in virt-manager and attach the 
>>> converted qcow2 disk to it, and then use virt-v2v to import this into ovirt.
>>> 
>>> Can someone suggest an alternative course of action?  It seems strange that 
>>> I can't just import a disk into ovirt,  construct a VM and attach the disk.
>>> 
>>> Is there anything int he works to make this process easier?
>>> 
>>> Thanks,
>>> Paul
>>> 
>>> 
>>> 
>>> ___
>>> Users mailing list
>>> Users@ovirt.org
>>> http://lists.ovirt.org/mailman/listinfo/users
>> I have not found a way to import qcow2 disk into oVirt.
>> 
>> The last time I needed to import a qcow2 disk to oVirt I created a vm in a 
>> kvm server (my pc..) with virt-manager, then I added the qcow disk, and 
>> booted the vm with clonezilla. Then I created a VM in oVirt, provisioned 
>> with similar disks and booted also with clonezilla. Then I cloned from kvm 
>> to oVirt. After I deleted the native kvm vm and disks. In this way I 
>> bypassed all the import, export, ova compatibility, virt2virt, etc.
>> 
>> Simple and practical
>> 
>> Regards
>> 
>> 
>> ___
>> Users mailing list
>> Users@ovirt.org
>> http://lists.ovirt.org/mailman/listinfo/users
> 
> Wrote this awhile back as a quick qcow to ovf implementation to import into 
> ovirt-engine/rhevm. There are newer options but this does the job really 
> quick. Will wrap the qcow image into an exploded ova structure or zipped. You 
> can then import it directly into engine with engine-image-uploader.
> 
> https://jboggs.fedorapeople.org/guest-image-ovf-creator.py
> 
> 
> 
> 
> 
> https://jboggs.fedorapeople.org/guest-image-ovf-creator.py
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Joey Boggs

On 10/21/2014 11:23 AM, Federico Alberto Sayd wrote:

On 21/10/14 02:27, Paul Jansen wrote:
I've just been doing some searching to try and work out how to get a 
vmware windows VM into ovirt.
It seems that the newest virtv2v has dropped support for importing 
from an ESXi standalone machine - and now only works with vcenter.  I 
didn't have any success with using the current virt-v2v attaching to 
an ESXi host.


I've prepared the VM by first removing the vmware tools and have 
installled the various virtio drivers, as well as running the 
'mergeide' registry file to enable IDE.  I've used 'qemu-img' to 
convirt this VMDK file to QCOW2.  It does not appear that there is a 
straightforward way for me to import this new qcow2 disk into ovirt.


It seems my best option at the moment is to export the VMware VM as 
an OVA and then try and use a newer virt-v2v to import this into ovirt.
Alternatively I could construct a VM in virt-manager and attach the 
converted qcow2 disk to it, and then use virt-v2v to import this into 
ovirt.


Can someone suggest an alternative course of action?  It seems 
strange that I can't just import a disk into ovirt,  construct a VM 
and attach the disk.


Is there anything int he works to make this process easier?

Thanks,
Paul



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

I have not found a way to import qcow2 disk into oVirt.

The last time I needed to import a qcow2 disk to oVirt I created a vm 
in a kvm server (my pc..) with virt-manager, then I added the qcow 
disk, and booted the vm with clonezilla. Then I created a VM in oVirt, 
provisioned with similar disks and booted also with clonezilla. Then I 
cloned from kvm to oVirt. After I deleted the native kvm vm and disks. 
In this way I bypassed all the import, export, ova compatibility, 
virt2virt, etc.


Simple and practical

Regards


___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Wrote this awhile back as a quick qcow to ovf implementation to import 
into ovirt-engine/rhevm. There are newer options but this does the job 
really quick. Will wrap the qcow image into an exploded ova structure or 
zipped. You can then import it directly into engine with 
engine-image-uploader.


https://jboggs.fedorapeople.org/guest-image-ovf-creator.py





https://jboggs.fedorapeople.org/guest-image-ovf-creator.py
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Federico Alberto Sayd

On 21/10/14 02:27, Paul Jansen wrote:
I've just been doing some searching to try and work out how to get a 
vmware windows VM into ovirt.
It seems that the newest virtv2v has dropped support for importing 
from an ESXi standalone machine - and now only works with vcenter.  I 
didn't have any success with using the current virt-v2v attaching to 
an ESXi host.


I've prepared the VM by first removing the vmware tools and have 
installled the various virtio drivers, as well as running the 
'mergeide' registry file to enable IDE.  I've used 'qemu-img' to 
convirt this VMDK file to QCOW2.  It does not appear that there is a 
straightforward way for me to import this new qcow2 disk into ovirt.


It seems my best option at the moment is to export the VMware VM as an 
OVA and then try and use a newer virt-v2v to import this into ovirt.
Alternatively I could construct a VM in virt-manager and attach the 
converted qcow2 disk to it, and then use virt-v2v to import this into 
ovirt.


Can someone suggest an alternative course of action? It seems strange 
that I can't just import a disk into ovirt, construct a VM and attach 
the disk.


Is there anything int he works to make this process easier?

Thanks,
Paul



___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users

I have not found a way to import qcow2 disk into oVirt.

The last time I needed to import a qcow2 disk to oVirt I created a vm in 
a kvm server (my pc..) with virt-manager, then I added the qcow disk, 
and booted the vm with clonezilla. Then I created a VM in oVirt, 
provisioned with similar disks and booted also with clonezilla. Then I 
cloned from kvm to oVirt. After I deleted the native kvm vm and disks. 
In this way I bypassed all the import, export, ova compatibility, 
virt2virt, etc.


Simple and practical

Regards
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Sven Kieske


On 21/10/14 16:13, Fabian Deutsch wrote:
> AFAIK the new virt-v2v is still not supporting OVAs.

The manual at: http://libguestfs.org/virt-v2v.1.html
makes me assume something else:

"-i ova is used for reading from a VMware ova source file."

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Fabian Deutsch
- Original Message -
> On Tue, Oct 21, 2014 at 3:23 PM, Fabian Deutsch  wrote:
> 
> >
> >
> > Hey Paul,
> >
> > I think the OVA is what you need for Engine.
> > Once you get that file you can import it.
> > So: Use the OVA offered by the VMWare thing, or use a script like this one:
> >
> >
> > http://jenkins.ovirt.org/user/fabiand/my-views/view/Node/job/ovirt-appliance_engine-3.5_master_merged/ws/ovirt-appliance/engine-appliance/scripts/create_ova.py
> > depends on https://github.com/redhat-imaging/imagefactory
> >
> > To convert the qcow2 to an OVA.
> >
> > - fabian
> >
> >
> I remember not so much time ago that VMware generated OVA format was NOT
> compatible for import into oVirt/RHEV
> see for example this thread:
> http://lists.ovirt.org/pipermail/users/2014-August/027059.html

Oh, I didn't recall that a few minutes ago.

> Did anything change in the mean time and is perhaps the new virt-v2v
> available with ova functionality in it?

AFAIK the new virt-v2v is still not supporting OVAs.

That means, we need to create the ovas ourselfs using some script (like the one 
above).

- fabian

> Gianluca
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Gianluca Cecchi
On Tue, Oct 21, 2014 at 3:23 PM, Fabian Deutsch  wrote:

>
>
> Hey Paul,
>
> I think the OVA is what you need for Engine.
> Once you get that file you can import it.
> So: Use the OVA offered by the VMWare thing, or use a script like this one:
>
>
> http://jenkins.ovirt.org/user/fabiand/my-views/view/Node/job/ovirt-appliance_engine-3.5_master_merged/ws/ovirt-appliance/engine-appliance/scripts/create_ova.py
> depends on https://github.com/redhat-imaging/imagefactory
>
> To convert the qcow2 to an OVA.
>
> - fabian
>
>
I remember not so much time ago that VMware generated OVA format was NOT
compatible for import into oVirt/RHEV
see for example this thread:
http://lists.ovirt.org/pipermail/users/2014-August/027059.html
Did anything change in the mean time and is perhaps the new virt-v2v
available with ova functionality in it?

Gianluca
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Fabian Deutsch
- Original Message -
> I've just been doing some searching to try and work out how to get a vmware
> windows VM into ovirt.
> It seems that the newest virtv2v has dropped support for importing from an
> ESXi standalone machine - and now only works with vcenter.  I didn't have
> any success with using the current virt-v2v attaching to an ESXi host.
> 
> 
> I've prepared the VM by first removing the vmware tools and have installled
> the various virtio drivers, as well as running the 'mergeide' registry file
> to enable IDE.  I've used 'qemu-img' to convirt this VMDK file to QCOW2.  It
> does not appear that there is a straightforward way for me to import this
> new qcow2 disk into ovirt.
> 
> It seems my best option at the moment is to export the VMware VM as an OVA
> and then try and use a newer virt-v2v to import this into ovirt.

Hey Paul,

I think the OVA is what you need for Engine.
Once you get that file you can import it.
So: Use the OVA offered by the VMWare thing, or use a script like this one:

http://jenkins.ovirt.org/user/fabiand/my-views/view/Node/job/ovirt-appliance_engine-3.5_master_merged/ws/ovirt-appliance/engine-appliance/scripts/create_ova.py
depends on https://github.com/redhat-imaging/imagefactory

To convert the qcow2 to an OVA.

- fabian

> Alternatively I could construct a VM in virt-manager and attach the converted
> qcow2 disk to it, and then use virt-v2v to import this into ovirt.
> 
> Can someone suggest an alternative course of action?  It seems strange that I
> can't just import a disk into ovirt,  construct a VM and attach the disk.
> 
> Is there anything int he works to make this process easier?
> 
> Thanks,
> Paul
> 
> ___
> Users mailing list
> Users@ovirt.org
> http://lists.ovirt.org/mailman/listinfo/users
> 
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Paul Jansen
>On 21/10/14 07:27, Paul Jansen wrote: >>I've just been doing some searching to 
>try and work out how to get a vmware windows VM into ovirt. >>It seems that 
>the newest virtv2v has dropped support for importing from an ESXi standalone 
>machine - and now only works with vcenter.  I didn't have any success with 
>using the current virt-v2v attaching to an ESXi host. >>I've prepared the 
>VM by first removing the vmware tools and have installled the various virtio 
>drivers, as well as running the 'mergeide' registry file to enable IDE.  I've 
>used 'qemu-img' to convirt this VMDK file to QCOW2.  It does not appear that 
>there is a straightforward way for me to import this new qcow2 disk into 
>ovirt. It seems my best option at the moment is to export the VMware VM as 
>an OVA and then try and use a newer virt-v2v to import this into ovirt. 
>>>Alternatively I could construct a VM in virt-manager and attach the 
>converted qcow2 disk to it, and then use virt-v2v to
 import this into ovirt. Can someone suggest an alternative course of 
action?  It seems strange that I can't just import a disk into ovirt,  
construct a VM and attach the disk. Is there anything int he works to make 
this process easier?  >Did you consult the documentation of virt-v2v ? >Imho 
all the information you need is there, but I didn't test this >myself so ymmv. 
>Here's the link: virt-v2v >HTH >-- >Mit freundlichen Grüßen / Regards >Sven 
Kieske
  
  
virt-v2v
NAME SYNOPSIS DESCRIPTION INPUT AND OUTPUT MODES EXAMPLES Convert from VMware 
vCenter server to local libvirt Convert from ESX to RHEV-M/oVirt Convert disk 
image to OpenStack glance   
View on libguestfs.org Preview by Yahoo  
  


Hi Sven.
Yes, I've had a look at that doco.  I've even built up a Centos 7 machine and 
installed the EL7.1 libguestfs preview, which contains the very recent 1.28 
release of libguestfs.
I'd be most interested to hear peoples experiences doing these kinds of 
operations.
I remeber Sandro was soliciting feedback about how the import process could be 
improved not long ago.  It seems this is still an area that needs a bit of 
polish in ovirt - not to take away from the significant work that Richard Jones 
in doing with libguestfs and the associated tools.
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


Re: [ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-21 Thread Sven Kieske


On 21/10/14 07:27, Paul Jansen wrote:
> I've just been doing some searching to try and work out how to get a vmware 
> windows VM into ovirt.
> It seems that the newest virtv2v has dropped support for importing from an 
> ESXi standalone machine - and now only works with vcenter.  I didn't have any 
> success with using the current virt-v2v attaching to an ESXi host.
> 
> 
> I've prepared the VM by first removing the vmware tools and have installled 
> the various virtio drivers, as well as running the 'mergeide' registry file 
> to enable IDE.  I've used 'qemu-img' to convirt this VMDK file to QCOW2.  It 
> does not appear that there is a straightforward way for me to import this new 
> qcow2 disk into ovirt.
> 
> It seems my best option at the moment is to export the VMware VM as an OVA 
> and then try and use a newer virt-v2v to import this into ovirt.
> Alternatively I could construct a VM in virt-manager and attach the converted 
> qcow2 disk to it, and then use virt-v2v to import this into ovirt.
> 
> Can someone suggest an alternative course of action?  It seems strange that I 
> can't just import a disk into ovirt,  construct a VM and attach the disk.
> 
> Is there anything int he works to make this process easier?

Did you consult the documentation of virt-v2v ?
Imho all the information you need is there, but I didn't test this
myself so ymmv.

Here's the link:
http://libguestfs.org/virt-v2v.1.html

HTH

-- 
Mit freundlichen Grüßen / Regards

Sven Kieske

Systemadministrator
Mittwald CM Service GmbH & Co. KG
Königsberger Straße 6
32339 Espelkamp
T: +49-5772-293-100
F: +49-5772-293-333
https://www.mittwald.de
Geschäftsführer: Robert Meyer
St.Nr.: 331/5721/1033, USt-IdNr.: DE814773217, HRA 6640, AG Bad Oeynhausen
Komplementärin: Robert Meyer Verwaltungs GmbH, HRB 13260, AG Bad Oeynhausen
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users


[ovirt-users] importing a qcow2 disk into ovirt 3.5?

2014-10-20 Thread Paul Jansen
I've just been doing some searching to try and work out how to get a vmware 
windows VM into ovirt.
It seems that the newest virtv2v has dropped support for importing from an ESXi 
standalone machine - and now only works with vcenter.  I didn't have any 
success with using the current virt-v2v attaching to an ESXi host.


I've prepared the VM by first removing the vmware tools and have installled the 
various virtio drivers, as well as running the 'mergeide' registry file to 
enable IDE.  I've used 'qemu-img' to convirt this VMDK file to QCOW2.  It does 
not appear that there is a straightforward way for me to import this new qcow2 
disk into ovirt.

It seems my best option at the moment is to export the VMware VM as an OVA and 
then try and use a newer virt-v2v to import this into ovirt.
Alternatively I could construct a VM in virt-manager and attach the converted 
qcow2 disk to it, and then use virt-v2v to import this into ovirt.

Can someone suggest an alternative course of action?  It seems strange that I 
can't just import a disk into ovirt,  construct a VM and attach the disk.

Is there anything int he works to make this process easier?

Thanks,
Paul
___
Users mailing list
Users@ovirt.org
http://lists.ovirt.org/mailman/listinfo/users