[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-discuss] Bridging not working across qemu guests.
From: |
dE |
Subject: |
[Qemu-discuss] Bridging not working across qemu guests. |
Date: |
Fri, 08 May 2015 14:16:03 +0530 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 |
Hi!
I'm trying to get 2 qemu guest to connect via bridging. This is what I'm
doing --
modprobe tun;ip tuntap add mode tap veth;ip a add fc00::1001/124 dev
veth;ip link set dev veth up
qemu-system-x86_64 -machine accel=kvm,kernel_irqchip=on,mem-merge=on
-drive
file=centos7.qcow,id=centos,if=ide,media=disk,cache=unsafe,aio=native,index=0
-vnc :2 -no-acpi -device e1000,id=ethnet,vlan=0 -net
tap,ifname=veth,script=no,downscript=no,vlan=0 -m 512
modprobe tun;ip tuntap add mode tap veth0;ip a add fc00::1003/124 dev
veth0;ip link set dev veth0 up
qemu-system-x86_64 -machine accel=kvm,kernel_irqchip=on,mem-merge=on
-drive
file=centos7_2.qcow,id=centos,if=ide,media=disk,cache=unsafe,aio=native,index=0
-vnc :2 -no-acpi -device e1000,id=ethnet,vlan=0 -net
tap,ifname=veth0,script=no,downscript=no,vlan=0 -m 512
ensure to change default IP in VM2.
ip a del fc00::1003/124 dev veth0
ip a del fc00::1001/124 dev veth
ip link set dev veth down
ip link set dev veth0 down
brctl addbr br
brctl stp br off
brctl addif br veth veth0
ip link set dev veth up
ip link set dev veth0 up
ip link set promisc on dev veth0
ip link set promisc on dev veth
ip link set dev br up
ip a add fc00::1001/124 dev br
The host can connect to both the VMs, and the VMs can ping it back, BUT
the VMs cannot connect to each other. They claim "destination
unreachable"; that means routes are present.
I've tried with both CentOS and system rescue CD.
Thanks or any help.
- [Qemu-discuss] Bridging not working across qemu guests.,
dE <=