All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd
@ 2011-11-23 11:33 z22lad
  2011-11-23 13:35 ` Stefan Hajnoczi
                   ` (4 more replies)
  0 siblings, 5 replies; 11+ messages in thread
From: z22lad @ 2011-11-23 11:33 UTC (permalink / raw)
  To: qemu-devel

Public bug reported:

Hye, i found a problem with qemu-img when trying to get info of a
dynamic vhd. I made imgae of my 60GB computer hard drive with disk2vhd.
The dynamic vhd is 21gb size.

With 1.0-rc3 version :
running command: qemu-img info 60_GB.VHD
qemu-img:  Could not open '60_GB.VHD' : File too large

0.14.1 version give me wrong information :
image: 60_GB.VHD
file format: vpc
virtual size: 127G (136899993600 bytes)
disk size: 21G

Thanks for reply.

** Affects: qemu
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  New

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd
  2011-11-23 11:33 [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd z22lad
@ 2011-11-23 13:35 ` Stefan Hajnoczi
  2012-09-03  9:41 ` [Qemu-devel] [Bug 893956] " franxico
                   ` (3 subsequent siblings)
  4 siblings, 0 replies; 11+ messages in thread
From: Stefan Hajnoczi @ 2011-11-23 13:35 UTC (permalink / raw)
  To: Bug 893956; +Cc: qemu-devel

On Wed, Nov 23, 2011 at 11:33 AM, z22lad <893956@bugs.launchpad.net> wrote:
> Hye, i found a problem with qemu-img when trying to get info of a
> dynamic vhd. I made imgae of my 60GB computer hard drive with disk2vhd.
> The dynamic vhd is 21gb size.
>
> With 1.0-rc3 version :
> running command: qemu-img info 60_GB.VHD
> qemu-img:  Could not open '60_GB.VHD' : File too large
>
> 0.14.1 version give me wrong information :
> image: 60_GB.VHD
> file format: vpc
> virtual size: 127G (136899993600 bytes)
> disk size: 21G

Which host OS are you running qemu-img on?  Is it 32- or 64-bit?

I wonder if you get the same behavior when using qemu-img convert
instead of "disk2vhd" to create a vhd file.

Stefan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2011-11-23 11:33 [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd z22lad
  2011-11-23 13:35 ` Stefan Hajnoczi
@ 2012-09-03  9:41 ` franxico
  2012-09-04 11:41   ` Stefan Hajnoczi
  2012-09-05  6:59   ` Stefan Hajnoczi
  2012-09-04 15:00 ` Serge Hallyn
                   ` (2 subsequent siblings)
  4 siblings, 2 replies; 11+ messages in thread
From: franxico @ 2012-09-03  9:41 UTC (permalink / raw)
  To: qemu-devel

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

Thanks for your help

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  New

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2012-09-03  9:41 ` [Qemu-devel] [Bug 893956] " franxico
@ 2012-09-04 11:41   ` Stefan Hajnoczi
  2012-09-05  6:59   ` Stefan Hajnoczi
  1 sibling, 0 replies; 11+ messages in thread
From: Stefan Hajnoczi @ 2012-09-04 11:41 UTC (permalink / raw)
  To: Bug 893956; +Cc: Kevin Wolf, qemu-devel, Serge E. Hallyn

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

Serge Hallyn introduced the size check when VHD files are opened, you
can read about the background here:
http://patchwork.ozlabs.org/patch/106736/

I'm not sure if QEMU has a bug or lacks support for the file format
version used by disk2vhd.

>
> Thanks for your help
>
> --
> You received this bug notification because you are a member of qemu-
> devel-ml, which is subscribed to QEMU.
> https://bugs.launchpad.net/bugs/893956
>
> Title:
>   qemu-img bug with dynamic vhd
>
> Status in QEMU:
>   New
>
> Bug description:
>   Hye, i found a problem with qemu-img when trying to get info of a
>   dynamic vhd. I made imgae of my 60GB computer hard drive with
>   disk2vhd. The dynamic vhd is 21gb size.
>
>   With 1.0-rc3 version :
>   running command: qemu-img info 60_GB.VHD
>   qemu-img:  Could not open '60_GB.VHD' : File too large
>
>   0.14.1 version give me wrong information :
>   image: 60_GB.VHD
>   file format: vpc
>   virtual size: 127G (136899993600 bytes)
>   disk size: 21G
>
>   Thanks for reply.
>
> To manage notifications about this bug go to:
> https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions
>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2011-11-23 11:33 [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd z22lad
  2011-11-23 13:35 ` Stefan Hajnoczi
  2012-09-03  9:41 ` [Qemu-devel] [Bug 893956] " franxico
@ 2012-09-04 15:00 ` Serge Hallyn
  2012-09-05  6:54   ` Stefan Hajnoczi
  2017-06-07  8:43 ` Thomas Huth
  2017-06-07 17:06 ` Thomas Huth
  4 siblings, 1 reply; 11+ messages in thread
From: Serge Hallyn @ 2012-09-04 15:00 UTC (permalink / raw)
  To: qemu-devel

Though that commit and the comments were about 127G images.  HIs is only
27G.

Also, 'qemu-img info' is also showing the error, which shows that this
is not being done on vpc_create().

So I think this is a case of qemu-img actually failing to properly parse
the FHD file.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  New

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2012-09-04 15:00 ` Serge Hallyn
@ 2012-09-05  6:54   ` Stefan Hajnoczi
  2012-09-05 14:33     ` Serge Hallyn
  0 siblings, 1 reply; 11+ messages in thread
From: Stefan Hajnoczi @ 2012-09-05  6:54 UTC (permalink / raw)
  To: Bug 893956; +Cc: qemu-devel

On Tue, Sep 4, 2012 at 4:00 PM, Serge Hallyn <893956@bugs.launchpad.net> wrote:
> Though that commit and the comments were about 127G images.  HIs is only
> 27G.

The 127 GB limit applies to the virtual disk size, not to the size of
the image file itself.

> Also, 'qemu-img info' is also showing the error, which shows that this
> is not being done on vpc_create().

I'm not sure what you mean.  Your commit (efc8243d00) added an -EFBIG
return to vcp_open(), not vpc_create().  This will affect qemu-img
info.

We need the header/footer contents to be sure what's going on here.

Stefan

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2012-09-03  9:41 ` [Qemu-devel] [Bug 893956] " franxico
  2012-09-04 11:41   ` Stefan Hajnoczi
@ 2012-09-05  6:59   ` Stefan Hajnoczi
  1 sibling, 0 replies; 11+ messages in thread
From: Stefan Hajnoczi @ 2012-09-05  6:59 UTC (permalink / raw)
  To: Bug 893956; +Cc: qemu-devel

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

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2012-09-05  6:54   ` Stefan Hajnoczi
@ 2012-09-05 14:33     ` Serge Hallyn
  0 siblings, 0 replies; 11+ messages in thread
From: Serge Hallyn @ 2012-09-05 14:33 UTC (permalink / raw)
  To: qemu-devel

Quoting Stefan Hajnoczi (893956@bugs.launchpad.net):
> On Tue, Sep 4, 2012 at 4:00 PM, Serge Hallyn <893956@bugs.launchpad.net> wrote:
> > Though that commit and the comments were about 127G images.  HIs is only
> > 27G.
> 
> The 127 GB limit applies to the virtual disk size, not to the size of
> the image file itself.

I thought he had converted a roughly 26GB physical disk, assumed (perhaps
wrongly) that was the virtual disk size.

> > Also, 'qemu-img info' is also showing the error, which shows that this
> > is not being done on vpc_create().
> 
> I'm not sure what you mean.  Your commit (efc8243d00) added an -EFBIG
> return to vcp_open(), not vpc_create().  This will affect qemu-img
> info.

Oops, good point.  Thanks.

> We need the header/footer contents to be sure what's going on here.

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  New

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2011-11-23 11:33 [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd z22lad
                   ` (2 preceding siblings ...)
  2012-09-04 15:00 ` Serge Hallyn
@ 2017-06-07  8:43 ` Thomas Huth
  2017-06-07 14:42   ` Bobby Dimmette
  2017-06-07 17:06 ` Thomas Huth
  4 siblings, 1 reply; 11+ messages in thread
From: Thomas Huth @ 2017-06-07  8:43 UTC (permalink / raw)
  To: qemu-devel

Can you still reproduce this problem with the latest version of QEMU
(currently version 2.9.0)?

** Changed in: qemu
       Status: New => Incomplete

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  Incomplete

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2017-06-07  8:43 ` Thomas Huth
@ 2017-06-07 14:42   ` Bobby Dimmette
  0 siblings, 0 replies; 11+ messages in thread
From: Bobby Dimmette @ 2017-06-07 14:42 UTC (permalink / raw)
  To: qemu-devel

No, sorry. The environment was retired in 2014 and we took a different
direction.


-Bobby

-----Original Message-----
From: bounces@canonical.com [mailto:bounces@canonical.com] On Behalf Of Thomas Huth
Sent: Wednesday, June 07, 2017 4:44 AM
To: bjdimmette@gmail.com
Subject: [Bug 893956] Re: qemu-img bug with dynamic vhd

Can you still reproduce this problem with the latest version of QEMU
(currently version 2.9.0)?

** Changed in: qemu
       Status: New => Incomplete

--
You received this bug notification because you are subscribed to the bug report.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  Incomplete

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+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/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  Incomplete

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

* [Qemu-devel] [Bug 893956] Re: qemu-img bug with dynamic vhd
  2011-11-23 11:33 [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd z22lad
                   ` (3 preceding siblings ...)
  2017-06-07  8:43 ` Thomas Huth
@ 2017-06-07 17:06 ` Thomas Huth
  4 siblings, 0 replies; 11+ messages in thread
From: Thomas Huth @ 2017-06-07 17:06 UTC (permalink / raw)
  To: qemu-devel

** Changed in: qemu
       Status: Incomplete => Won't Fix

-- 
You received this bug notification because you are a member of qemu-
devel-ml, which is subscribed to QEMU.
https://bugs.launchpad.net/bugs/893956

Title:
  qemu-img bug with dynamic vhd

Status in QEMU:
  Won't Fix

Bug description:
  Hye, i found a problem with qemu-img when trying to get info of a
  dynamic vhd. I made imgae of my 60GB computer hard drive with
  disk2vhd. The dynamic vhd is 21gb size.

  With 1.0-rc3 version :
  running command: qemu-img info 60_GB.VHD
  qemu-img:  Could not open '60_GB.VHD' : File too large

  0.14.1 version give me wrong information :
  image: 60_GB.VHD
  file format: vpc
  virtual size: 127G (136899993600 bytes)
  disk size: 21G

  Thanks for reply.

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/893956/+subscriptions

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2017-06-07 17:26 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-11-23 11:33 [Qemu-devel] [Bug 893956] [NEW] qemu-img bug with dynamic vhd z22lad
2011-11-23 13:35 ` Stefan Hajnoczi
2012-09-03  9:41 ` [Qemu-devel] [Bug 893956] " franxico
2012-09-04 11:41   ` Stefan Hajnoczi
2012-09-05  6:59   ` Stefan Hajnoczi
2012-09-04 15:00 ` Serge Hallyn
2012-09-05  6:54   ` Stefan Hajnoczi
2012-09-05 14:33     ` Serge Hallyn
2017-06-07  8:43 ` Thomas Huth
2017-06-07 14:42   ` Bobby Dimmette
2017-06-07 17:06 ` Thomas Huth

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.