Skip to contentSkip to conversation

qemu-img cannot create fixed vhdx

Qemu-devel Adelina Tuvenie 2 participants 4 messages Sep 17, 2014 – Jun 21, 2016

lore
Share & tools
lore
#0 lore raw

Public bug reported:

When trying to create a fixed vhdx image, qemu-img fails with the following error:

qemu-img: test.vhdx: Could not create image: Cannot allocate
memory

This happens because of a incorrect check in vhdx.c

** Affects: qemu
Importance: Undecided
Status: New

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

Title:
  qemu-img cannot create fixed vhdx

Status in QEMU:
  New

Bug description:
  When trying to create a fixed vhdx image, qemu-img fails with the
  following error:

           qemu-img: test.vhdx: Could not create image: Cannot allocate
  memory

  This happens because of a incorrect check in vhdx.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1370585/+subscriptions
#1 lore raw

Works for me on 07e2863d0271ac6c05206d8ce9e4f4c39b25d3ea:

$ uname -a
Linux  3.16.2-200.fc20.x86_64 #1 SMP Mon Sep 8 11:54:45 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ ./qemu-img create -f vhdx -o subformat=fixed test.vhdx 10G
Formatting 'test.vhdx', fmt=vhdx size=10737418240 log_size=1048576 block_size=0 subformat='fixed'

Please include the command-line needed to reproduce this bug.

You also mentioned an "incorrect check in vhdx.c". What exactly is wrong? If you have a patch, please send it to [email protected] after looking at the code submission guidelines:
http://qemu-project.org/Contribute/SubmitAPatch

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

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

Title:
  qemu-img cannot create fixed vhdx

Status in QEMU:
  Incomplete

Bug description:
  When trying to create a fixed vhdx image, qemu-img fails with the
  following error:

           qemu-img: test.vhdx: Could not create image: Cannot allocate
  memory

  This happens because of a incorrect check in vhdx.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1370585/+subscriptions
#2 lore raw
In reply to Adelina Tuvenie

This has been fixed by a011898d25b8a26a311d56dfe37e8d3a4374ec65.

** Changed in: qemu
Status: Incomplete => Fix Committed

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

Title:
  qemu-img cannot create fixed vhdx

Status in QEMU:
  Fix Committed

Bug description:
  When trying to create a fixed vhdx image, qemu-img fails with the
  following error:

           qemu-img: test.vhdx: Could not create image: Cannot allocate
  memory

  This happens because of a incorrect check in vhdx.c

To manage notifications about this bug go to:
https://bugs.launchpad.net/qemu/+bug/1370585/+subscriptions
#3 lore raw
In reply to Adelina Tuvenie

** Changed in: qemu
Status: Fix Committed => Fix Released

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

Title:
  qemu-img cannot create fixed vhdx

Status in QEMU:
  Fix Released

Bug description:
  When trying to create a fixed vhdx image, qemu-img fails with the
  following error:

           qemu-img: test.vhdx: Could not create image: Cannot allocate
  memory

  This happens because of a incorrect check in vhdx.c

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