<div style="line-height:1.4">thx a lot.<br><br><br><span style="color:#888;font-size:15px;">发自 </span><a href="http://u.163.com/signature" style="font-size:15px;color:#2e90eb;" target="_blank">网易邮箱大师</a><br><br><br></div>在2016年02月22日 23:46 ,<a href="mailto:rjones@redhat.com">Richard W.M. Jones</a>写道:<br><br><blockquote id="ntes-andriodmail-quote" style="margin:0px;padding-left:1ex;border-left:#ccc 1px solid">On Mon, Feb 22, 2016 at 11:00:53PM +0800, 罗思标 wrote:
<br>> Hi rjones,
<br>>
<br>> Good catch, thanks a lot. Does it only disable from official
<br>> rhel/centos RPM with
<br>> `XXXX-RHEL-7-Reject-use-of-libguestfs-winsupport-features-.patch' in
<br>> libguestfs while it still work in upstream source code (
<br>> e.g. rhel-7.2 branch in <a href="https://github.com/libguestfs/libguestfs">https://github.com/libguestfs/libguestfs</a> ) ,
<br>
<br>Yes, this patch to disable functionality only applies to RHEL, not to
<br>Fedora and not to upstream.
<br>
<br>(It only applies "accidentally" to CentOS, since CentOS compiles the
<br>same RHEL package, including this patch).
<br>
<br>> which option need to enable windows VM ntfs and guestmount command
<br>> support when i make configure to compile with the upstream source
<br>> code ?
<br>
<br>There's no special ./configure option to enable ntfs-3g in the
<br>upstream code.
<br>
<br>What happens is that when the supermin appliance is built (see
<br><a href="https://github.com/libguestfs/libguestfs/tree/master/appliance">https://github.com/libguestfs/libguestfs/tree/master/appliance</a>), if
<br>the ntfs-3g package is installed, then ntfs-3g features are enabled.
<br>
<br>> I just work for QEMU and Openstack community and need to modidy the
<br>> VM image(e.g. make initrd for linux and modify windows regedit) to
<br>> improve the success rate of VM image 2V2 from VMware to KVM/Xen
<br>> environment, and find this powerful and amazing tool.
<br>>
<br>> some question still need your confirms:
<br>>
<br>> 1. does libguestfs support to mount the MBR and GPT VM image, is
<br>> there any limitation about it ?
<br>
<br>It can handle both partition formats.  See next question.
<br>
<br>> 2. how about the VM image has multi partitions and LVM? it's support
<br>> according to my try, but still need your further confirms.
<br>
<br>It can handle multiple partitions, and all LVM configuration.
<br>
<br>There are some limits on the number of partitions:
<br>
<br>  <a href="http://libguestfs.org/guestfs.3.html#maximum-number-of-partitions-per-disk">http://libguestfs.org/guestfs.3.html#maximum-number-of-partitions-per-disk</a>
<br>
<br>That limit applies to virtio-blk.  It's a good question whether
<br>virtio-scsi (which we now use by default almost everywhere) still has
<br>that limit.  I don't know the answer, but it'll certainly be at least
<br>15 partitions.
<br>
<br>> 3. what is the maximum number of guestmount support at the same
<br>> time, does it only restrict by the host Memory and CPU resource ?
<br>
<br>If you are using libvirt, then libvirt has a maximum number of
<br>anonymous clients (max_anonymous_clients = 20).  You can raise this by
<br>editing `/etc/libvirt/libvirtd.conf'.
<br>
<br>libguestfs has no limits, except host memory/CPU.
<br>
<br>FUSE or the fuse.ko kernel module might have its own limits.  I don't
<br>think we have ever found what they are.
<br>
<br>During the automated test suite, we test 12 parallel FUSE mounts:
<br>
<br>  <a href="https://github.com/libguestfs/libguestfs/blob/master/tests/mount-local/test-parallel-mount-local.c#L48">https://github.com/libguestfs/libguestfs/blob/master/tests/mount-local/test-parallel-mount-local.c#L48</a>
<br>
<br>You could try raising that number, but note that you will hit the
<br>libvirt limit (20) unless you either disable libvirt
<br>(LIBGUESTFS_BACKEND=direct) or raise the limit in the libvirtd.conf.
<br>
<br>Rich.
<br>
<br>-- 
<br>Richard Jones, Virtualization Group, Red Hat <a href="http://people.redhat.com/~rjones">http://people.redhat.com/~rjones</a>
<br>Read my programming and virtualization blog: <a href="http://rwmj.wordpress.com">http://rwmj.wordpress.com</a>
<br>libguestfs lets you edit virtual machines.  Supports shell scripting,
<br>bindings from many languages.  <a href="http://libguestfs.org">http://libguestfs.org</a>
<br></blockquote><br><br>