Hi all
I'm trying to migrate some LVM-backed Xen guests (there is no shared storage between the Xen hosts) to KVM hosts with shared backend storage (iSCSI). The Xen hosts are a mix of RHEL 5.3 up to RHEL 5.5 and the KVM hosts are RHEL6.
The problem I'm having is telling virt-v2v which storage pool to use. virt-v2v flatly refuses to use -op with iSCSI:
---
[root@kvm_host ~]# virt-v2v -ic xen+ssh://root@xen_host -op guest_lun --bridge br641 guest_to_migrate
root@xen_host's password:
root@xen_host's password:
virt-v2v: Failed to create storage volume: libvirt error code: 3, message: this function is not supported by the connection driver: storage pool does not support volume creation
---
Note that the iSCSI LUN has been defined in virt-manager and the resulting file in /etc/libvirt/storage/guest_lun.xml has been added to /etc/virt-v2v.conf as:
---
<virt-v2v>
...
<pool type='iscsi'>
<name>wv</name>
<uuid>bb7e02d9-5281-a456-8c3a-1a83abef6d3c</uuid>
<capacity>0</capacity>
<allocation>0</allocation>
<available>0</available>
<source>
<host name='192.168.1.10'/>
<device path='iqn.2006-01.com.openfiler:tsn.5945db2929e2'/>
</source>
<target>
<path>/dev/disk/by-path</path>
<permissions>
<mode>0700</mode>
<owner>-1</owner>
<group>-1</group>
</permissions>
</target>
</pool>
/virt-v2v>
---
The virt-v2v migration 'works' when I direct virt-v2v to migrate the guest to a file on the KVM server. This is no good as I then have to migrate the guest to the iSCSI LUN.
Can anyone advise how I can do this in a single step?
The KVM servers are:
- RHEL6
- Kernel: 2.6.32-71.el6.x86_64
Thanks in advance
CC
<b>Edit:</b> Fix tags
Post new comment