Bug 592195 - Filesystem corrupt after converting rhel4.8-32bit and 64bit xenhvm
Filesystem corrupt after converting rhel4.8-32bit and 64bit xenhvm
Status: CLOSED CURRENTRELEASE
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: virt-v2v (Show other bugs)
5.5
All Linux
low Severity medium
: rc
: ---
Assigned To: Matthew Booth
Virtualization Bugs
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-14 04:19 EDT by Rita Wu
Modified: 2013-07-02 21:39 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-06-07 21:56:13 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)
Screen Shot (181.88 KB, image/png)
2010-05-14 04:19 EDT, Rita Wu
no flags Details
Screen Shot after checking filesystem (68.85 KB, image/png)
2010-05-14 04:20 EDT, Rita Wu
no flags Details
log from LIBGUESTFS_TRACE=1 during conversion (4.89 KB, text/plain)
2010-05-14 04:21 EDT, Rita Wu
no flags Details
log from virt-inspect before conversion (265.78 KB, text/plain)
2010-05-14 04:22 EDT, Rita Wu
no flags Details
Screen shot of the "/etc/fstab, fdisk -l and lspci" after conversion (76.80 KB, image/png)
2010-05-14 05:24 EDT, Rita Wu
no flags Details

  None (edit)
Description Rita Wu 2010-05-14 04:19:08 EDT
Created attachment 413967 [details]
Screen Shot

Description of problem:
Before converting, both rhel4.8-32bit and 64bit xenhvm boot successfully. The guest has only 1 kernel:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE:  You have a /boot partition.  This means that
#          all kernel and initrd paths are relative to /boot/, eg.
#          root (hd0,0)
#          kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
#          initrd /initrd-version.img
#boot=/dev/hda
default=0
timeout=5
splashimage=(hd0,0)/grub/splash.xpm.gz
hiddenmenu
title Red Hat Enterprise Linux AS (2.6.9-89.EL)
	root (hd0,0)
	kernel /vmlinuz-2.6.9-89.EL ro root=/dev/VolGroup00/LogVol00 rhgb quiet
	initrd /initrd-2.6.9-89.EL.img


Version-Release number of selected component (if applicable):
v2v-libvirt-0.8.1-1.el5
virt-v2v-0.5.3-1.el5

How reproducible:
100%

Steps to Reproduce:
1.Convert rhel4.8 guest
 LIBGUESTFS_TRACE=1 virt-v2v -f /usr/share/doc/virt-v2v-0.5.3/virt-v2v.conf -i libvirtxml -o rhev -osd nfs:/export /tmp/xenfv-rhel48-64.img.xml  2>&1 >xenfv-rhel48-64_conversion.log
virt-v2v: WARNING: No mapping found for bridge interface xenbr0 in config file. The converted guest may not start until its network interface is updated.

2.Import the VM into "Virtual Machine" tab

Actual results:
Filesystem corrupt

Expected results:
Filesystem works well.

Additional info:
Comment 1 Rita Wu 2010-05-14 04:20:51 EDT
Created attachment 413968 [details]
Screen Shot after checking filesystem
Comment 2 Rita Wu 2010-05-14 04:21:43 EDT
Created attachment 413969 [details]
log from LIBGUESTFS_TRACE=1 during conversion
Comment 3 Rita Wu 2010-05-14 04:22:24 EDT
Created attachment 413970 [details]
log from virt-inspect before conversion
Comment 4 Richard W.M. Jones 2010-05-14 05:01:49 EDT
Not nice ..  My first suspect would be that virt-v2v is not
getting to do a sync, but looking at the attachment in comment 2
it seems it _is_ doing a sync (and umount).
Comment 5 Matthew Booth 2010-05-14 05:11:08 EDT
Linglu,

Could you please attach the contents of /etc/fstab? From the trace it doesn't look like the conversion changes it, so before or after conversion should be fine.
Comment 6 Rita Wu 2010-05-14 05:24:36 EDT
Created attachment 413989 [details]
Screen shot of the "/etc/fstab, fdisk -l and lspci" after conversion

Prior to conversion, /etc/fstab:
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
Comment 7 Rita Wu 2010-05-18 01:48:22 EDT
It cannot be reproduced in v2v-0.5.4-1.el5
Comment 8 Rita Wu 2010-05-18 01:48:56 EDT
(In reply to comment #7)
> It cannot be reproduced in v2v-0.5.4-1.el5    

I'll track it on the next build
Comment 9 Matthew Booth 2010-06-07 11:21:46 EDT
Can we close this one?
Comment 10 Rita Wu 2010-06-07 21:56:13 EDT
It cannot be reproduced in virt-v2v-0.6.0-3.el5. So close it.

Note You need to log in before you can comment on or make changes to this bug.