Bug 465587 - virt-p2v doesn't understand linux software raid.
Summary: virt-p2v doesn't understand linux software raid.
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-p2v
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-04 03:41 UTC by Brandon Perkins
Modified: 2019-07-11 07:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-30 10:00:47 UTC
Embargoed:


Attachments (Terms of Use)
virt-p2v.log (3.67 KB, text/plain)
2008-10-04 03:41 UTC, Brandon Perkins
no flags Details
fdisk -l output (6.31 KB, text/plain)
2008-10-04 03:43 UTC, Brandon Perkins
no flags Details
dmesg output (20.45 KB, text/plain)
2008-10-04 03:44 UTC, Brandon Perkins
no flags Details

Description Brandon Perkins 2008-10-04 03:41:42 UTC
Created attachment 319442 [details]
virt-p2v.log

Description of problem:
virt-p2v doesn't understand linux software raid.

Version-Release number of selected component (if applicable):
virt-p2v-0.9.7.iso 

How reproducible:
Always.

Steps to Reproduce:
1. Install Linux (my case, RHEL4) on a physical multi-drive (my case, 3 SCSI drives) system.
2. Create a Software RAID1 (This contained my /boot) and a Software RAID5 (This contained my single LVM Physical Volume) that spans the disks (I would assume this fails equally for RAID0, but did not test that).
3. Use virt-p2v LiveCD to transfer the image over to a Fully Virt Xen Host (in my case, RHEL5).
  
Actual results:
Failure due to not detecting that the partitions are software RAID, and instead is trying to read the partitions as Logical Volumes or some other formatted partition.

Expected results:
Should be able to detect the software raid and construct the disks in the virtual guest image.

Additional info:

Original dialog:
==========================================================
Hello,

I was in the process of moving a server using virt-p2v this evening,
when I came across the issue described at:

https://www.redhat.com/archives/et-mgmt-tools/2008-February/msg00037.html
https://www.redhat.com/archives/et-mgmt-tools/2008-February/msg00038.html
https://www.redhat.com/archives/et-mgmt-tools/2008-February/msg00039.html
https://www.redhat.com/archives/et-mgmt-tools/2008-February/msg00040.html

I was wondering if there is any progress on getting linux software raid
support.  I'm not really qualified to help with patches, but I'd be more
than happy to test any patches to get this functionality in.  It appears
I have a similar setup where I have three physical drives, three
identical partitions in a software RAID-1 (/boot), three identical
partitions for swap, and three identical partitions in a software RAID-5
(/).  And of course it bails out because it doesn't understand the
software raid type.  If there is a bug, or anything I can do to help on
this front, please let me know, as this has thrown a bit of a
monkey-wrench into a migration plan that I had, but could not test until
now.

Thanks!
Brandon
==========================================================

Response:
==========================================================
On Fri, Sep 19, 2008 at 07:23:22PM -0400, Brandon Perkins wrote:
> > I was wondering if there is any progress on getting linux software raid
> > support.  I'm not really qualified to help with patches, but I'd be more
> > than happy to test any patches to get this functionality in.  It appears
> > I have a similar setup where I have three physical drives, three
> > identical partitions in a software RAID-1 (/boot), three identical
> > partitions for swap, and three identical partitions in a software RAID-5
> > (/).  And of course it bails out because it doesn't understand the
> > software raid type.

Sorry I wasn't concentrating very hard on this list for the past
couple of weeks.

virt-p2v doesn't understand RAID devices at all.  There's no real
limitation here, it's just that you're the first person who has asked
about it.

Can you open a bug report, and also send the virt-p2v.log file from
your attempted installation.

Rich.

-- Richard Jones, Emerging Technologies, Red Hat http://et.redhat.com/~rjones virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into Xen guests. http://et.redhat.com/~rjones/virt-p2v 
==========================================================

Comment 1 Brandon Perkins 2008-10-04 03:43:26 UTC
Created attachment 319443 [details]
fdisk -l output

fdisk -l output

Comment 2 Brandon Perkins 2008-10-04 03:44:38 UTC
Created attachment 319444 [details]
dmesg output

dmesg output

Comment 3 Richard W.M. Jones 2009-03-06 16:35:45 UTC
Very old thread here:
https://www.redhat.com/archives/et-mgmt-tools/2008-April/msg00131.html

Yes, I need to look at this.  It's probably as simple as adding a kernel
module to the kickstart file, but unfortunately I have no hardware
to test this on.

Comment 4 Richard W.M. Jones 2011-08-30 10:00:47 UTC
There is a new version of virt-p2v and virt-v2v:
http://libguestfs.org/virt-v2v/


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