Bug 855058 - RFE: virt-p2v: display more information about storage devices
RFE: virt-p2v: display more information about storage devices
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libguestfs (Show other bugs)
Unspecified Unspecified
medium Severity low
: rc
: ---
Assigned To: Richard W.M. Jones
Virtualization Bugs
: FutureFeature
Depends On:
Blocks: 1288337
  Show dependency treegraph
Reported: 2012-09-06 11:19 EDT by joherr
Modified: 2016-11-03 13:46 EDT (History)
10 users (show)

See Also:
Fixed In Version: libguestfs-1.32.5-7.el7
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2016-11-03 13:46:18 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
virt-p2v.png (62.90 KB, image/png)
2016-06-24 17:25 EDT, Richard W.M. Jones
no flags Details

  None (edit)
Description joherr 2012-09-06 11:19:41 EDT
Is it possible to display more information about the storage devices when selecting them for conversion?

A system with multipath devices can show several disks for the same device. In the current display output, the user cannot determine which devices are the same storage device.

Displaying the multipath storage in a fashion similar to the output of "multipath -ll" would be useful. That way a user could easily select a single device under each multipath.

Something similar for md devices would beuseful as well since a RAID1 md device would not necessarily need all the devices converted.
Comment 2 RHEL Product and Program Management 2012-12-14 03:18:55 EST
This request was not resolved in time for the current release.
Red Hat invites you to ask your support representative to
propose this request, if still desired, for consideration in
the next release of Red Hat Enterprise Linux.
Comment 4 Richard W.M. Jones 2015-09-23 10:14:04 EDT
For 7.2 I've done this for network devices.  For block devices
there is more work to do.  Moving to 7.3.
Comment 6 Richard W.M. Jones 2016-06-17 09:26:17 EDT
I suspect this isn't solvable with the way that virt-p2v works.

Installing multipath tools in the p2v ISO doesn't work, since the
tools don't work without being configured first.  They just print
something like:

# multipath -ll
Jun 17 14:05:32 | DM multipath kernel driver not loaded
Jun 17 14:05:32 | /etc/multipath.conf does not exist, blacklisting all devices.
Jun 17 14:05:32 | A default multipath.conf file is located at
Jun 17 14:05:32 | /usr/share/doc/device-mapper-multipath-0.4.9/multipath.conf
Jun 17 14:05:32 | You can run /sbin/mpathconf to create or modify /etc/multipath.conf
Jun 17 14:05:32 | DM multipath kernel driver not loaded

This is because virt-p2v ignores the host configuration, so
multipath cannot be set up by virt-p2v.  It's not possible for
virt-p2v to read the host configuration, since it may come from
a completely different version of Linux, or even from a radically
different operating system (ie. Windows).

I have added a few extra utilities to the ISO which can be run from
the XTerm window (there is now a button to launch an xterm on the
first dialog):


This is not a fix as such, but it's about as much as we can do here.
Comment 7 mxie@redhat.com 2016-06-24 07:21:38 EDT
According to patch in comment6

Try to verify the bug with build 

1. Launch virt-p2v boot GUI via iso and open XTerm

2. Check pciutils function
2.1 #rpm -q pciutils
2.2 #lspci
10:00.0 Fibre Channel:Emulex Corporation Zephyr-X LightPulse Fibre Channel Host Adapter

Result: could use lspci command on p2v client 

3.Check hdparm function
3.1 #rpm -q haparm
3.2 #hdparm --help

hdparm- get/set hard disk parameters

3.3 #hdparm -a /dev/sda1
readahead =256(on)

Result:could use hdparm command on p2v client 

4.Check smartmontools function
4.1 #rpm -q smartmontool
4.2 #smartctl --help
result:show helo info normally
4.3 $smartctl -a /dev/sda1

Result:could use smartctl command on p2v client 

Hi rjones

Could help to check above verify steps? Is there any missing or mistake or whether above steps are enough to verify this bug? Thanks
Comment 8 Richard W.M. Jones 2016-06-24 08:27:40 EDT
What the original bug was requesting was some way to display
the layout of host devices, especially where they use multipath.
It might either be through the 'multipath' command, or in the

Unfortunately this is really difficult to do.  It would involve
parsing the physical machine's configuration, which (a) virt-p2v
doesn't do at the moment and (b) may not even be possible (eg.
if the physical machine is Windows, or some ancient RHEL).

What I actually implemented instead was adding pciutils (lspci),
hdparm, smartmontools (smartctl) and util-linux (lsblk) to the
ISO, which you can run from the command line.  As you demonstrated
in comment 7.

So the bug is fixed in the sense that those tools are present.
The larger RFC is likely unfixable.
Comment 9 Richard W.M. Jones 2016-06-24 10:48:31 EDT
I actually pushed a few more commits here.  These add the
serial number to the GUI display.


I'll pick these up for the next version of virt-p2v.
Comment 10 Richard W.M. Jones 2016-06-24 17:25 EDT
Created attachment 1172117 [details]

This is what virt-p2v looks like with all the patches (not
currently the one in RHEL 7.3).

Notice the device serial number is shown in the top right pane.
Comment 11 tingting zheng 2016-06-26 22:56:05 EDT

The bug need ad new build,right? Would you pls add the bug to erratum when you build the new package then QE can test it and change bug status once verified,thanks.
Comment 12 mxie@redhat.com 2016-06-27 02:10:34 EDT
Due to util-linux (lsblk) already added in virt-p2v-livecd-1.28.1-1.49.1.el7.iso , so newly added ones are ciutils (lspci),
hdparm, smartmontools (smartctl) in build virt-p2v-1.32.5-4.el7.iso
Comment 13 Richard W.M. Jones 2016-06-27 03:44:45 EDT
Yes, it needs a new build.
Comment 15 mxie@redhat.com 2016-07-11 06:09:44 EDT
Verify the bug as comment7 steps and comment10 again with build

Result now:
1.lspci(pciutils),hdparm, smartctl(smartmontools) and lsblk(util-linux) command could work normally in p2v client
2. At the inputting conversion info interface,there is device serial number shown in hard disks option

According above verify result, the bug has been fixed

So move the bug from ON_QA to VERIFIED
Comment 17 errata-xmlrpc 2016-11-03 13:46:18 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.


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