All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
@ 2015-02-24  2:36 ` Serge Hallyn
  2015-09-09  9:09 ` Radoslav Gerganov
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Serge Hallyn @ 2015-02-24  2:36 UTC (permalink / raw)
  To: qemu-devel

** Also affects: qemu
   Importance: Undecided
       Status: New

** Also affects: qemu (Ubuntu)
   Importance: Undecided
       Status: New

** Changed in: qemu (Ubuntu)
   Importance: Undecided => Medium

** Changed in: qemu (Ubuntu)
       Status: New => Confirmed

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  New
Status in qemu package in Ubuntu:
  Confirmed
Status in qemu-kvm package in Ubuntu:
  Confirmed

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
  2015-02-24  2:36 ` [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat Serge Hallyn
@ 2015-09-09  9:09 ` Radoslav Gerganov
  2015-09-16 12:11 ` Radoslav Gerganov
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Radoslav Gerganov @ 2015-09-09  9:09 UTC (permalink / raw)
  To: qemu-devel

With the latest codebase there is no error message but the converted
streamOptimized image is incorrect.  I have a patch for this and will
submit it for review soon.

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

** Changed in: qemu
     Assignee: (unassigned) => Radoslav Gerganov (rgerganov)

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Confirmed
Status in qemu package in Ubuntu:
  Confirmed
Status in qemu-kvm package in Ubuntu:
  Confirmed

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
  2015-02-24  2:36 ` [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat Serge Hallyn
  2015-09-09  9:09 ` Radoslav Gerganov
@ 2015-09-16 12:11 ` Radoslav Gerganov
  2015-09-16 13:32   ` Kevin Wolf
  2015-09-19  0:34 ` Launchpad Bug Tracker
                   ` (5 subsequent siblings)
  8 siblings, 1 reply; 11+ messages in thread
From: Radoslav Gerganov @ 2015-09-16 12:11 UTC (permalink / raw)
  To: qemu-devel

My patch has landed:
https://github.com/qemu/qemu/commit/3efffc3292d94271a15b1606b4a56adf6c6f04ed

I think we can resolve this bug as fixed.   Just one note for those how
are trying to use streamOptimized images with VMware: you need to patch
the VMDK version because VMware products accept only version 3 for
streamOptimized:

# Set VMDK version 3 for foo.vmdk
$ printf '\x03' | dd conv=notrunc of=foo.vmdk bs=1 seek=$((0x4))


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

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Committed
Status in qemu package in Ubuntu:
  Confirmed
Status in qemu-kvm package in Ubuntu:
  Confirmed

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* Re: [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
  2015-09-16 12:11 ` Radoslav Gerganov
@ 2015-09-16 13:32   ` Kevin Wolf
  2015-09-17  4:55     ` Fam Zheng
  0 siblings, 1 reply; 11+ messages in thread
From: Kevin Wolf @ 2015-09-16 13:32 UTC (permalink / raw)
  To: qemu-block, rgerganov; +Cc: famz, qemu-devel

Am 16.09.2015 um 14:11 hat Radoslav Gerganov geschrieben:
> My patch has landed:
> https://github.com/qemu/qemu/commit/3efffc3292d94271a15b1606b4a56adf6c6f04ed
> 
> I think we can resolve this bug as fixed.   Just one note for those how
> are trying to use streamOptimized images with VMware: you need to patch
> the VMDK version because VMware products accept only version 3 for
> streamOptimized:
> 
> # Set VMDK version 3 for foo.vmdk
> $ printf '\x03' | dd conv=notrunc of=foo.vmdk bs=1 seek=$((0x4))

Then I guess this is how qemu-img should create the image in the first
place. After all, compatibility with VMware is the only reason why the
VMDK driver exists.

Radoslav or Fam, can one of you send a patch for this?

Kevin

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

* Re: [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
  2015-09-16 13:32   ` Kevin Wolf
@ 2015-09-17  4:55     ` Fam Zheng
  0 siblings, 0 replies; 11+ messages in thread
From: Fam Zheng @ 2015-09-17  4:55 UTC (permalink / raw)
  To: Kevin Wolf; +Cc: rgerganov, qemu-block, qemu-devel

On Wed, 09/16 15:32, Kevin Wolf wrote:
> Am 16.09.2015 um 14:11 hat Radoslav Gerganov geschrieben:
> > My patch has landed:
> > https://github.com/qemu/qemu/commit/3efffc3292d94271a15b1606b4a56adf6c6f04ed
> > 
> > I think we can resolve this bug as fixed.   Just one note for those how
> > are trying to use streamOptimized images with VMware: you need to patch
> > the VMDK version because VMware products accept only version 3 for
> > streamOptimized:
> > 
> > # Set VMDK version 3 for foo.vmdk
> > $ printf '\x03' | dd conv=notrunc of=foo.vmdk bs=1 seek=$((0x4))
> 
> Then I guess this is how qemu-img should create the image in the first
> place. After all, compatibility with VMware is the only reason why the
> VMDK driver exists.
> 
> Radoslav or Fam, can one of you send a patch for this?

I'll send a patch.

Fam

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
                   ` (2 preceding siblings ...)
  2015-09-16 12:11 ` Radoslav Gerganov
@ 2015-09-19  0:34 ` Launchpad Bug Tracker
  2016-03-29 22:36 ` Serge Hallyn
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Launchpad Bug Tracker @ 2015-09-19  0:34 UTC (permalink / raw)
  To: qemu-devel

This bug was fixed in the package qemu - 1:2.3+dfsg-5ubuntu6

---------------
qemu (1:2.3+dfsg-5ubuntu6) wily; urgency=medium

  * Make qemu-system-common and qemu-utils depend on qemu-block-extra
    to fix errors with missing block backends. (LP: #1495895)
  * Cherry pick fixes for vmdk stream-optimized subformat (LP: #1006655)
  * Apply fix for memory corruption during live-migration in tcg mode
    (LP: #1493049)
  * Apply tracing patch to remove use of custom vtable in newer glibc
    (LP: #1491972)

 -- Ryan Harper <ryan.harper@canonical.com>  Tue, 15 Sep 2015 09:37:23
-0500

** Changed in: qemu (Ubuntu)
       Status: Confirmed => Fix Released

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Committed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-kvm package in Ubuntu:
  Confirmed

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
                   ` (3 preceding siblings ...)
  2015-09-19  0:34 ` Launchpad Bug Tracker
@ 2016-03-29 22:36 ` Serge Hallyn
  2016-04-01  8:28 ` Thiago Martins
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Serge Hallyn @ 2016-03-29 22:36 UTC (permalink / raw)
  To: qemu-devel

I'm confused- this is marked as affecting qemu-kvm in precise, but the
preceding patch (c6ac36e) which introduced the bug is not there either.
So I'm going to mark this as not affecting precise unless someone speaks
up to say that we in fact need the whole dependent series.


** Changed in: qemu-kvm (Ubuntu)
       Status: Confirmed => Invalid

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Committed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-kvm package in Ubuntu:
  Invalid

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
                   ` (4 preceding siblings ...)
  2016-03-29 22:36 ` Serge Hallyn
@ 2016-04-01  8:28 ` Thiago Martins
  2016-04-01  8:29 ` Thiago Martins
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 11+ messages in thread
From: Thiago Martins @ 2016-04-01  8:28 UTC (permalink / raw)
  To: qemu-devel

I have tried, many times, to use qemu-img to create StreamOptimized for
VMWare ESXi 6.0 OVAs.

It does NOT work.

After days of research, I replaced qemu-img, by vboxmanage, then, it
worked!

Now, I'm using something this:

--
vboxmanage convertfromraw packer/output-vm.raw packer/output-vm-disk1.vmdk --format vmdk --variant Stream
--

I also had to edit the headers, with dd:

---
dd if=output-vm-disk1.vmdk of=output-vm-disk1.descriptor bs=1 skip=512 count=1024
sed -i -e 's/ide/lsilogic/g' output-vm-disk1.descriptor
dd conv=notrunc,nocreat if=output-vm-disk1.descriptor of=output-disk1.vmdk bs=1 seek=512 count=1024
---

This is the only way to build StreamOptimized VMDKs, for inclusion
inside of OVA, that works on VMWare 6.0.

The qemu-img can not be used.

Here is my full solution to this problem (if the same problem):

https://github.com/tmartinx/svauto/blob/dev/image-factory.sh#L510

I'm just not entirely sure if we're talking about the same problem
here...

Cheers!
Thiago

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Committed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-kvm package in Ubuntu:
  Invalid

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
                   ` (5 preceding siblings ...)
  2016-04-01  8:28 ` Thiago Martins
@ 2016-04-01  8:29 ` Thiago Martins
  2017-01-19 14:23 ` Thomas Huth
  2017-09-29 17:47 ` Francis Ginther
  8 siblings, 0 replies; 11+ messages in thread
From: Thiago Martins @ 2016-04-01  8:29 UTC (permalink / raw)
  To: qemu-devel

It looks like my problem is different, since I'm not seeing this:

qemu-img: error while writing sector 65: Input/output error

But maybe, it is a light in the end of the tunnel...

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Committed
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-kvm package in Ubuntu:
  Invalid

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
                   ` (6 preceding siblings ...)
  2016-04-01  8:29 ` Thiago Martins
@ 2017-01-19 14:23 ` Thomas Huth
  2017-09-29 17:47 ` Francis Ginther
  8 siblings, 0 replies; 11+ messages in thread
From: Thomas Huth @ 2017-01-19 14:23 UTC (permalink / raw)
  To: qemu-devel

Patch 3efffc3292d9427 had been released with QEMU 2.5

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

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-kvm package in Ubuntu:
  Invalid

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

* [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat
       [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
                   ` (7 preceding siblings ...)
  2017-01-19 14:23 ` Thomas Huth
@ 2017-09-29 17:47 ` Francis Ginther
  8 siblings, 0 replies; 11+ messages in thread
From: Francis Ginther @ 2017-09-29 17:47 UTC (permalink / raw)
  To: qemu-devel

** Tags added: id-5880d8a1fc49f942b6e55443

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

Title:
  Can't convert to vmdk with the streamOptimized subformat

Status in QEMU:
  Fix Released
Status in qemu package in Ubuntu:
  Fix Released
Status in qemu-kvm package in Ubuntu:
  Invalid

Bug description:
  Hi all,
  I'm trying to convert a qcow2 image file to the vmdk (on Ubuntu Server 12.04):

  # qemu-img convert -f qcow2 -O vmdk -o Stream spv-2912.qcow2 spv-2912-3.vmdk -o subformat=streamOptimized
  VMDK: can't write to allocated cluster for streamOptimized
  qemu-img: error while writing sector 65: Input/output error

  Same result with any input format. Others subformats work but the
  StreamOptimized is by far the most important one. The only workaround
  I found is to migrate to raw and then to use VBoxManage (VirtualBox).

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

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

end of thread, other threads:[~2017-09-29 18:07 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20120530234408.16043.24886.malonedeb@chaenomeles.canonical.com>
2015-02-24  2:36 ` [Qemu-devel] [Bug 1006655] Re: Can't convert to vmdk with the streamOptimized subformat Serge Hallyn
2015-09-09  9:09 ` Radoslav Gerganov
2015-09-16 12:11 ` Radoslav Gerganov
2015-09-16 13:32   ` Kevin Wolf
2015-09-17  4:55     ` Fam Zheng
2015-09-19  0:34 ` Launchpad Bug Tracker
2016-03-29 22:36 ` Serge Hallyn
2016-04-01  8:28 ` Thiago Martins
2016-04-01  8:29 ` Thiago Martins
2017-01-19 14:23 ` Thomas Huth
2017-09-29 17:47 ` Francis Ginther

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.