Received: from eggs.gnu.org ([2001:4830:134:3::10]:58780) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDNQU-0005OG-9h for qemu-devel@nongnu.org; Sun, 27 Dec 2015 21:20:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aDNQR-0001ng-7R for qemu-devel@nongnu.org; Sun, 27 Dec 2015 21:20:46 -0500 Received: from indium.canonical.com ([91.189.90.7]:48361) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aDNQR-0001nW-1U for qemu-devel@nongnu.org; Sun, 27 Dec 2015 21:20:43 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1aDNQQ-0006G6-KP for ; Mon, 28 Dec 2015 02:20:42 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id 8DE372E80C4 for ; Mon, 28 Dec 2015 02:20:42 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 28 Dec 2015 02:14:25 -0000 From: Jan Sender: bounces@canonical.com References: <20141204133138.26031.92640.malonedeb@wampee.canonical.com> Message-Id: <20151228021425.26366.18492.malone@gac.canonical.com> Errors-To: bounces@canonical.com Subject: [Qemu-devel] [Bug 1399191] Re: Large VHDX image size Reply-To: Bug 1399191 <1399191@bugs.launchpad.net> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org qemu-img version is 1.5.3. I also use newer version to do the conversion, it has the same result. -- = You received this bug notification because you are a member of qemu- devel-ml, which is subscribed to QEMU. https://bugs.launchpad.net/bugs/1399191 Title: Large VHDX image size Status in QEMU: New Bug description: We are trying to convert a VMDK image to VHDX image for deploy to HyperV = Server ( SCVMM 2012 SP1) using qemu-img. We tried converting the image using both 'fixed' as well as 'dynamic' for= mat. We found that both the disks occupy the same size of 50GB. When the sa= me is done with VHD image, we found that the dynamic disks are much lesser = in size (5 GB) than the fixed disk (50GB). = Why is that the VHDX generates large sized images for both the formats? The following commands were used to convert the vmdk image to VHDX format 1. qemu-img convert -p -o subformat=3Dfixed -f vmdk -O vhdx Test.vmdk Test-fixed.vhdx qemu-img info Test-fixed.vhdx image: Test-fixed.vhdx file format: vhdx virtual size: 50G (53687091200 bytes) disk size: 50G cluster_size: 16777216 = 2. qemu-img convert -p -o subformat=3Ddynamic -f vmdk -O vhdx Test.vmdk = Test-dynamic.vhdx qemu-img info Test-dynamic.vhdx image: Test-dynamic.vhdx file format: vhdx virtual size: 50G (53687091200 bytes) disk size: 50G cluster_size: 16777216 = We tried this with the following version of qemu 1. qemu-2.0.0 2. qemu-2.1.2 3. qemu-2.2.0-rc4 = Please let us know how to create compact VHDX images using qemu-img. Thank you To manage notifications about this bug go to: https://bugs.launchpad.net/qemu/+bug/1399191/+subscriptions