Bug 975797 - Specifying virtio interface ('iface' parameter) breaks the direct backend - libguestfs hangs
Summary: Specifying virtio interface ('iface' parameter) breaks the direct backend - l...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libguestfs
Version: unspecified
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: ---
Assignee: Richard W.M. Jones
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 975760 975771
TreeView+ depends on / blocked
 
Reported: 2013-06-19 11:28 UTC by Richard W.M. Jones
Modified: 2013-06-19 16:55 UTC (History)
6 users (show)

Fixed In Version:
Clone Of: 975760
Environment:
Last Closed: 2013-06-19 16:55:22 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2013-06-19 11:28:58 UTC
+++ This bug was initially created as a clone of Bug #975760 +++

$ truncate -s 1G /tmp/image
$ LIBGUESTFS_BACKEND=direct \
  guestfish add-drive-ro-with-if /tmp/image virtio : run -v

libguestfs hangs (actually supermin hangs) when trying to mount
the root (appliance) disk.  The reason is that root=/dev/sdb was
passed on the kernel command line, but the actual disks present
in the appliance are:

  /dev/vda: the added disk
  /dev/sda: the appliance

libguestfs direct backend should be changed so that it doesn't
count virtio-blk disks when calculating the appliance disk's offset.

This affects libguestfs 1.20 and 1.22.

Comment 1 Richard W.M. Jones 2013-06-19 16:55:22 UTC
Fixed upstream in:
f7fe7e8db021b13f40aba56722d6ebe58e3777d2

Regression test:
d8a3185823e608dbddbc6185209951140b8f3b33


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