From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:38046) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T99a2-0000Kg-DE for qemu-devel@nongnu.org; Wed, 05 Sep 2012 02:59:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T99Zw-0001MQ-Qn for qemu-devel@nongnu.org; Wed, 05 Sep 2012 02:59:18 -0400 Received: from mail-lpp01m010-f45.google.com ([209.85.215.45]:51652) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T99Zw-0001LJ-Iz for qemu-devel@nongnu.org; Wed, 05 Sep 2012 02:59:12 -0400 Received: by lagz14 with SMTP id z14so97663lag.4 for ; Tue, 04 Sep 2012 23:59:11 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120903094143.1115.6377.malone@soybean.canonical.com> References: <20111123113338.301.42834.malonedeb@gac.canonical.com> <20120903094143.1115.6377.malone@soybean.canonical.com> Date: Wed, 5 Sep 2012 07:59:11 +0100 Message-ID: From: Stefan Hajnoczi Content-Type: text/plain; charset=ISO-8859-1 Subject: Re: [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Bug 893956 <893956@bugs.launchpad.net> Cc: qemu-devel@nongnu.org On Mon, Sep 3, 2012 at 10:41 AM, franxico <893956@bugs.launchpad.net> wrote: > Hi, > > I'm having the same problem. I'm using qemu-img 1.0, running from a > Ubuntu Server 12.04 x64 on a SW RAID, ext4. > > The .VHD has 29GB and was made using disk2vhd. > > Here is the command and the results: > sudo kvm-img convert -f vpc -O raw image.VHD image.img > [sudo] password for sysop: > kvm-img: Could not open 'image.VHD': File too large > kvm-img: Could not open 'image.VHD' > > Same error doing a simple qemu-img info image.vhd Please post the output of the following commands: $ hexdump -C -n 512 image.VHD $ hexdump -C -n 512 -s $(($(ls -l image.VHD | awk '{ print $5 }') - 512)) image.VHD This will show the file header/footer, which contains fields that are validated when opening the file. Thanks, Stefan