Bug 610771 - virt-v2v can't detect Windows OS version due to lack of libfuse.so.2
Summary: virt-v2v can't detect Windows OS version due to lack of libfuse.so.2
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libguestfs
Version: 5.5
Hardware: All
OS: Linux
high
medium
Target Milestone: rc
: ---
Assignee: Richard W.M. Jones
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-07-02 12:16 UTC by Rita Wu
Modified: 2013-07-03 01:40 UTC (History)
8 users (show)

Fixed In Version: libguestfs-1.2.7-1.el5.6
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-07-27 19:47:46 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2010:0566 0 normal SHIPPED_LIVE virt-v2v bug fix update 2010-07-27 19:47:38 UTC

Description Rita Wu 2010-07-02 12:16:32 UTC
Description of problem:
perl-libguestfs rpm should require fuse-libs rpm which provide libfuse.so.2.

log for Windows image conversion:
[...]
file "/dev/hda1"
send_to_daemon: 0x6145660 g->state = 3, n = 44
recv_from_daemon: 0x6145660 g->state = 3, size_rtn = 0x7ffff4439e8c, buf_rtn = 0x7ffff4439e80
file -zbsL /dev/hda1
proc 49 (file) took 0.08 seconds
mount_ro "/dev/hda1" "/"
send_to_daemon: 0x6145660 g->state = 3, n = 52
recv_from_daemon: 0x6145660 g->state = 3, size_rtn = 0x7ffff4439e7c, buf_rtn = 0x7ffff4439e70
mount -o ro /dev/hda1 /sysroot/
/sbin/mount.ntfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory
guestfsd: error: /dev/hda1 on /: /sbin/mount.ntfs: error while loading shared libraries: libfuse.so.2: cannot open shared object file: No such file or directory
proc 73 (mount_ro) took 0.10 seconds
[...]
closing guestfs handle 0x6145660 (state 2)
umount_all
send_to_daemon: 0x6145660 g->state = 3, n = 28
recv_from_daemon: 0x6145660 g->state = 3, size_rtn = 0x7ffff4439aac, buf_rtn = 0x7ffff4439aa0
mount
proc 47 (umount_all) took 0.05 seconds
sync
send_to_daemon: 0x6145660 g->state = 3, n = 28
recv_from_daemon: 0x6145660 g->state = 3, size_rtn = 0x7ffff4439aac, buf_rtn = 0x7ffff4439aa0
proc 2 (sync) took 0.00 seconds
kill_subprocess
sending SIGTERM to process 5369
No operating system could be detected inside this disk image.

This may be because the file is not a disk image, or is not a virtual machine
image, or because the OS type is not understood by virt-inspector.

If you feel this is an error, please file a bug report including as much
information about the disk image as possible.


Version-Release number of selected component (if applicable):
virt-v2v-0.6.1-1.el5

How reproducible:
100%

Steps to Reproduce:
1.run V2V to convert Windows guest

  
Actual results:
As Description mentioned.

Expected results:
Let libguestfs depends on fuse-lib

Additional info:

Comment 1 Richard W.M. Jones 2010-07-02 12:31:09 UTC
Linglu, I think this is a dupe of bug 599300.

*** This bug has been marked as a duplicate of bug 599300 ***

Comment 2 Richard W.M. Jones 2010-07-02 12:33:51 UTC
Wrong bug ...

*** This bug has been marked as a duplicate of bug 603429 ***

Comment 3 Rita Wu 2010-07-02 12:50:46 UTC
 

(In reply to comment #2)
> Wrong bug ...
> 
> *** This bug has been marked as a duplicate of bug 603429 ***    

Richard,

I guess we need this bug to track this issue on RHEL5. bug 603429 is on RHEL6

Comment 4 Richard W.M. Jones 2010-07-02 13:35:37 UTC
OK, I didn't look at the version number.  In that case this is
a completely different issue.  There is no libguestfs-winsupport
package in RHEL 5.

Reopening ...

Comment 5 Richard W.M. Jones 2010-07-06 10:31:21 UTC
The fix for this is trivial and has been checked.  It's to just add fuse-libs
as a dep on the main libguestfs package.  Can we get flags set so I
can check in the fix?

Comment 6 Richard W.M. Jones 2010-07-06 13:40:26 UTC
Full build here (not finished as I write this):

http://brewweb.devel.redhat.com/brew/taskinfo?taskID=2576284

Comment 7 Rita Wu 2010-07-07 09:09:57 UTC
Verified it with virt-v2v-0.6.1-1.el5+libguestfs.x86_64 1:1.2.7-1.el5.6.
Now fuse-libs will be automatically installed via installing virt-v2v.And v2v can convert Windows guests successfully.
# rpm -qa|grep fuse
#
# yum install virt-v2v -y
...
Dependency Installed:
  fuse.x86_64 0:2.7.4-8.el5            fuse-libs.x86_64 0:2.7.4-8.el5           
  libguestfs.x86_64 1:1.2.7-1.el5.6    perl-libguestfs.x86_64 1:1.2.7-1.el5.6

Comment 9 errata-xmlrpc 2010-07-27 19:47:46 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2010-0566.html


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