[libvirt] macvtap nt working on kvm

Amit Tewari Amit.Tewari at nechclst.in
Wed Dec 14 12:40:44 UTC 2011

Hi all,


My test environment

Host os=rhel6.1

Guest os = rhel6.1


Kvm hypervisor


I have made this entry in guest xml file


<interface type='direct'>

      <source dev='eth0' mode='bridge'/>

      <model type='virtio'/>

      <address type='pci' domain='0x0000' bus='0x00' slot='0x03'



Now when I start the guest 

#virsh start guest


Following macvtap0 is created on host and is shown below

#ip link show macvtap0

51: macvtap0 at eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq
state UNKNOWN qlen 500

    link/ether 52:54:00:55:AE:B5brd ff:ff:ff:ff:ff:ff


but when the guest is up and I try to perform


# ifup eth0


eth0 has same mac address as that of macvatap0 that is


due to this guest is not able to get dhcp address nor static ip address
is working. 


Please let me know how macvtap work on kvm.


The contents of this e-mail and any attachment(s) are confidential and
for the named recipient(s) only.  
It shall not attach any liability on the originator or NECHCL or its 
affiliates. Any views or opinions presented in  
this email are solely those of the author and may not necessarily reflect the 
opinions of NECHCL or its affiliates.  
Any form of reproduction, dissemination, copying, disclosure, modification, 
distribution and / or publication of  
this message without the prior written consent of the author of this e-mail is 
strictly prohibited. If you have  
received this email in error please delete it and notify the sender 
immediately. . 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111214/639c745f/attachment-0001.htm>

More information about the libvir-list mailing list