Bug 916990 - inspect_os: mount_ro: /dev/sda on / (options: 'ro'): mount: /dev/sda is already mounted or /sysroot busy
Summary: inspect_os: mount_ro: /dev/sda on / (options: 'ro'): mount: /dev/sda is alrea...
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Virtualization Tools
Classification: Community
Component: virt-v2v
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Matthew Booth
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks: 916991
TreeView+ depends on / blocked
 
Reported: 2013-03-01 11:37 UTC by Richard W.M. Jones
Modified: 2014-09-10 12:47 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 916991 (view as bug list)
Environment:
Last Closed: 2014-09-10 12:47:40 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2013-03-01 11:37:50 UTC
Description of problem:

When virt-v2v is run, inspection gives a very odd error:

LIBGUESTFS_ATTACH_METHOD=appliance \
virt-v2v  -ic xen+ssh://aa.bb.cc.dd -os default xen-pv-rhel4.9-i386  

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

Reported on RHEL 7 & Fedora 18.

Additional info:

Threads about this on the upstream mailing list:

https://www.redhat.com/archives/libguestfs/2013-February/msg00144.html
https://www.redhat.com/archives/libguestfs/2013-March/msg00000.html

Comment 1 Joe Ryner 2013-03-05 20:29:23 UTC
I had the same error and am providing the trace below.  Fedora 18 latest update as of 3/5/13

stone-v4: 100% [=====================================================]D 0h54m39s
libguestfs: trace: set_attach_method "appliance"
libguestfs: trace: set_attach_method = 0
libguestfs: trace: add_drive "/var/lib/libvirt/images/stone-v4" "format:raw" "iface:ide" "name:xvda"
libguestfs: trace: add_drive = 0
libguestfs: trace: add_drive "/tmp/PKKXoKFY2u" "readonly:true" "format:raw" "iface:ide"
libguestfs: trace: add_drive = 0
libguestfs: trace: set_network true
libguestfs: trace: set_network = 0
libguestfs: trace: launch
libguestfs: trace: get_tmpdir
libguestfs: trace: get_tmpdir = "/tmp"
libguestfs: trace: get_cachedir
libguestfs: trace: get_cachedir = "/var/tmp"
libguestfs: trace: launch = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"]
libguestfs: trace: inspect_os
libguestfs: trace: umount_all
libguestfs: trace: umount_all = 0
libguestfs: trace: list_devices
libguestfs: trace: list_devices = ["/dev/sda", "/dev/sdb"]
libguestfs: trace: vfs_type "/dev/sda"
libguestfs: trace: vfs_type = ""
libguestfs: trace: isoinfo_device "/dev/sda"
libguestfs: trace: isoinfo_device = NULL (error)
libguestfs: trace: mount_ro "/dev/sda" "/"
libguestfs: trace: mount_ro = -1 (error)
libguestfs: trace: vfs_type "/dev/sdb"
libguestfs: trace: vfs_type = "iso9660"
libguestfs: trace: isoinfo_device "/dev/sdb"
libguestfs: trace: isoinfo_device = <struct guestfs_isoinfo *>
libguestfs: trace: inspect_os = NULL (error)
libguestfs: trace: close
libguestfs: trace: internal_autosync
libguestfs: trace: internal_autosync = 0
inspect_os: mount_ro: /dev/sda on / (options: 'ro'): mount: /dev/sda is already mounted or /sysroot busy at /usr/share/perl5/vendor_perl/Sys/VirtConvert/GuestfsHandle.pm line 194.
 at /usr/bin/virt-v2v line 672.

Comment 2 Richard W.M. Jones 2014-09-10 12:47:40 UTC
I'm going to assume this is fixed in the latest release, as I
have not seen this error during a lot of recent testing.


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