Bug 1455814 - RFE: <disk> <target dev=...> should really be optional in new XML
Summary: RFE: <disk> <target dev=...> should really be optional in new XML
Keywords:
Status: CLOSED DUPLICATE of bug 1326526
Alias: None
Product: Virtualization Tools
Classification: Community
Component: libvirt
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Libvirt Maintainers
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-26 08:06 UTC by Richard W.M. Jones
Modified: 2017-05-30 13:54 UTC (History)
3 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2017-05-30 13:54:04 UTC
Embargoed:


Attachments (Terms of Use)

Description Richard W.M. Jones 2017-05-26 08:06:02 UTC
Description of problem:

I'm trying to create a guest with 500 disks for testing, writing
the XML by hand.

I got to:

    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/home/rjones/disk1.img'/>
      <target bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='1'/>
    </disk>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/home/rjones/disk2.img'/>
      <target bus='scsi'/>
      <address type='drive' controller='0' bus='0' target='0' unit='2'/>
    </disk>
(etc)

but then libvirt complains:

error: missing target information for device /home/rjones/disk1.img

which is technically true, but honestly couldn't libvirt just
generate those target device names?  Writing 500 of them by
hand is impossible.

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

libvirt-3.2.0-3.el7.x86_64

Steps to Reproduce:
1. See above.

Comment 1 Cole Robinson 2017-05-30 13:54:04 UTC

*** This bug has been marked as a duplicate of bug 1326526 ***


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