1

xen 4.1.2 is running with ubuntu 12.04 as dom0.

I need to enable networking between vm only(which means not creating a bridge between Ethernet card and sharing among vm).

when i installed virt-manager i am able to see a bridge virbr, with network 192.168.122.0 but i dont want to use virt-manager for creating virtualbridge.

Is there a way to create virtual bridge and tell vm to use this virtual bridge rather than creating a bridge with ethernet interface and sharing among vm.

Installed bridge utilities but virbr is not showing up.

can any one know how to create virbr without installing virt-managetr

2 Answers 2

2

install bridge-utils and then specify this in /etc/network/interfaces (in ubuntu)

auto virbr0
iface virbr0 inet static
bridge_ports none
address 192.168.122.1
netmask 255.255.255.0

and then restart network. Specify this (virbr0) bridge in vm configuration file.Start VM.

1
ip tuntap add mode tap user your_username dev tap0
ip tuntap add mode tap user your_username dev tap1
ip link set dev tap0 up
ip link set dev tap1 up
brctl addbr br0
brctl addif tap0
brctl addif tap1
ip link set dev br0 up
ip addr add 192.168.1.1/24 broadcast 192.168.1.255 dev br0

Where tap0 connects to one virtual host and tap1 connects to the other virtual host. Both virtual host would be able to talk to one another via the bridging of tap0 and tap1 and they could talk to dom0 via br0.

Not sure if that is exactly what your going for but I use a similar configuration for GNS3 and QEMU... even if it doesn't apply here, knowing what TUN/TAP interfaces are and how to set them up is good to know when setting up virtual hosts. BTW never used xen, only qemu, so I am not 100% this would be all you need to do to get it up and working.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.