From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:37806) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKUJu-0004MW-H9 for qemu-devel@nongnu.org; Mon, 03 Mar 2014 09:58:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WKUJm-0003Rk-3V for qemu-devel@nongnu.org; Mon, 03 Mar 2014 09:58:18 -0500 Received: from mail-ee0-x22c.google.com ([2a00:1450:4013:c00::22c]:57533) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WKUJl-0003Re-Tc for qemu-devel@nongnu.org; Mon, 03 Mar 2014 09:58:10 -0500 Received: by mail-ee0-f44.google.com with SMTP id e49so1329113eek.17 for ; Mon, 03 Mar 2014 06:58:08 -0800 (PST) Date: Mon, 3 Mar 2014 15:58:02 +0100 From: Stefan Hajnoczi Message-ID: <20140303145802.GG21055@stefanha-thinkpad.redhat.com> References: <30e5df2b6cf6ce0dc65c03eed565893d5aa29c2f.1393554457.git.hutao@cn.fujitsu.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Subject: Re: [Qemu-devel] qemu-img cannot convert 280G VHD file to qcow2 rightly List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: redtone Cc: qemu-devel@nongnu.org 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