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

Matthias Leopold matthias.leopold at meduniwien.ac.at
Wed Jul 5 09:14:09 UTC 2017


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?

thx
matthias




More information about the Libguestfs mailing list