From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52874) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJLwh-0000ZA-PX for qemu-devel@nongnu.org; Fri, 28 Feb 2014 06:49:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WJLwa-0001d6-FY for qemu-devel@nongnu.org; Fri, 28 Feb 2014 06:49:39 -0500 Received: from [103.21.136.155] (port=42898 helo=mx10.kingstor.cn) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WJLwa-0001aH-4u for qemu-devel@nongnu.org; Fri, 28 Feb 2014 06:49:32 -0500 Received: from localhost (localhost.localdomain [127.0.0.1]) by mx10.kingstor.cn (KingMail v1.0(Postfix)) with ESMTP id 4D86627DA4 for ; Fri, 28 Feb 2014 19:10:29 +0800 (CST) Received: from mx10.kingstor.cn ([127.0.0.1]) by localhost (mx10.kingstor.cn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EIEdPim7-eud for ; Fri, 28 Feb 2014 19:10:28 +0800 (CST) Received: from ovdoem (unknown [116.224.228.13]) by mx10.kingstor.cn (KingMail v1.0(Postfix)) with ESMTPA id A5ACE27D92 for ; Fri, 28 Feb 2014 19:10:27 +0800 (CST) From: "redtone" References: <30e5df2b6cf6ce0dc65c03eed565893d5aa29c2f.1393554457.git.hutao@cn.fujitsu.com> Date: Fri, 28 Feb 2014 19:10:18 +0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit In-Reply-To: <30e5df2b6cf6ce0dc65c03eed565893d5aa29c2f.1393554457.git.hutao@cn.fujitsu.com> Subject: [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: qemu-devel@nongnu.org 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 [root@raknode01 disk01]# qemu-img convert -f vpc uslinux01-2.vhd -O qcow2 kvm570_data [root@raknode01 disk01]# qemu-img info kvm570_os image: kvm570_os file format: qcow2 virtual size: 10.0G (10737377280 bytes) disk size: 3.9G cluster_size: 65536 Format specific information: compat: 1.1 lazy refcounts: false [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