Richard W.M. Jones
2022-Sep-22 12:59 UTC
[Libguestfs] can not get the virt-sparsify code in libguestfs ?
On Thu, Sep 22, 2022 at 11:48:17AM +0000, Li, Feng F wrote:> 2) https://libguestfs.org/virt-sparsify.1.html > > we downloaded the libguestfs (1.48-stable) library ,but after the > configure and make, we did not found the virt-sparsify source code > and binary file, would you please help see where to get the > virt-sparsify source code for debug ?virt-sparsify and some other tools were recently moved into a new repository: https://github.com/rwmjones/guestfs-tools Most Linux distros already ship these tools. You shouldn't really need to compile it all from source yourself (although of course it is possible and you are welcome to try). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v
Li, Feng F
2022-Sep-23 11:37 UTC
[Libguestfs] can not get the virt-sparsify code in libguestfs ?
We download the guestfs-tools from below git and compile a local version . But when we did the test , please see below: 1. In the Windows the Drive D:\ , the real disk usage is about 19.9-17.7 =2.2G. [cid:image001.png at 01D8CF83.561C24A0] 1. Shutdown VM , then we use virt-sparsify on the qcow2 image, but the size is still same as before 6.54G. It is expected the qcow2 is resized to 2.2G , right ? Any reason for why the disk size is not returned to host ? [cid:image002.png at 01D8CF83.561C24A0] Thanks a lot ! lifeng -----Original Message----- From: Richard W.M. Jones <rjones at redhat.com> Sent: 2022?9?22? 21:00 To: Li, Feng F <feng.f.li at intel.com> Cc: libguestfs at redhat.com Subject: Re: can not get the virt-sparsify code in libguestfs ? On Thu, Sep 22, 2022 at 11:48:17AM +0000, Li, Feng F wrote:> 2) https://libguestfs.org/virt-sparsify.1.html>> we downloaded the libguestfs (1.48-stable) library ,but after the> configure and make, we did not found the virt-sparsify source code and> binary file, would you please help see where to get the virt-sparsify> source code for debug ?virt-sparsify and some other tools were recently moved into a new repository: https://github.com/rwmjones/guestfs-tools Most Linux distros already ship these tools. You shouldn't really need to compile it all from source yourself (although of course it is possible and you are welcome to try). Rich. -- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v converts physical machines to virtual machines. Boot with a live CD or over the network (PXE) and turn machines into KVM guests. http://libguestfs.org/virt-v2v -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://listman.redhat.com/archives/libguestfs/attachments/20220923/5c7bf600/attachment-0001.htm> -------------- next part -------------- A non-text attachment was scrubbed... Name: image001.png Type: image/png Size: 105454 bytes Desc: image001.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20220923/5c7bf600/attachment-0002.png> -------------- next part -------------- A non-text attachment was scrubbed... Name: image002.png Type: image/png Size: 94601 bytes Desc: image002.png URL: <http://listman.redhat.com/archives/libguestfs/attachments/20220923/5c7bf600/attachment-0003.png>
Richard W.M. Jones
2022-Sep-23 12:06 UTC
[Libguestfs] can not get the virt-sparsify code in libguestfs ?
On Fri, Sep 23, 2022 at 11:37:01AM +0000, Li, Feng F wrote:> We download the guestfs-tools from below git and compile a local version . > > But when we did the test , please see below: > > 1. In the Windows the Drive D:\ , the real disk usage is about 19.9-17.7 > 2.2G. > > [cid] > > > > 2. Shutdown VM , then we use virt-sparsify on the qcow2 image, but the size is > still same as before 6.54G. > > It is expected the qcow2 is resized to 2.2G , right ? > > Any reason for why the disk size is not returned to host ?Difficult to say. What is the complete output from virt-sparsify -v -x .... ? Rich.> > > [cid] > > > > > > Thanks a lot ! > > lifeng > > > > -----Original Message----- > From: Richard W.M. Jones <rjones at redhat.com> > Sent: 2022?9?22? 21:00 > To: Li, Feng F <feng.f.li at intel.com> > Cc: libguestfs at redhat.com > Subject: Re: can not get the virt-sparsify code in libguestfs ? > > > > On Thu, Sep 22, 2022 at 11:48:17AM +0000, Li, Feng F wrote: > > > 2) https://libguestfs.org/virt-sparsify.1.html > > > > > > we downloaded the libguestfs (1.48-stable) library ,but after the > > > configure and make, we did not found the virt-sparsify source code and > > > binary file, would you please help see where to get the virt-sparsify > > > source code for debug ? > > > > virt-sparsify and some other tools were recently moved into a new > > repository: > > > > https://github.com/rwmjones/guestfs-tools > > > > Most Linux distros already ship these tools. You shouldn't really need to > compile it all from source yourself (although of course it is possible and you > are welcome to try). > > > > Rich. > > > > -- > > Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones > Read my programming and virtualization blog: http://rwmj.wordpress.com virt-p2v > converts physical machines to virtual machines. Boot with a live CD or over > the network (PXE) and turn machines into KVM guests. > > http://libguestfs.org/virt-v2v > > >-- Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones Read my programming and virtualization blog: http://rwmj.wordpress.com nbdkit - Flexible, fast NBD server with plugins https://gitlab.com/nbdkit/nbdkit