Bug 655554

Summary: Whole disk paths are not made canonical by virt-inspector
Product: [Community] Virtualization Tools Reporter: Richard W.M. Jones <rjones>
Component: libguestfsAssignee: Richard W.M. Jones <rjones>
Status: CLOSED UPSTREAM QA Contact:
Severity: medium Docs Contact:
Priority: low    
Version: unspecifiedCC: mbooth, virt-maint
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-07-14 19:22:55 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Richard W.M. Jones 2010-11-21 16:29:48 UTC
Description of problem:

The guest below is a Xen->KVM hand-migrated guest which uses whole
disks for filesystems (ie. a filesystem is directly on a block device).

The functions in (at least) virt-inspector to canonical disk names
cannot cope with this, so they leave the paths as /dev/vda etc instead
of rewriting as /dev/sda.

# virt-inspector2 GuestName
<operatingsystems>
  <operatingsystem>
    <root>/dev/vda</root>
    <name>linux</name>
    <arch>x86_64</arch>
    <distro>debian</distro>
    <product_name>5.0.6</product_name>
    <major_version>5</major_version>
    <minor_version>0</minor_version>
    <mountpoints>
      <mountpoint dev="/dev/vda">/</mountpoint>
      <mountpoint dev="/dev/vdb">/lib/modules</mountpoint>
    </mountpoints>
    <filesystems>
      <filesystem dev="/dev/vda">
...

Version-Release number of selected component (if applicable):

1.6.2 (RHEL 6.1 candidate)

How reproducible:

Always for guests which use whole disks as filesystems.