Bug 1816561 - qemu-img: Protocol driver 'host_device' does not support image creation - when converting to a block device
Summary: qemu-img: Protocol driver 'host_device' does not support image creation - whe...
Keywords:
Status: CLOSED DUPLICATE of bug 1816007
Alias: None
Product: Red Hat Enterprise Linux Advanced Virtualization
Classification: Red Hat
Component: qemu-kvm
Version: 8.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: 8.0
Assignee: Virtualization Maintenance
QA Contact: CongLi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2020-03-24 09:41 UTC by Benny Zlotnik
Modified: 2020-04-14 02:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-24 09:48:39 UTC
Type: Bug
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Benny Zlotnik 2020-03-24 09:41:27 UTC
Description of problem:
The behavior when converting an image to block device has changed and now fails with "qemu-img: Protocol driver 'host_device' does not support image creation"

[root@lynx23 ~]# lvcreate -L 100M f1373d19-38a2-4730-b092-3a86b7f3b22d -n foo1
  Rounding up size to full physical extent 128.00 MiB
  Logical volume "foo1" created.
[root@lynx23 ~]# qemu-img create -f raw /dev/f1373d19-38a2-4730-b092-3a86b7f3b22d/foo1 100M
Formatting '/dev/f1373d19-38a2-4730-b092-3a86b7f3b22d/foo1', fmt=raw size=104857600
[root@lynx23 ~]# lvcreate -L 100M f1373d19-38a2-4730-b092-3a86b7f3b22d -n foo2
  Rounding up size to full physical extent 128.00 MiB
  Logical volume "foo2" created.
[root@lynx23 ~]# qemu-img convert -p -t none -T none -f raw /dev/f1373d19-38a2-4730-b092-3a86b7f3b22d/foo1 -O raw -W /dev/f1373d19-38a2-4730-b092-3a86b7f3b22d/foo2
qemu-img: Protocol driver 'host_device' does not support image creation

This can be fixed by adding the '-n' flag, but breaks current behaviour

Version-Release number of selected component (if applicable):
qemu-img-4.2.0-15.module+el8.2.0+6029+618ef2ec.x86_64

How reproducible:
100%

Steps to Reproduce:
Provided in description
1.
2.
3.

Actual results:


Expected results:


Additional info:


Note You need to log in before you can comment on or make changes to this bug.