Created attachment 1658045 [details] input/output error on is_dir call Description of problem: When testing if the path "/Windows/SoftwareDistribution" is a directory on Windows 10 Build 1703, the libguestfs Python Bindings fails and raises a RuntimeError. Version-Release number of selected component (if applicable): 1.40.2-2ubuntu6 How reproducible: always Steps to Reproduce: 1. Install Windows 10 build 1703 in QEMU/KVM 2. launch libguestfs instance with Python bindings 3. g.is_dir('/Windows/SoftwareDistribution') Actual results: A RuntimeError is raised: "is_dir: lstat: /Windows/SoftwareDistribution: Input/output error" Expected results: No exceptions should have been raised Additional info: I can provide the qcow, but it is heavy (10GB), so you need to give me a server where I can upload it. Thanks !
You'll need to enable debugging and post the results, as outlined here: http://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs
Created attachment 1658170 [details] libguestfs output with debugging information Hi Richard, thanks for the feedback. Please see the io_error_is_dir.txt log file attached, with the requested debugging information.
OK it's literally seeing an EIO error when opening that file, indicating either that the disk really is corrupt or ntfs-3g cannot open the file for some other reason. I would suggest using virt-rescue so you can see what's really going on: virt-rescue --ro -a /home/wenzel/kvm/win10-1703.qcow2 -i ><rescue> ls -l /Windows ><rescue> ls -l /Windows/SoftwareDistribution and also use ‘dmesg’ in the rescue shell to see if there's any additional clue about what is failing with that file.
I mean: ><rescue> ls -l /sysroot/Windows ><rescue> ls -l /sysroot/Windows/SoftwareDistribution
This product has been discontinued or is no longer tracked in Red Hat Bugzilla.
Reopening because Virtualization Tools has not been discontinued.