RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 999288 - Add VDI format support from qemu-kvm
Summary: Add VDI format support from qemu-kvm
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Jeff Cody
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: 1122366
TreeView+ depends on / blocked
 
Reported: 2013-08-21 05:48 UTC by tingting zheng
Modified: 2014-09-02 13:05 UTC (History)
11 users (show)

Fixed In Version:
Doc Type: Enhancement
Doc Text:
Clone Of:
: 1122366 (view as bug list)
Environment:
Last Closed: 2014-09-02 13:05:41 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description tingting zheng 2013-08-21 05:48:18 UTC
Description of problem:
Add VDI format support from qemu-kvm

Version-Release number of selected component (if applicable):
qemu-kvm-1.5.2-3.el7.x86_64
libvirt-1.1.1-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Use qemu-img to create vdi disk.
qemu-img create -f vdi vdi.img 1G
Formatting 'vdi.img', fmt=vdi size=1073741824 static=off

# qemu-img info vdi.img
image: vdi.img
file format: vdi
virtual size: 1.0G (1073741824 bytes)
disk size: 8.0K
cluster_size: 1048576

2.Edit xml of guest test to add the below part:
    <disk type='file' device='disk'>
      <driver name='qemu' type='vdi'/>
      <source file='/var/lib/libvirt/images/vdi.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>

3.Boot the guest:
# virsh start test
error: Failed to start domain test
error: internal error: process exited while connecting to monitor: char device redirected to /dev/pts/3 (label charserial0)
qemu-kvm: -drive file=/var/lib/libvirt/images/vdi.img,if=none,id=drive-ide0-0-1,format=vdi: 'vdi' invalid format

Actual results:
Can not boot guest with vdi disk.

Expected results:
Can boot guest with vdi disk.

Additional info:
I tried old version of qemu-kvm,it supports vdi disk,also there is bug 907530 to provide vdi disk support from libvirt.
libvirt-1.0.3-1.el7.x86_64
qemu-kvm-1.3.0-6.el7.x86_64


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