WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

Re: [Xen-users] Newbie network configuration

To: jonas kellens <jonas.kellens@xxxxxxxxxx>
Subject: Re: [Xen-users] Newbie network configuration
From: Mike Lovell <mike@xxxxxxxxxxxx>
Date: Thu, 10 Dec 2009 22:06:20 -0700
Cc: xen-users <xen-users@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 10 Dec 2009 21:06:47 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <1260463152.13223.10.camel@xxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <1260454999.10136.4.camel@xxxxxxxxxxxxxxxxx> <4B21149D.2020905@xxxxxxxxxxxx> <1260463152.13223.10.camel@xxxxxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.5) Gecko/20091130 Thunderbird/3.0
On 12/10/2009 9:39 AM, jonas kellens wrote:

Question : does my physical eth0 need an IP-address ??
that would depend on how you want to use the host and whether or not your ISP will allow you two IP addresses. if you don't want the host to be accessible from that network then you don't want an IP address on it.
Initially my physical eth0 has an IP-address, but the bridge xenbr0 does not !

this due to how older version of xen did their default networking. (i am making the assumption it is an older version or a distro modified one that maintains older behaviour). see http://wiki.xensource.com/xenwiki/XenNetworking . the default is that the physical device is renamed to peth0 and attached to a bridge, xenbr0. that bridge is just a layer 2 switch. on the other end of the switch, vif0.0 gets attached which is just the other end of a virtual wire for veth0. veth0 is then renamed to eth0.
I always do :

[root@xen ~]# ifconfig eth0 0.0.0.0

so that the endian-vm can achieve an IP address from the ISP in stead of the physical interface eth0 (and so dom0).

this might not be needed but again depends on how you want to use the host and whether you can use multiple IP addresses from your ISP. the networking is getting set up so that there is a switch attached to eth0 and so multiple things can have IP addresses on it just like on any other layer 2 switch.
I have changed the configuration :

vif = [ 'type=ioemu, bridge=xenbr0' ]

This is the result :

[root@xen ~]# xm create endian.cfg
Using config file "/etc/xen/endian.cfg".
Started domain endian

This is good !

nice
However :

[root@xen ~]# xm list
Name                                      ID Mem(MiB) VCPUs State   Time(s)
Domain-0                                   0     3465     2 r-----    432.5

Endian is not listed here ?!

anything in `xm dmesg` or have you tried doing `xm create -c /etc/xen/endian.cfg`. the second command will immediately connect to the console of the vm after it is started. hopefully you will find some clues there. this part is probably unrelated to the networking issues.

mike

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>