i am having a problem connecting VMs to the bridge interface. My VMs cannot connect to the host and LAN outside the host, when i ping it just say destination host unreachable. it seems that my VM is not connected to the br0 interface. I use redhat 5.6 on the host and centos 6 as VMs
i modify ifcfg-br0 interface with this:
DEVICE=br0 BOOTPROTO=none ONBOOT=yes USERCTL=no TYPE=Bridge GATEWAY=10.1.2.1 NETMASK=255.255.255.0 IPADDR=10.1.2.2 my server connects to the outside network with bond0 interface, i modify ifcfg-bond0 like this:
DEVICE=bond0 BOOTPROTO=yes ONBOOT=yes USERCTL=no BONDING_OPTS="mode=4 miimon=50" BRIDGE=br0 NM_CONTROLLED=no i use bond0 as my KVM guest's network interface
here is ifcfg-eth0 configuration inside my CentOS KVM guest:
DEVICE=eth0 ONBOOT=yes GATEWAY=10.1.2.1 NETMASK=255.255.255.0 IPADDR=10.1.2.22 NAME=eth0 NM_CONTROLLED=no here is the output of brctl show:
bridge name bridge id STP enabled interfaces br0 8000.bc305be8c04f no bond0 i've disable netfilter for bridge interface, restarting network service but no luck if anyone know where the problem is, please your help :'(
qemu-ifupscript which creates the tap device and plugs it into the bridge. post the VM run command (ps -ef |grep qemu) and if you're using libvirt, the domxml contents (virsh dumpxml VMNAME)/usr/libexec/qemu-kvm -hda /usr/kvm_disk/Clinic.disk.xm -cdrom /opt/iso/CentOS-6.4-x86_64-LiveCD.iso -net nic,vlan=0,macaddr=,model=pcnet -net tap,vlan=0,script=/etc/kvm/qemu-ifup-br0 -usb -boot c -m 1024 -no-acpi -vnc :20 -name Clinic -usbdevice tablet -uuid ea852d3d-7adb-6db2-c652-a39672a23d60 -smp 2 -monitor unix:/var/run/kvm/monitors/Clinic,server,nowait -pidfile /var/run/kvm/pids/Clinic -daemonize. i actually use convirture to manage my KVM [link]convirture.com/products_opensource.php[/link] i have the qemu-ifup scriptbrctl showdoesn't show it attached, right? And what doesifconfig -ashow, with a running VM?