Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 719435 - libvirt ignores disk target parameter
libvirt ignores disk target parameter
Status: CLOSED ERRATA
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libvirt (Show other bugs)
5.6
x86_64 Linux
medium Severity medium
: rc
: ---
Assigned To: Eric Blake
Virtualization Bugs
: Patch
Depends On: 683005
Blocks: 668957
  Show dependency treegraph
 
Reported: 2011-07-06 15:58 EDT by Nandini Chandra
Modified: 2012-02-21 01:18 EST (History)
18 users (show)

See Also:
Fixed In Version: libvirt-0.8.2-23.el5
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 683005
Environment:
Last Closed: 2012-02-21 01:18:08 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:0248 normal SHIPPED_LIVE libvirt bug fix update 2012-02-20 10:07:14 EST

  None (edit)
Comment 10 yanbing du 2011-10-26 04:27:03 EDT
Verified this bug with:
libvirt-0.8.2-23.el5

Test steps:
1. Add the following disk xml info into guest(named "test") config file
# virsh edit test 
...
<disk type='block' device='disk'>
<driver name='qemu' cache='none'/>
<source dev='/var/lib/libvirt/images/disk-a.img'/>
<target dev='vdb' bus='virtio'/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' cache='none'/>
<source dev='/var/lib/libvirt/images/disk-b.img'/>
<target dev='vdc' bus='virtio'/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' cache='none'/>
<source dev='/var/lib/libvirt/images/disk-c.img'/>
<target dev='vde' bus='virtio'/>
</disk>
<disk type='block' device='disk'>
<driver name='qemu' cache='none'/>
<source dev='/var/lib/libvirt/images/disk-d.img'/>
<target dev='vdd' bus='virtio'/>
</disk>
2. start the guest
# virsh start test
3. # virsh dumpxml test
...
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/var/lib/libvirt/images/disk-a.img'/>
      <target dev='vdb' bus='virtio'/>
      <alias name='virtio1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/var/lib/libvirt/images/disk-b.img'/>
      <target dev='vdc' bus='virtio'/>
      <alias name='virtio2'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x06' function='0x0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/var/lib/libvirt/images/disk-d.img'/>
      <target dev='vdd' bus='virtio'/>
      <alias name='virtio3'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>
    </disk>
    <disk type='block' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source dev='/var/lib/libvirt/images/disk-c.img'/>
      <target dev='vde' bus='virtio'/>
      <alias name='virtio4'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'/>
    </disk>
...
4. # ps axu|grep test
...
root     19558 75.9  4.3 2650128 355128 ?      Sl   16:11   0:40 /usr/libexec/qemu-kvm -S -M rhel5.4.0 -m 2048 -smp 2,sockets=2,cores=1,threads=1 -name test -uuid 55a5f876-b911-0f60-5275-897cb07cdd51 -monitor unix:/var/lib/libvirt/qemu/test.monitor,server,nowait -no-kvm-pit-reinjection -boot c -drive file=/var/lib/libvirt/images/test-1.img,if=virtio,boot=on,format=raw,cache=none -drive file=/var/lib/libvirt/images/disk-a.img,if=virtio,format=raw,cache=none -drive file=/var/lib/libvirt/images/disk-b.img,if=virtio,format=raw,cache=none -drive file=/var/lib/libvirt/images/disk-d.img,if=virtio,format=raw,cache=none -drive file=/var/lib/libvirt/images/disk-c.img,if=virtio,format=raw,cache=none -net nic,macaddr=54:52:00:69:43:54,vlan=0,model=virtio -net tap,fd=19,vlan=0 -serial pty -parallel none -usb -usbdevice tablet -vnc 127.0.0.1:0 -k en-us -vga cirrus -balloon virtio
...

After adding disks to guest, disks are reordered from vdb to vde. So move bug to VERIFIED.
Comment 11 errata-xmlrpc 2012-02-21 01:18:08 EST
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHBA-2012-0248.html

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