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 1609795

Summary: Can't launch p2v client if build virt-p2v bootable USB key by virt-p2v-maker
Product: Red Hat Enterprise Linux 7 Reporter: mxie <mxie>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED NOTABUG QA Contact: Virtualization Bugs <virt-bugs>
Severity: high Docs Contact:
Priority: high    
Version: 7.6CC: juzhou, mzhan, ptoscano, tzheng, xiaodwan
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard: P2V
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-04-26 08:49:17 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:    
Bug Blocks: 1649160    
Attachments:
Description Flags
p2v-usb-key.png none

Description mxie@redhat.com 2018-07-30 13:23:59 UTC
Created attachment 1471549 [details]
p2v-usb-key.png

Description of problem:
Can't launch p2v client if build virt-p2v bootable USB key by virt-p2v-maker

Version-Release number of selected component (if applicable):
virt-v2v-1.38.2-9.el7.x86_64
libguestfs-1.38.2-9.el7.x86_64
libguestfs-xfs-1.38.2-9.el7.x86_64
virt-p2v-maker-1.38.2-9.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Install virt-p2v-maker on v2v conversion server

2.Edit /etc/xdg/virt-builder/repos.d/libguestfs.conf 
# cat libguestfs.conf
[libguestfs.org]
uri=http://file.rdu.redhat.com/~rjones/builder/index.asc
gpgkey=file:///etc/xdg/virt-builder/repos.d/libguestfs.gpg

3.Build virt-p2v bootable USB key with virt-p2v-maker
# virt-p2v-make-disk -o /dev/sdb rhel-7.5
[   3.7] Downloading: http://file.rdu.redhat.com/~rjones/builder/rhel-7.5.xz
[   4.4] Planning how to build this image
....
[1269.6] Finishing off
                   Output file: /dev/sdb
                   Output size: 14.9G
                 Output format: raw
            Total usable space: 14.3G
                    Free space: 12.9G (89%)

4.P2v bootable USB key can be built successfully, but can not launch p2v client in physical machine, pls refer to screenshot 'p2v-usb-key'




Actual results:
As above description

Expected results:
Can boot into p2v client in physical machine if build virt-p2v bootable USB key by virt-p2v-maker

Additional info:

Comment 2 Pino Toscano 2018-07-30 15:35:52 UTC
(In reply to mxie from comment #0)
> Steps to Reproduce:
> 1.Install virt-p2v-maker on v2v conversion server
> 
> 2.Edit /etc/xdg/virt-builder/repos.d/libguestfs.conf 
> # cat libguestfs.conf
> [libguestfs.org]
> uri=http://file.rdu.redhat.com/~rjones/builder/index.asc
> gpgkey=file:///etc/xdg/virt-builder/repos.d/libguestfs.gpg
> 
> 3.Build virt-p2v bootable USB key with virt-p2v-maker
> # virt-p2v-make-disk -o /dev/sdb rhel-7.5

rhel-7.5 template with p2v built for 7.6 -- I doubt this is really going to work, and indeed your screenshot shows it does not.
A better test would be using the virt-p2v-make-disk in RHEL 7.5 to generate the virt-p2v ISO for RHEL 7.5 using the rhel-7.5 template.

Comment 3 Pino Toscano 2019-04-26 08:49:17 UTC
(In reply to Pino Toscano from comment #2)
> rhel-7.5 template with p2v built for 7.6 -- I doubt this is really going to
> work, and indeed your screenshot shows it does not.
> A better test would be using the virt-p2v-make-disk in RHEL 7.5 to generate
> the virt-p2v ISO for RHEL 7.5 using the rhel-7.5 template.

As this is the case, I'm closing this as NOTABUG (since it is a mismatch of template versus virt-p2v version).