[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-users] how to enable dom0 and domu share same physical network...


  • To: Lukas Laukamp <lukas@xxxxxxxxxx>
  • From: "Tapdiya, Ashish" <ashish.tapdiya@xxxxxxxxxxxxxx>
  • Date: Wed, 28 Nov 2012 20:24:09 +0000
  • Accept-language: en-US
  • Cc: "xen-users@xxxxxxxxxxxxx" <xen-users@xxxxxxxxxxxxx>
  • Delivery-date: Wed, 28 Nov 2012 20:26:44 +0000
  • List-id: Xen user discussion <xen-users.lists.xen.org>
  • Thread-index: Ac3NlXRbhqSytWdoSN6SF9V6+38xxQAOMJyA//+v/14=
  • Thread-topic: [Xen-users] how to enable dom0 and domu share same physical network...



From: Lukas Laukamp [lukas@xxxxxxxxxx]
Sent: Wednesday, November 28, 2012 1:09 PM
To: Tapdiya, Ashish
Cc: xen-users@xxxxxxxxxxxxx
Subject: Re: [Xen-users] how to enable dom0 and domu share same physical network...

Am 28.11.2012 19:39, schrieb Tapdiya, Ashish:
Hi,

I have two physical machines connected through a switch in a 192.168.1.* subnet. Dom0's are assigned static ip addresses 192.168.1.100, 192.168.1.101 respectively. Dom0's can ping each other. Each physical machine has a domu guest and static address assigned to domu's are 192.168.1.200, 192.168.1.201 respectively.

However domu's can neither ping each other nor dom0's. Similarly dom0's cannot ping domu's. Following are my configuration specifics:

In /etc/xen/xend-config.sxp following entries are enabled
network-script network-bridge
vif-script vif-bridge

Domu's /etc/network/interfaces static ip is assigned like this
auto eth0
iface eth0 inet static
address 192.168.1.200
netmask 255.255.255.0
gateway 192.168.1.2

if dom-u creation config file vif entry is as follows,
vif = ['ip=192.168.1.200']

How to enable domu's to share same physical network and become part of 192.168.1.* subnet.

Any help or pointer will be highly appreciated.

Thanks.
 
 


_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users
Hello,

so the right scripts are set in xend-config.sxp. Does the system create a correct bridge and connects the DomU devices to the bridge when the DomU starts?

>> Here is the output from brctl show
>>bridge name    bridge id        STP enabled    interfaces
    tmpbridge        8000.feffffffffff    no        vif2.0

So in the case of a Debian/Ubuntu system you can do this very easy manually on this way:

Open /etc/network/interfaces with an editor and put in something like this:

auto lo
iface lo inet loopback

auto eth0
iface eth0 inet manual

auto xenbr0
iface xenbr0 inet static
    address IP
    netmask NETMASK
    gateway GATEWAY
    bridge_ports eth0
    bridge_stp off
    bridge_fd 0

>>I want the bridge to act as a virtual hub and domu's to have an ip from same subnet as dom0's (physical hosts). In the above mentioned bridge creation domu's will be on a different subnets and then one domu on a physical host cannot communicate with another domu on a different physical host

Then restart the network:

/etc/init.d/networking restart

Before you do this comment out the network-script network-bridge line in xend-config.sxp.

The vif line would look like this:

vif = ['ip=IP,bridge=xenbr0']

Then should the DomU be able to communicate with the physical network.

The bridge-utils must be installed for this. For Red Hat based distributions you have to create a network script for eth0 and for the bridge. For any other distribution you can look in the documentation how to create bridges.

>> xen is 4.1.2
>> os is ubuntu oneiric
>> kernel is 3.0.51

Best Regards

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.