Bug 708935

Summary: Fail to convert a preallocated xen vm locally
Product: Red Hat Enterprise Linux 5 Reporter: Rita Wu <rwu>
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, whuang, 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:16:10 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 Rita Wu 2011-05-30 08:15:27 UTC
Description of problem:
Fail to convert a preallocated xen vm locally. Convert a sparse vm is OK.


Version-Release number of selected component (if applicable):
virt-v2v-0.7.1-4.el5
libguestfs-1.2.7-1.el5.13
zlib-1.2.3-3

How reproducible:
always

Steps to Reproduce:
1. In Kernel-xen, dump xml for a xen vm
 #virsh dumpxml xml  rhel4-32-min-2 > rhel4-32-min-2.xml

2. Shift from kernel-xen to kernel, convert the above vm locally
# virt-v2v -i libvirtxml rhel4-32-min-2.xml -os default -b breth0 
size (1572864000) < usage (1574404096) at /usr/lib/perl5/vendor_perl/5.8.8/Sys/VirtV2V/Connection/LibVirtXMLSource.pm line 157, <$qemuimg> line 4.

  
Actual results:
as steps mentioned

Expected results:
Convert locally vm successfully

Additional info:
# ll rhel4-32-hvm-min-2.img 
-rwxr-xr-x 1 root root 1572864000 May 30 14:44 rhel4-32-hvm-min-2.img

# ll -sh rhel4-32-hvm-min-2.img 
1.5G -rwxr-xr-x 1 root root 1.5G May 30 14:44 rhel4-32-hvm-min-2.img

# qemu-img info rhel4-32-hvm-min-2.img 
image: rhel4-32-hvm-min-2.img
file format: raw
virtual size: 1.5G (1572864000 bytes)
disk size: 1.5G


# cat rhel4-32-min-2.xml
<domain type='xen'>
  <name>rhel4-32-hvm-min-2</name>
  <memory>524288</memory>
  <currentMemory>524288</currentMemory>
  <vcpu>1</vcpu>
  <os>
    <type arch='x86_64' machine='xenfv'>hvm</type>
    <loader>/usr/lib/xen/boot/hvmloader</loader>
    <boot dev='hd'/>
..
    <disk type='file' device='disk'>
      <driver name='file'/>
      <source file='/var/lib/libvirt/images/rhel4-32-hvm-min-2.img'/>
      <target dev='hda' bus='ide'/>
    </disk>
    <disk type='block' device='cdrom'>
      <driver name='phy'/>
      <target dev='hdc' bus='ide'/>
      <readonly/>
    </disk>
...

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