RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 968899 - Error occurs when adding the second virtio disk during using network intall guest
Summary: Error occurs when adding the second virtio disk during using network intall g...
Keywords:
Status: CLOSED DUPLICATE of bug 1036715
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: libvirt
Version: 7.0
Hardware: Unspecified
OS: Unspecified
medium
medium
Target Milestone: rc
: ---
Assignee: Martin Kletzander
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-05-30 08:54 UTC by Martin Kletzander
Modified: 2016-04-26 14:07 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 968878
Environment:
Last Closed: 2015-07-09 08:47:45 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description Martin Kletzander 2013-05-30 08:54:33 UTC
Similarly to bug 950330, this needs to be dealt in both virt-manager and libvirt.

+++ This bug was initially created as a clone of Bug #968878 +++

Description
Error occurs when adding the second virtio disk during using network intall guest

Version:
virt-manager-0.10.0-0.4.gitb68faac8.el7.noarch
libvirt-1.0.5-2.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1.Launch virt-manager.
2.Create a new guest,choose network install(HTTP,FTP or NFS).
3.Input the URL,then forward the installation until step 5,click "Customize configuration before install",then click Finish.
4.Click "Add Hardware"->"Storage",choose the device type as virtio.
5.Click "Begin Installation",error occurs:
Unable to complete install: 'internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/libvirt/images/sdf-1.img,if=none,id=drive-virtio-disk0,format=raw,cache=none: Duplicate ID 'drive-virtio-disk0' for drive


Actual results:
As describes.

Expected results:
The installation can be successfully.

Additional info:
1.The error only occurs when choose network install(HTTP,FTP or NFS),as network install set the first disk as virtio by default while other install method set first disk as IDE type.
2.When choose network install(HTTP,FTP or NFS) with only 1 disk,the guest can be installed successfully,then add the second virtio disk,the guest can boot successfully.
3.Attached the debug log.
4.When using other method to install guest,add the second disk as IDE can also hit the issue.

Comment 1 Huang Wenlong 2013-06-26 06:03:47 UTC
I can reproduce this bug when add second IDE disk with 
libvirt-1.0.6-1.el7.x86_64
virt-manager-0.10.0-1.el7.noarch

steps:
1.Launch virt-manager.
2.Create a new guest,choose network install(HTTP,FTP or NFS).
3.Input the URL,then forward the installation until step 5,click "Customize configuration before install",then click Finish.
4.Click "Add Hardware"->"Storage",choose the device type as IDE.
5.Click "Begin Installation",error occurs:
Unable to complete install: 'internal error process exited while connecting to monitor: qemu-kvm: -drive file=/var/lib/libvirt/images/test-1.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: Duplicate ID 'drive-ide0-0-0' for drive
'

additional information:
The first image is IDE Default added by virt-manager,so if you add another IDE disk then try to start guest , qemu reports this error :
qemu-kvm: -drive file=/var/lib/libvirt/images/test-1.img,if=none,id=drive-ide0-0-0,format=raw,cache=none: Duplicate ID 'drive-ide0-0-0' for drive

Comment 2 Martin Kletzander 2013-06-26 08:32:17 UTC
Disks with same specified controllers must be rejected as the guest won't start.  This needs to be fixed with rejecting such configuration during parsing (same as controllers with same indexes etc.).

Comment 3 Martin Kletzander 2013-07-10 12:35:10 UTC
Patch proposed upstream:

http://www.redhat.com/archives/libvir-list/2013-July/msg00621.html


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