[ovirt-users] [Libguestfs] virt-v2v import from KVM without storage-pool ?

Arik Hadas ahadas at redhat.com
Wed Jul 5 14:54:27 UTC 2017


On Wed, Jul 5, 2017 at 4:15 PM, Richard W.M. Jones <rjones at redhat.com>
wrote:

> On Wed, Jul 05, 2017 at 11:14:09AM +0200, Matthias Leopold wrote:
> > hi,
> >
> > i'm trying to import a VM in oVirt from a KVM host that doesn't use
> > storage pools. this fails with the following message in
> > /var/log/vdsm/vdsm.log:
> >
> > 2017-07-05 09:34:20,513+0200 ERROR (jsonrpc/5) [root] Error getting
> > disk size (v2v:1089)
> > Traceback (most recent call last):
> >   File "/usr/lib/python2.7/site-packages/vdsm/v2v.py", line 1078, in
> > _get_disk_info
> >     vol = conn.storageVolLookupByPath(disk['alias'])
> >   File "/usr/lib64/python2.7/site-packages/libvirt.py", line 4770,
> > in storageVolLookupByPath
> >     if ret is None:raise libvirtError('virStorageVolLookupByPath()
> > failed', conn=self)
> > libvirtError: Storage volume not found: no storage vol with matching path
> >
> > the disks in the origin VM are defined as
> >
> >     <disk type='file' device='disk'>
> >       <driver name='qemu' type='raw' cache='writethrough'/>
> >       <source file='/dev/kvm108/kvm108_img'/>
> >
> >     <disk type='file' device='cdrom'>
> >       <driver name='qemu' type='raw'/>
> >       <source file='/some/path/CentOS-7-x86_64-Minimal-1611.iso'/>
> >
> > is this a virt-v2v or oVirt problem?
>
> Well the stack trace is in the oVirt code, so I guess it's an oVirt
> problem.  Adding ovirt-users mailing list.
>

Right, import of KVM VMs to oVirt doesn't involve virt-v2v.
The current process gets the virtual size (i.e., capacity) and the actual
size (i.e., allocation) of the volume using libvirt api that seems to rely
on having the volume in a storage pool. So the process would need to be
extended in order to support the case of having volumes that are not part
of a storage pool.


>
> Rich.
>
> --
> Richard Jones, Virtualization Group, Red Hat
> http://people.redhat.com/~rjones
> Read my programming and virtualization blog: http://rwmj.wordpress.com
> virt-df lists disk usage of guests without needing to install any
> software inside the virtual machine.  Supports Linux and Windows.
> http://people.redhat.com/~rjones/virt-df/
>
> _______________________________________________
> Libguestfs mailing list
> Libguestfs at redhat.com
> https://www.redhat.com/mailman/listinfo/libguestfs
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20170705/c63800a6/attachment.html>


More information about the Users mailing list