Red Hat Bugzilla – Bug 372871
[EMC 5.2 bug] virt-manager adds duplicate entries while adding disk
Last modified: 2009-12-14 16:02:16 EST
Description of problem:
When adding a disk via Guest -> Right Click Details -> Hardware -> Add ->
Storage Device, virt-manager adds duplicate entries for the disk in
/etc/xen/guest which causes subsequent reboot of the guest to fail.
Eg, If I add /vm/sadique/rhel5-disk2 as the second disk, I should have the below
entries in /etc/xen/rhel5.
disk = [ "tap:aio:/vm/sadique/rhel5,xvda,w",
Version-Release number of selected component (if applicable):
Steps to Reproduce:
virt-manager adds multiple entries fro disk and subsequent reboot of the guest
fails with message
[root@dhcp6-7 xen]# xm create rhel5
Using config file "./rhel5".
Error: Device xvdb (51728, tap) is already connected.
Disk shouldn't be defined two times.
Searched the bugzilla, but didn't see it already reported.
We have seen this same behavior whereby subsequent guest domain reboots failed
with an error that the virtual block device is already connected. The
additional virtual block devices were added after the initial domU creation
using the virt manager.
I manually edited the config file fo rthe guest OS in /etc/xen and was able to
restart the domU.
Does this also occur if the CLI `xm block-attach` method is used? Or is it
strictly manifeted when using virt manager to add block devices?
Will this bug be fixed in a patch to RHEL 5.1?
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release. Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products. This request is not yet committed for inclusion in an Update
When I did a bit deeper investigation I found that this only happens if someone
adds the disk to the guest via virt-manager while the guest is in a running
state. If we add the disk while the guest is inactive, it adds the entries
If I add a file based storage while the guest is running,
old disk = section is,
disk = [ "tap:aio:/vm/sadique/rhel5,xvda,w"]
New disk section entry,
disk = [ "tap:aio:/vm/sadique/rhel5,xvda,w", "tap:aio:/vm/sadique/disk2,xvdb,w",
If I add a block device it would be as below.
disk = [ "phy:/dev/sda9,xvdb,w", "tap:aio:/vm/sadique/rhel5,xvda,w",
Note the order of duplication! If it's block device one entry is added in the
beginning and one entry in the last. If it's file backed, both entries are
adding in the last.
Setting Dev ACK for Dan.
*** This bug has been marked as a duplicate of 353901 ***