Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread libvirt_users
On Thu, 23 Jun 2016 17:57:53 +0100 "Richard W.M. Jones" wrote: > On Thu, Jun 23, 2016 at 10:57:43AM -0500, > libvirt_us...@skagitattic.com wrote: > > Thanks for all the information, I think my last remaining question > > is why the image created with virt-install shows the full apparent > > size

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread Richard W.M. Jones
On Thu, Jun 23, 2016 at 10:57:43AM -0500, libvirt_us...@skagitattic.com wrote: > Thanks for all the information, I think my last remaining question is > why the image created with virt-install shows the full apparent size > and the image from virt-sparsify does not? (The image testimage1.qcow2 > c

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread libvirt_users
Hello, Thanks for all the information, I think my last remaining question is why the image created with virt-install shows the full apparent size and the image from virt-sparsify does not? (The image testimage1.qcow2 created with default options). As they are both qcow2 I would expect them both

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread Richard W.M. Jones
On Wed, Jun 22, 2016 at 05:56:09PM -0500, libvirt_us...@skagitattic.com wrote: > > Delete what you've done and start from the beginning. Describe > > exactly how you created the guest. Use 'qemu-img info' to show the > > format of the input file. Show precisely the virt-sparsify command > > you

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-23 Thread Andrea Bolognani
On Wed, 2016-06-22 at 17:56 -0500, libvirt_us...@skagitattic.com wrote: > If we try it again but specify raw its MUCH faster > > root@testingbox: 09:26 PM # virt-sparsify testimage.qcow2 > testimage2.qcow2 --tmp /bigtmp --format raw Input disk virtual size > = 53687091200 bytes (50.0G)

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-22 Thread libvirt_users
> Delete what you've done and start from the beginning. Describe > exactly how you created the guest. Use 'qemu-img info' to show the > format of the input file. Show precisely the virt-sparsify command > you are running. And use 'qemu-img info' on the output file too. Okay, here goes. Star

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-22 Thread Richard W.M. Jones
On Wed, Jun 22, 2016 at 12:40:40AM -0500, libvirt_us...@skagitattic.com wrote: > So you are saying when I do the virt-sparsify its converting the image > from raw to [qcow2]? No. virt-sparsify will use the same input and output formats, unless you use the --convert option. > I studied the man pa

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-21 Thread libvirt_users
Hello Rich, Thanks for the reply and information. > What is file.img? Its simply a file I made while testing sparse files "truncate -s 512M file.img". > 'du --apparent-size' and 'ls -l' are the same thing, so it's not > really surprising that you see the same numbers here. Indeed, I expected t

Re: [libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-17 Thread Richard W.M. Jones
On Wed, Jun 15, 2016 at 10:20:54AM -0500, libvirt_us...@skagitattic.com wrote: > Hello, > > I am curious why when using virt-sparsify the apparent-size of the file > gets reduced to the actual file size? Is there a way to get the > apparent-size left as the full size? > > In the man page for vi

[libvirt-users] virt-sparsify changing the apparent-size of files

2016-06-15 Thread libvirt_users
Hello, I am curious why when using virt-sparsify the apparent-size of the file gets reduced to the actual file size? Is there a way to get the apparent-size left as the full size? In the man page for virt-sparsify it has a section on "IMPORTANT NOTE ABOUT SPARSE OUTPUT IMAGES" and its output se