Bug 999288 - Add VDI format support from qemu-kvm
Add VDI format support from qemu-kvm
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: qemu-kvm (Show other bugs)
Unspecified Unspecified
medium Severity medium
: rc
: ---
Assigned To: Jeff Cody
Virtualization Bugs
: FutureFeature
Depends On:
Blocks: 1122366
  Show dependency treegraph
Reported: 2013-08-21 01:48 EDT by tingting zheng
Modified: 2014-09-02 09:05 EDT (History)
11 users (show)

See Also:
Fixed In Version:
Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of:
: 1122366 (view as bug list)
Last Closed: 2014-09-02 09:05:41 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description tingting zheng 2013-08-21 01:48:18 EDT
Description of problem:
Add VDI format support from qemu-kvm

Version-Release number of selected component (if applicable):

How reproducible:

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'/>

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.

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