Bug 1414505
Summary: | virt-p2v needs RHEL 5 build to support LSI Logic / Symbios Logic MegaRAID SAS 8208ELP/8208ELP | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Gajanan <gchakkar> | ||||||||
Component: | libguestfs | Assignee: | Richard W.M. Jones <rjones> | ||||||||
Status: | CLOSED CURRENTRELEASE | QA Contact: | Virtualization Bugs <virt-bugs> | ||||||||
Severity: | urgent | Docs Contact: | |||||||||
Priority: | unspecified | ||||||||||
Version: | 7.3 | CC: | jsuchane, juzhou, mxie, mzhan, ptoscano, rjones, snagar, tzheng, xiaodwan, xuzhang | ||||||||
Target Milestone: | rc | ||||||||||
Target Release: | --- | ||||||||||
Hardware: | All | ||||||||||
OS: | Linux | ||||||||||
Whiteboard: | P2V V2V | ||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||
Doc Text: | Story Points: | --- | |||||||||
Clone Of: | Environment: | ||||||||||
Last Closed: | 2017-02-16 14:19:24 UTC | Type: | Bug | ||||||||
Regression: | --- | Mount Type: | --- | ||||||||
Documentation: | --- | CRM: | |||||||||
Verified Versions: | Category: | --- | |||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||
Embargoed: | |||||||||||
Bug Depends On: | 1414510, 1414682 | ||||||||||
Bug Blocks: | |||||||||||
Attachments: |
|
Description
Gajanan
2017-01-18 16:56:25 UTC
Created attachment 1242426 [details] reproducer.xml Reproducer: (1) Create a RHEL 5 VM using virt-builder (exact version doesn't matter): $ virt-builder rhel-5.10 (2) I manually convert this into a mirrored DDF software RAID guest. This guest probably won't be bootable, but it's sufficient for testing virt-v2v, reproducing the bug and seeing if it is fixed. $ truncate -s 10G disk1 disk2 $ virt-rescue -a disk1 -a disk2 -a rhel-5.10.img ><rescue> mdadm -C /dev/md/ddf --raid-devices=2 /dev/sda /dev/sdb -e ddf mdadm: container /dev/md/ddf prepared. ><rescue> mdadm -C /dev/md0 /dev/md/ddf --level=mirror --raid-devices=2 mdadm: array /dev/md0 started. Use the fdisk command to create partitions on the /dev/md0 device. The final configuration should look like this: ><rescue> fdisk -l /dev/md0 Device Boot Start End Sectors Size Id Type /dev/md0p1 2048 2099199 2097152 1G 83 Linux /dev/md0p2 2099200 14682111 12582912 6G 83 Linux /dev/md0p3 14682112 20905983 6223872 3G 82 Linux swap / Solaris Use the dd command to copy the RHEL 5 data to the /dev/md0pN partitions: ><rescue> dd if=/dev/sdc1 of=/dev/md0p1 bs=1M ><rescue> dd if=/dev/sdc2 of=/dev/md0p2 bs=1M ><rescue> dd if=/dev/sdc3 of=/dev/md0p3 bs=1M Exit from virt-rescue. Note that it may take several minutes for virt-rescue to exit because a very large amount of data will be cached. Do not interrupt this or else you will end up with a corrupt disk image. (3) Remove the RHEL 5 image which is no longer needed: rm rhel-5.10.img (4) You can now run virt-v2v on the mirrored disks to either reproduce the bug or verify that it is fixed: (4a) Download the attached 'reproducer.xml' (4b) Run: virt-v2v -i libvirtxml reproducer.xml -o null (add -v -x flags to see the full errors) I have placed updated packages which should fix this bug here: http://oirase.annexia.org/tmp/bz1414505/ Only virt-v2v on the conversion server needs to be updated. The same virt-p2v ISO can still be used. It may be that fixing this bug simply causes another bug to appear. If that happens *please open a second bug about it*, and in that second bug include the new virt-p2v log files. (In reply to Richard W.M. Jones from comment #5) > I have placed updated packages which should fix this bug here: > > http://oirase.annexia.org/tmp/bz1414505/ > > Only virt-v2v on the conversion server needs to be updated. The > same virt-p2v ISO can still be used. > > It may be that fixing this bug simply causes another bug to appear. > If that happens *please open a second bug about it*, and in that > second bug include the new virt-p2v log files. Hi,QE are trying to test this bug and running some testing for the new build,but we are approaching the Chinese new year and most of us will take PTO from next Tue(Jan 24th),so I would just say we will try to test this bug as much as possible. Created attachment 1242723 [details]
v2v.log
(In reply to kuwei from comment #7) > Hi,rjones > > I can reproduce it with your steps (comment4), but conversion still failed > on new packages. > > Package version: > libguestfs-1.32.7-3.el7_3.2.x86_64 > virt-v2v-1.32.7-3.el7_3.2.x86_64 > > Steps: > > 1. Create a centos 7 VM using virt-builder: > > # virt-builder centos-7.0 I said "exact version doesn't matter", but I still meant RHEL 5.x. We have RHEL 5 virt-builder guests, ask me by email if you don't have access to these. Hi,rjones Thanks for your help,now I can build rhel 5 by virt-builder, and through your steps(comment 4) conversion is successful . Package version: libguestfs-1.32.7-3.el7.3.x86_64 virt-v2v-1.32.7-3.el7.3.x86_64 libvirt-2.5.0-1.el7.x86_64 Steps: 1. Create a rhel5 VM using virt-builder: #virt-builder rhel-5.10 [ 4.9] Downloading: http://file.rdu.redhat.com/~rjones/builder/rhel-5.10.xz [ 5.6] Planning how to build this image [ 5.6] Uncompressing [ 16.3] Opening the new disk [ 23.6] Setting a random seed [ 23.6] Setting passwords virt-builder: Setting random password of root to J1dkELJLxk39THxD [ 25.1] Finishing off Output file: rhel-5.10.img Output size: 6.0G Output format: raw Total usable space: 4.6G Free space: 3.7G (80%) # truncate -s 10G disk1 disk2 # virt-rescue -a disk1 -a disk2 -a rhel-5.10.img ><rescue> mdadm -C /dev/md/ddf --raid-devices=2 /dev/sda /dev/sdb -e ddf mdadm: container /dev/md/ddf prepared. ><rescue> mdadm -C /dev/md0 /dev/md/ddf --level=mirror --raid-devices=2 mdadm: array /dev/md0 started. 2. Use the fdisk command to create partitions on the /dev/md0 device ><rescue> fdisk -l /dev/md0 Device Boot Start End Sectors Size Id Type /dev/md0p1 2048 2099199 2097152 1G 83 Linux /dev/md0p2 2099200 14682111 12582912 6G 83 Linux /dev/md0p3 14682112 20905983 6223872 3G 82 Linux swap / Solaris 3. Use the dd command to copy the rhel 5 data to the /dev/md0pN partitions: ><rescue> dd if=/dev/sdc1 of=/dev/md0p1 bs=1M ><rescue> dd if=/dev/sdc2 of=/dev/md0p2 bs=1M ><rescue> dd if=/dev/sdc3 of=/dev/md0p3 bs=1M 4.Remove rhel 5, download the attached'reproduce.xml'. Run: # virt-v2v -i libvirtxml reproducer.xml -o null [ 0.0] Opening the source -i libvirtxml reproducer.xml [ 0.0] Creating an overlay to protect the source from being modified [ 1.1] Initializing the target -o null [ 1.1] Opening the overlay [ 6.7] Inspecting the overlay [ 34.1] Checking for sufficient free disk space in the guest [ 34.1] Estimating space required on target for each disk [ 34.1] Converting Red Hat Enterprise Linux Server release 5.10 (Tikanga) to run on KVM virt-v2v: This guest has virtio drivers installed. [ 117.7] Mapping filesystem data to avoid copying unused and blank areas [ 127.1] Closing the overlay [ 127.3] Checking if the guest needs BIOS or UEFI to boot [ 127.3] Assigning disks to buses [ 127.3] Copying disk 1/2 to /var/tmp/null.ycmQeg/sda (raw) (100.00/100%) [ 206.1] Copying disk 2/2 to /var/tmp/null.ycmQeg/sdb (raw) (100.00/100%) [ 249.1] Creating output metadata [ 249.1] Finishing off Hi,rjones Conversion without error when convert a rhel5 guest by virt-v2v through your steps ,but i want to know what can i do when convert others version guest(for example :centos 7 )is failed with the same error (comment 7). Created attachment 1243298 [details]
virt-v2v-auto-running.log
(In reply to kuwei from comment #12) > Conversion without error when convert a rhel5 guest by virt-v2v through > your steps ,but i want to know what can i do when convert others version > guest(for example :centos 7 )is failed with the same error (comment 7). The issues in bug 1414510 and bug 1414682 were a red herring. The underlying problem here was the lack of RAID driver for the customer's fakeraid card in RHEL 7. To fix this properly I supplied a version of virt-p2v built on top of RHEL 5 to Pradeep, and he's going to test that today with the RHEL 5 proprietary driver that is required. So at the moment, consider the reproducer in comment 4 to be wrong, and ther's nothing you can do to test this. There are now RHEL 5 and RHEL 6-based virt-p2v ISOs, both 32- and 64-bit available here: http://oirase.annexia.org/virt-p2v/ http://oirase.annexia.org/virt-p2v/RHEL-7.3 I'll try to keep these up to date as we upgrade RHEL and help customers with them. However they are essentially unsupportable through regular support channels, and cannot easily be built in brew (and therefore cannot be distributed through ordinary channels like RHN either). Should also mention that the upstream scripts used to build the ISOs in the previous comment are: https://github.com/libguestfs/libguestfs/commit/b702ec19e859f6f3333b129a8b0a7fc278ed400f I don't think we need to do anything further on this bug, as RHEL 5 & 6-based ISOs are already available (see comment 19). |