ssacpklnm<zyx1069958401@gmail.com>
2020-Oct-19 16:52 UTC
[Libguestfs] question about libguestfs
On 10/19/20 11:52 AM, ssacpklnm wrote:> > _______________________________________________[absolutely nothing ... oh wait, you violated RFC 2046 (https://tools.ietf.org/html/rfc2046#section-5.1.4), by sending a multipart/alternative mail where the two alternatives are NOT identical in content, but instead had a blank text portion. <grumble> as I dig out the html text to make it easier for others to see your question in the archives]> > Hello, I'm a user of libguestfs. I found two problems in using the great tool. > 1. When I call inspect_os on a vmdk file containing windows system, guestfish throws a Hivex.Error, I have installed hivex. > 2. After I call umount_local() through python, the thread hangs to the foreground, unable to proceed, and there is no log, but mount_local() works on my program. > > Sorry to bother you, please reply me if you need more information. Thank you!-- Eric Blake, Principal Software Engineer Red Hat, Inc. +1-919-301-3226 Virtualization: qemu.org | libvirt.org
On Tue, Oct 20, 2020 at 12:52:52AM +0800, ssacpklnm wrote:> 1. When I call inspect_os on a vmdk file containing windows system, > guestfish throws a Hivex.Error, I have installed hivex.There's not really enough information here to help. What you should do is enable debugging: https://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs That will produce a lot of output which can help us to narrow down the problem. Note that sometimes hivex will throw a real error because of some real problem with the Windows guest.> 2. After I call umount_local() through python, the thread hangs to > the foreground, unable to proceed, and there is no log, but > mount_local() works on my program.Need a bit more information here as well. Is there a small reproducer of this problem? Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-top is 'top' for virtual machines. Tiny program with many powerful monitoring features, net stats, disk stats, logging, etc. http://people.redhat.com/~rjones/virt-top
Hi, Mr. Rich. I am sorry that I left too little information in the last email because I edited with my mobile phone. I wrote about my first question in the following link. https://rwmj.wordpress.com/2010/11/15/libguestfs-inspection-now-lists-windows-apps/ 2nd. Question After I call the mount_local() function in guestfs.py to operate on a disk, I hope to umount it. After calling the umount_local() function, the program hangs in the foreground and no log is displayed after that. At the same time, _check_not_closed() did not throw an exception. I'm looking forward for your reply. Thanks, yuxing. Richard W.M. Jones <rjones@redhat.com> 于2020年10月20日周二 下午10:06写道:> On Tue, Oct 20, 2020 at 12:52:52AM +0800, ssacpklnm wrote: > > 1. When I call inspect_os on a vmdk file containing windows system, > > guestfish throws a Hivex.Error, I have installed hivex. > > There's not really enough information here to help. What you > should do is enable debugging: > > https://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs > > That will produce a lot of output which can help us to narrow down the > problem. > > Note that sometimes hivex will throw a real error because of some real > problem with the Windows guest. > > > 2. After I call umount_local() through python, the thread hangs to > > the foreground, unable to proceed, and there is no log, but > > mount_local() works on my program. > > Need a bit more information here as well. Is there a small reproducer > of this problem? > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-top is 'top' for virtual machines. Tiny program with many > powerful monitoring features, net stats, disk stats, logging, etc. > http://people.redhat.com/~rjones/virt-top > >
Hi, Mr. Rich. I am sorry that I left too little information in the last email because I edited with my mobile phone. I wrote about my first question in the following link. https://rwmj.wordpress.com/2010/11/15/libguestfs-inspection-now-lists-windows-apps/ 2nd. Question After I call the mount_local() function in guestfs.py to operate on a disk, I hope to umount it. After calling the umount_local() function, the program hangs in the foreground and no log is displayed after that. At the same time, _check_not_closed() did not throw an exception. I'm looking forward for your reply. Thanks, yuxing. Richard W.M. Jones <rjones@redhat.com> 于2020年10月20日周二 下午10:06写道:> On Tue, Oct 20, 2020 at 12:52:52AM +0800, ssacpklnm wrote: > > 1. When I call inspect_os on a vmdk file containing windows system, > > guestfish throws a Hivex.Error, I have installed hivex. > > There's not really enough information here to help. What you > should do is enable debugging: > > https://libguestfs.org/guestfs-faq.1.html#debugging-libguestfs > > That will produce a lot of output which can help us to narrow down the > problem. > > Note that sometimes hivex will throw a real error because of some real > problem with the Windows guest. > > > 2. After I call umount_local() through python, the thread hangs to > > the foreground, unable to proceed, and there is no log, but > > mount_local() works on my program. > > Need a bit more information here as well. Is there a small reproducer > of this problem? > > Rich. > > -- > Richard Jones, Virtualization Group, Red Hat > http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com > virt-top is 'top' for virtual machines. Tiny program with many > powerful monitoring features, net stats, disk stats, logging, etc. > http://people.redhat.com/~rjones/virt-top > >