Bug 711744

Summary: virt-v2v can not convert guest which disk use the block device
Product: Red Hat Enterprise Linux 5 Reporter: Huang Wenlong <whuang>
Component: virt-v2vAssignee: Matthew Booth <mbooth>
Status: CLOSED WONTFIX QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.7CC: cwei, leiwang, mbooth, mkenneth, qguan, rjones, rwu, yupzhang
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-09-07 10:15:48 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Huang Wenlong 2011-06-08 10:37:33 UTC
Description of problem:

virt-v2v can not convert guest which disk use the block device 


Version-Release number of selected component (if applicable):

virt-v2v-0.7.1-4.el5
libvirt-0.8.2-20.el5
libguestfs-1.2.7-1.el5.15
hivex-1.2.2-1.el5.1
package augeas is not installed
virtio-win-1.0.1-3.52454.el5


How reproducible:
100%

Steps to Reproduce:
1.create a new pool in a usb device 

<pool type='disk'>
  <name>sdb</name>
  <source>
    <device path='/dev/sdb'>
    </device>
    <format type='dos'/>
  </source>
  <target>
    <path>/dev</path>
    <permissions>
      <mode>0700</mode>
      <owner>0</owner>
      <group>0</group>
    </permissions>
  </target>
</pool>

2.create a volume and setup a guest 

3.  convert the guest 
virt-v2v -ic qemu+ssh://10.66.11.181/system -os v2v5 test
root.11.181's password: 
virt-v2v: Failed to create storage volume: libvirt error code: 27, message: XML description for unknown volume format type none is not well formed or invalid
  
Actual results:
error exit

Expected results:
convert successfully 


Additional info:
can not convert to rhevm too :
virt-v2v: RHEV cannot handle volumes of format none

Comment 1 Huang Wenlong 2011-06-08 10:38:55 UTC
There are some perl -d info :

root.11.181's password: 
virt-v2v: Failed to create storage volume: libvirt error code: 27, message: XML description for unknown volume format type none is not well formed or invalid

 at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/Connection/LibVirtTarget.pm line 154
        Sys::VirtV2V::Connection::LibVirtTarget::create_volume('Sys::VirtV2V::Connection::LibVirtTarget=HASH(0x1667dde0)', 'sdb1', 'none', 3881116160, 0) called at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/Connection/Source.pm line 223
        Sys::VirtV2V::Connection::Source::copy_storage('Sys::VirtV2V::Connection::LibVirtSource=HASH(0x171081d0)', 'Sys::VirtV2V::Connection::LibVirtTarget=HASH(0x1667dde0)', 'undef', 'undef') called at /usr/bin/virt-v2v line 430

Comment 3 RHEL Program Management 2011-09-07 10:15:48 UTC
Development Management has reviewed and declined this request.  You may appeal
this decision by reopening this request.