Public bug reported:

While trying to add multiple disks to ubuntu guest on an ubuntu KVM, the 
following error is reported.
Error: internal error: process exited while connecting to monitor: 
qemu-system-ppc64: -drive 
file=/dev/sdd,format=raw,if=none,id=drive-scsi0-0-0-0,cache=none,aio=native: 
Duplicate ID 'drive-scsi0-0-0-0' for drive

It seems libvirt is using the same id for more than one disk. My
impression is that something is wrong with the libvirt being used in
Ubuntu 16.04.x.

The target device parsing logic which generates the device alias has
gone wrong as the XML used has the target dev names given in unusual
format as vd2, vd3 where usual nomenclature is to have
/^[fhv]d[a-z]+[0-9]*$/.

The following regex should be followed while assigning the disk name: (regex) 
/^[fhv]d[a-z]+[0-9]*$/
However, note that any trailing string of digits is simply ignored by libvirt.

A patch has been sent upstream.

The patch has been accepted upstream. commit 5729746.

** Affects: libvirt (Ubuntu)
     Importance: Undecided
     Assignee: Taco Screen team (taco-screen-team)
         Status: New


** Tags: architecture-ppc64le bugnameltc-150842 severity-high 
targetmilestone-inin16042

** Tags added: architecture-ppc64le bugnameltc-150842 severity-high
targetmilestone-inin16042

** Changed in: ubuntu
     Assignee: (unassigned) => Taco Screen team (taco-screen-team)

** Package changed: ubuntu => libvirt (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1665410

Title:
  Mapping multiple disks to guests errors on ubuntu KVM

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/libvirt/+bug/1665410/+subscriptions

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to