Bug 623066 - double interface element in guest xml when hotplug a network/disk interface with virt-manager
Summary: double interface element in guest xml when hotplug a network/disk interface w...
Status: CLOSED DUPLICATE of bug 596100
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: virt-manager
Version: 6.0
Hardware: All
OS: Linux
Target Milestone: rc
: ---
Assignee: Cole Robinson
QA Contact: Virtualization Bugs
Keywords: RHELNAK
: 631665 639707 683731 (view as bug list)
Depends On:
TreeView+ depends on / blocked
Reported: 2010-08-11 08:47 UTC by weizhang
Modified: 2011-03-10 15:10 UTC (History)
9 users (show)

Clone Of:
Last Closed: 2010-11-29 19:31:51 UTC

Attachments (Terms of Use)

Description weizhang 2010-08-11 08:47:59 UTC
Description of problem:
When add one network on guest hotplug with virt-manager, in the /etc/libvirt/qemu/guest.xml there will be two parts of network with same mac and source. But in the guest only one can be detected and used. If you hotunplug it and reboot the vm, the network device will appear again.

# cat /etc/libvirt/qemu/guest.xml
<domain type='kvm'>
  <vcpu cpuset='2'>1</vcpu>
    <type arch='x86_64' machine='rhel6.0.0'>hvm</type>
    <boot dev='hd'/>
  <clock offset='utc'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw' cache='none'/>
      <source file='/var/lib/libvirt/images/cd-inst.img'/>
      <target dev='hda' bus='ide'/>
      <address type='drive' controller='0' bus='0' unit='0'/>
    <disk type='block' device='cdrom'>
      <driver name='qemu' type='raw'/>
      <target dev='hdc' bus='ide'/>
      <address type='drive' controller='0' bus='1' unit='0'/>
    <disk type='file' device='disk'>
      <driver name='qemu' type='raw'/>
      <source file='/var/lib/libvirt/images/rhel-x86_64.img'/>
      <target dev='hdb' bus='ide'/>
      <address type='drive' controller='0' bus='0' unit='1'/>
    <controller type='ide' index='0'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x01' function='0x1'/>

    <interface type='network'>
      <mac address='52:54:00:53:34:d8'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x03' function='0x0'/>
    <interface type='network'>
      <mac address='52:54:00:53:34:d8'/>
      <source network='default'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x07' function='0x0'/>

    <serial type='pty'>
      <target port='0'/>
    <console type='pty'>
      <target port='0'/>
    <input type='mouse' bus='ps2'/>
    <graphics type='vnc' port='-1' autoport='yes' keymap='en-us'/>
    <sound model='es1370'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x04' function='0x0'/>
      <model type='cirrus' vram='9216' heads='1'/>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x02' function='0x0'/>
    <memballoon model='virtio'>
      <address type='pci' domain='0x0000' bus='0x00' slot='0x05' function='0x0'/>

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


How reproducible:

Steps to Reproduce:
1.Launch virt-manager: #virt-manager
2.Double-click a vm and click the Run button in the Virtual Machine Details window.
3.Click the Hardware tab.
4.Click Add Hardware button
5.Select Network in Hardware type droplist and click Forward.
6.Select Vitual network, set fixed MAC,and select default in Device Model droplist, then click Forward button.
7.Click Finish button.
8.Select the NIC you just added then click Remove button.
9.Reboot the vm and check Hardware tab.
Actual results:
There is still one network device which is you just delete

Expected results:
There is no network device

Additional info:

Comment 2 RHEL Product and Program Management 2010-08-11 09:18:37 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 3 zhanghaiyan 2010-09-10 08:59:17 UTC
*** Bug 631665 has been marked as a duplicate of this bug. ***

Comment 5 Sadique Puthen 2010-10-03 15:11:54 UTC
*** Bug 639707 has been marked as a duplicate of this bug. ***

Comment 7 Cole Robinson 2010-11-29 19:31:51 UTC
This is really a side effect of libvirt's confusing hotplug semantics with state drivers like QEMU. There is already a libvirt bug tracking this issue, so duping to that.

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

Comment 8 Cole Robinson 2011-03-10 15:10:10 UTC
*** Bug 683731 has been marked as a duplicate of this bug. ***

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