Hi Guys
I am running KVM on FC12 with tap networking in routed mode. All is working now i am facing problem to setup two NIC's on kvm guest. Here below little detail
I run kvm guest by qemu-kvm command line for two nics like below
/usr/bin/qemu-kvm -M pc -m 256 -smp 1 -name myguest1 -uuid 5dcb91e1-0a1e-8846-3859-ee03cb362427 -nographic -monitor unix:/var/lib/libvirt/qemu/myguest1.monitor,server,nowait -boot c -drive file=/dev/vmdata/vm.root,if=ide,index=0,boot=on -drive file=/dev/vmdata/vm.var,if=ide,index=1 -drive file=/dev/vmdata/vm.swap,if=ide,index=3 -net nic,macaddr=52:54:00:ea:aa:fe,vlan=0,name=nic0 -net tap,ifname=tap3,script=/etc/KVM/vm-tap3.sh,vlan=0,name=tap3 -net nic,macaddr=52:54:00:a7:9b:c1,vlan=1,name=nic1 -net tap,ifname=tap30,script=/etc/KVM/vm-tap30.sh,vlan=1,name=tap30 -serial pty -parallel none -usb &
Now tap3 is for eth0 and tap30 for eth1 for vm child, and desire scripts use to create tap and put routes automatically, as all is working f9. Now when guest boot two interfaces eth0 and eth1, now eth0 is working f9 , but when i assign ip on eth1 and up interface its not pinging/working inside mother/outerworld , after some troubleshoot i come to know that eth1 is work like an alias of eth0 like if i just change desire ip route from tap30 to tap3 then its pining , even ip is on eth0 and eth1 but when i set route back again to tap30 its not working.
Can you guys suggest what is the problem, as same above is working f9 for standalone eth0 for vm but when i extened above to add portion of -net for tap30 then its not working. Kindly give suggestions please.
Thanks
Muzi
Hi
After some more diagnose via tcpdump and arp info, i come to know that on KVM host, tap30 which is used for eth1 on guest vm, qemu-kvm unable to define its arp entry
[root@host ~]# arp -e
Address HWtype HWaddress Flags Mask Iface
x.x.x.x ether 52:54:00:56:40:56 C tap1
x.x.x.x (incomplete) tap30
x.x.x.x ether 00:d0:d3:80:64:0a C eth0
and on KVM guest on eth1, tcpdump shows arp who has replies, as i don't now why its fails or treat like eth0 , as beofre when i run guests using virsh start guest-vm then all is working f9 , but when i start vm through above script qemu-kvm, its unable to set properly eth1 for guest vm, any ideas or suggestions please ????????
Muzi
Hi
After some more diagnose via tcpdump and arp info, i come to know that on KVM host, tap30 which is used for eth1 on guest vm, qemu-kvm unable to define its arp entry
[root@host ~]# arp -e
Address HWtype HWaddress Flags Mask Iface
x.x.x.x ether 52:54:00:56:40:56 C tap1
x.x.x.x (incomplete) tap30
x.x.x.x ether 00:d0:d3:80:64:0a C eth0
and on KVM guest on eth1, tcpdump shows arp who has replies, as i don't now why its fails or treat like eth0 , as beofre when i run guests using virsh start guest-vm then all is working f9 , but when i start vm through above script qemu-kvm, its unable to set properly eth1 for guest vm, any ideas or suggestions please ????????
Muzi
Post new comment