[libvirt] how to use macvtap in kvm guest

Amit Tewari Amit.Tewari at nechclst.in
Fri Dec 9 04:28:48 UTC 2011



I am creating macvtap0 interface on my eth1 interface.

ip link show macvtap0

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

    link/ether 3e:63:18:f3:49:63 brd ff:ff:ff:ff:ff:ff


guest interface file-


<interface type='direct'>

      <mac address='3e:63:18:f3:49:63'/>

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

      <model type='virtio'/>

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


Now when I do-

Virsh define guest works fine

But when I do virsh start guest


Dmesg shows error


macvtap0:no ipv6 routers present

libvirtd[24907]: segfault at 0 ip 0000003e22280062 sp 00007fd3057f8cb8
error 4 in libc-2.12.so[3e22200000+187000]

and even if guest starts its eth interface is not created

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/20111209/6c68b8c6/attachment-0001.htm>

More information about the libvir-list mailing list