Bug 643310 - Guest failed to get ip after hot add NIC card
Summary: Guest failed to get ip after hot add NIC card
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: kvm
Version: 5.6
Hardware: All
OS: Linux
low
medium
Target Milestone: rc
: ---
Assignee: Michael S. Tsirkin
QA Contact: Virtualization Bugs
URL:
Whiteboard:
Depends On:
Blocks: Rhel5KvmTier3
TreeView+ depends on / blocked
 
Reported: 2010-10-15 09:05 UTC by juzhang
Modified: 2011-07-04 04:09 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-03-16 18:10:01 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

Description juzhang 2010-10-15 09:05:08 UTC
Description of problem:
Boot guest,then hot added nic using the following command:
(qemu)pci_add pci_addr=auto nic vlan=2,macaddr=00:1a:4e:9f:0b:60,model=virtio
(qemu)host_net_add tap script=/etc/qemu-ifup,vlan=2
however,guests can't get ip.


Version-Release number of selected component (if applicable):
#rpm -qa | grep kvm
kvm-qemu-img-83-204.el5
kvm-debuginfo-83-204.el5
etherboot-roms-kvm-5.4.4-13.el5
kvm-tools-83-204.el5
kmod-kvm-83-204.el5
etherboot-zroms-kvm-5.4.4-13.el5
kvm-83-204.el5


How reproducible:
100%

Steps to Reproduce:
1.boot guest
#/usr/libexec/qemu-kvm -rtc-td-hack -no-hpet -usbdevice tablet -drive file=/var/lib/libvirt/images/demo.raw,if=virtio,format=raw,werror=stop,boot=on -net nic,macaddr=10:10:20:34:23:12,model=virtio,vlan=0 -net tap,script=/etc/qemu-ifup,vlan=0 -uuid `uuidgen` -vnc :20 -cpu qemu64,+sse2 -smp 2 -m 2G -monitor stdio -drive file=/dev/cdrom,if=ide,media=cdrom -balloon virtio
2.hot add nic
2.1 (qemu) pci_add pci_addr=auto nic vlan=2,macaddr=00:1a:4e:9f:0b:60,model=virtio
OK domain 0, bus 0, slot 7, function 0
2.2 (qemu) host_net_add tap script=/etc/qemu-ifup,vlan=2
3.check network
(qemu)info network 
VLAN 0 devices:
  tap.0: ifname=tap1,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown
  virtio.0: model=virtio,macaddr=10:10:20:34:23:12
VLAN 2 devices:
  virtio.2: model=virtio,macaddr=00:1a:4e:9f:0b:60
  tap.2: ifname=tap4,script=/etc/qemu-ifup,downscript=/etc/qemu-ifdown

Actual results:
Guest find new nic,however,failed to get ip

Expected results:
Guest can get ip.

Additional info:
1. Using the same steps,when hot added nic,if  first issue command (qemu)host_net_add tap script=/etc/qemu-ifup,vlan=2,then issue command (qemu)pci_add pci_addr=auto nic vlan=2,macaddr=00:1a:4e:9f:0b:60,model=virtio.
Guest can get ip.

 (qemu) host_net_add tap script=/etc/qemu-ifup,vlan=2
 (qemu) pci_add pci_addr=auto nic vlan=2,macaddr=00:1a:4e:9f:0b:60,model=virtio
OK domain 0, bus 0, slot 7, function 0

2. I  tested rhel6 and windows2008 r2,both hit this problem.

Comment 4 RHEL Program Management 2011-01-11 20:16:48 UTC
This request was evaluated by Red Hat Product Management for
inclusion in the current release of Red Hat Enterprise Linux.
Because the affected component is not scheduled to be updated in the
current release, Red Hat is unfortunately unable to address this
request at this time. Red Hat invites you to ask your support
representative to propose this request, if appropriate and relevant,
in the next release of Red Hat Enterprise Linux.

Comment 5 RHEL Program Management 2011-01-11 22:53:42 UTC
This request was erroneously denied for the current release of
Red Hat Enterprise Linux.  The error has been fixed and this
request has been re-proposed for the current release.


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