All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: redtone <kelphon@redtone.hk>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] qemu-img cannot convert 280G VHD file to qcow2 rightly
Date: Mon, 3 Mar 2014 15:58:02 +0100	[thread overview]
Message-ID: <20140303145802.GG21055@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <B74ADC9DFB8D45AEA390C6E1FFA68D26@ovdoem>

On Fri, Feb 28, 2014 at 07:10:18PM +0800, redtone wrote:
> Vhd file uslinux01-1.vhd is uploaded to KVM node, the original VHD's size is
> 290G
> But when I convert to QCOW2, I find the disk size is 127G, and then I also
> found the uslinux01-1.vhd disk size is 127G by qemu-img info.
> 
> Qemu version is 1.7.0 stable

This bug report is unrelated to this patch series.  In the future,
please start new email threads for unrelated discussions.

> [root@raknode01 disk01]# qemu-img convert -f vpc uslinux01-2.vhd -O qcow2
> kvm570_data
[...]
> [root@raknode01 disk01]# qemu-img info kvm570_data
> image: kvm570_data
> file format: qcow2
> virtual size: 127G (136899993600 bytes)
> disk size: 113M
> cluster_size: 65536
> Format specific information:
>     compat: 1.1
>     lazy refcounts: false
> [root@raknode01 disk01]# qemu-img info uslinux01-2.vhd
> image: uslinux01-2.vhd
> file format: vpc
> virtual size: 127G (136899993600 bytes)
> disk size: 5.0G

This output doesn't show anything unexpected.  You converted a VHD file
to qcow2.  The guest sees a 127 GB virtual disk for both the VHD and the
qcow2 file.

You didn't show the part where the VHD is 290 GB.

Can you post step-by-step instructions for reproducing the problem?

Thanks,
Stefan

  reply	other threads:[~2014-03-03 14:58 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-28  2:29 [Qemu-devel] [PATCH v6 0/4] qemu-img: add preallocation=full Hu Tao
2014-02-28  2:29 ` [Qemu-devel] [PATCH v6 1/4] qapi: introduce PreallocMode and a new PreallocMode full Hu Tao
2014-02-28  2:29 ` [Qemu-devel] [PATCH v6 2/4] raw, qcow2: don't convert file size to sector size Hu Tao
2014-02-28 11:10   ` [Qemu-devel] qemu-img cannot convert 280G VHD file to qcow2 rightly redtone
2014-03-03 14:58     ` Stefan Hajnoczi [this message]
2014-02-28  2:29 ` [Qemu-devel] [PATCH v6 3/4] raw-posix: Add full image preallocation option Hu Tao
2014-02-28  2:29 ` [Qemu-devel] [PATCH v6 4/4] qcow2: " Hu Tao
2014-03-03 15:00 ` [Qemu-devel] [PATCH v6 0/4] qemu-img: add preallocation=full Stefan Hajnoczi
2014-03-04  7:31   ` Hu Tao
2014-03-04  8:19     ` Stefan Hajnoczi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140303145802.GG21055@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=kelphon@redtone.hk \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.