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

Re: [Xen-users] Newbie network configuration



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

 


Rackspace

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