Received: from eggs.gnu.org ([2001:4830:134:3::10]:47959) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDEDH-0003C2-5d for qemu-devel@nongnu.org; Mon, 19 Jan 2015 10:26:08 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YDEDB-0008R6-Ce for qemu-devel@nongnu.org; Mon, 19 Jan 2015 10:25:59 -0500 Received: from indium.canonical.com ([91.189.90.7]:45881) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YDEDA-0008Qy-KL for qemu-devel@nongnu.org; Mon, 19 Jan 2015 10:25:53 -0500 Received: from loganberry.canonical.com ([91.189.90.37]) by indium.canonical.com with esmtp (Exim 4.76 #1 (Debian)) id 1YDED9-0007ZM-TR for ; Mon, 19 Jan 2015 15:25:51 +0000 Received: from loganberry.canonical.com (localhost [127.0.0.1]) by loganberry.canonical.com (Postfix) with ESMTP id C57812E80C1 for ; Mon, 19 Jan 2015 15:25:51 +0000 (UTC) MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Date: Mon, 19 Jan 2015 15:19:05 -0000 From: AMULYA L Sender: bounces@canonical.com References: <20141204133138.26031.92640.malonedeb@wampee.canonical.com> <20150107153028.GF22440@stefanha-thinkpad.redhat.com> <20150107154032.GA9755@localhost.localdomain> <20150113034825.GD9755@localhost.localdomain> Message-Id: <325E406FF3148746AE850A462FB06F45024B26@MX105CL02.corp.emc.com> Errors-To: bounces@canonical.com Subject: Re: [Qemu-devel] [Bug 1399191] [NEW] 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 -----Original Message----- From: Jeff Cody [mailto:jcody@redhat.com] = Sent: Tuesday, January 13, 2015 9:18 AM To: Lokesha, Amulya Cc: Bug 1399191; Geoffroy, Daniel Subject: Re: [Qemu-devel] [Bug 1399191] [NEW] Large VHDX image size On Sun, Jan 11, 2015 at 11:33:31PM -0500, Lokesha, Amulya wrote: > Please find comments inline > = > -----Original Message----- > From: bounces@canonical.com [mailto:bounces@canonical.com] On Behalf = > Of Jeff Cody > Sent: Wednesday, January 07, 2015 9:11 PM > To: Lokesha, Amulya > Subject: Re: [Qemu-devel] [Bug 1399191] [NEW] Large VHDX image size > = > On Wed, Jan 07, 2015 at 03:30:28PM +0000, Stefan Hajnoczi wrote: > > On Thu, Dec 04, 2014 at 01:31:38PM -0000, AMULYA L wrote: > > > Public bug reported: > > > = > > > 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' > > > format. We found that both the disks occupy the same size of 50GB. = > > > When the same 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 > > = > > Jeff, did you fix this recently in commit > > 85b712c9d5b873562c864e72f69cbf0d87d2fe40 ("block: vhdx - set = > > .bdrv_has_zero_init to bdrv_has_zero_init_1")? > > = > > Stefan > = > = > Yes, although there has been a report that there are issues in the = > resulting vhdx image in a MS server, after this patch. I am going to = > test and fix (if confirmed) once my MSDN subscription is renewed (in = > process now, I expect it anytime). > = > Jeff > = > -- > = > Hi Jeff, > = > Could you please give us a possible timeline of when fix will be = > available. Our customers are waiting on this as we are blocked with = > the image creation. > = > Thanks, Amulya Hi Amulya, I have my MSDN stuff sorted out now, so give me a day or two get my test machine up and running & testing. -Jeff Hi Jeff, Any updates on this? Where you able to get it tested Thanks, -Amulya > = > = > You received this bug notification because you are subscribed to the bug = report. > 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 Hyper= V Server ( SCVMM 2012 SP1) using qemu-img. > We tried converting the image using both 'fixed' as well as 'dynamic' f= ormat. We found that both the disks occupy the same size of 50GB. When the = same is done with VHD image, we found that the dynamic disks are much lesse= r 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 -- = 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