Note: This bug is displayed in read-only format because the product is no longer active in Red Hat Bugzilla.
RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.

Bug 1590618

Summary: VM with cloned root disks fails virt-v2v
Product: Red Hat Enterprise Linux 7 Reporter: Mor <mkalfon>
Component: libguestfsAssignee: Tomáš Golembiovský <tgolembi>
Status: CLOSED DUPLICATE QA Contact: Virtualization Bugs <virt-bugs>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 7.5-AltCC: mlehrer, ptoscano
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard: v2v
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
: 1592791 (view as bug list) Environment:
Last Closed: 2018-06-19 10:29:06 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: 1592791    
Bug Blocks:    
Attachments:
Description Flags
virt-v2v log none

Description Mor 2018-06-13 03:49:30 UTC
Created attachment 1450776 [details]
virt-v2v log

Description of problem:
When trying to migrate a VM with cloned disks, virt-v2v fails with the following error:
"***
Dual- or multi-boot operating system detected.  Choose the root filesystem
that contains the main operating system from the list below:

 [1] /dev/disk1/root (Red Hat Enterprise Linux Workstation 7.5 (Maipo))
 [2] /dev/disk2/root (Red Hat Enterprise Linux Workstation 7.5 (Maipo))
 [3] /dev/disk3/root (Red Hat Enterprise Linux Workstation 7.5 (Maipo))
 [4] /dev/rhel/root (Red Hat Enterprise Linux Workstation 7.5 (Maipo))

Enter a number between 1 and 4, or 'exit': virt-v2v: error: Bad file descriptor"

Version-Release number of selected component (if applicable):
RHV 4.2.4.1-0.1.el7
VMware 6.5
MIQ master.20180608232509_1bc038a
libguestfs-1.36.10-6.11.rhvpreview.el7ev.x86_64
python-libguestfs-1.36.10-6.11.rhvpreview.el7ev.x86_64
libguestfs-winsupport-7.2-2.el7.x86_64
libguestfs-tools-c-1.36.10-6.11.rhvpreview.el7ev.x86_64
virt-v2v-1.36.10-6.11.rhvpreview.el7ev.x86_64

How reproducible:
100% with two different VM configurations.

Steps to Reproduce:
On VMware:
1. Create a VM with 100GB partition.
2. Clone the vmdk using vmkfstools (per X number of times).
3. Add the disks to the VM.
4. Start the VM.
5. Use vgimportclone to import the cloned disks.
On MIQ:
1. Try to migrate the VM.

Additional info:

Comment 2 Richard W.M. Jones 2018-06-13 13:03:44 UTC
This is a bug in the v2v wrapper, not virt-v2v itself.  It has
to be told using the --root option which OS you want to convert.

For more information see the documentation:

http://libguestfs.org/virt-v2v.1.html#options

Note there is a second bug in the v2v wrapper because it needs to
open stdin on /dev/null.

Comment 3 Tomáš Golembiovský 2018-06-19 10:29:06 UTC
Fixed in the proper product/component.

*** This bug has been marked as a duplicate of bug 1592791 ***