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] Can't get guest domain network working!

To: "'Donglai Zhang'" <dlzhangster@xxxxxxxxx>, <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: RE: [Xen-users] Can't get guest domain network working!
From: "Pallab Chakrabarty" <pchakrabarty@xxxxxxxxxxxxxxx>
Date: Wed, 17 Jun 2009 01:02:14 -0500 (CDT)
Cc:
Delivery-date: Tue, 16 Jun 2009 23:03:51 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <c0f408a30906162259k472c6aacn3a0214ee9f6f03d3@xxxxxxxxxxxxxx>
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: <c0f408a30906162246m3b6d761dsf5413d48196cec67@xxxxxxxxxxxxxx> <EMEWEMEW2_DELIMl5G0um14c5254f1067c5de2b8aa8, pchakrabarty@xxxxxxxxxxxxxxx, 314F2F9B5FEF4E59A9> <c0f408a30906162259k472c6aacn3a0214ee9f6f03d3@xxxxxxxxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcnvENzRQqkvLfdLSz2YluHNfWdFzQAADGOw

This is kernel no, I need xen ver , os make & h/w details..

- regards
   Pallab




-----Original Message-----
From: Donglai Zhang [mailto:dlzhangster@xxxxxxxxx]
Sent: Wednesday, June 17, 2009 11:30 AM
To: Pallab Chakrabarty; xen-users@xxxxxxxxxxxxxxxxxxx
Subject: Re: [Xen-users] Can't get guest domain network working!

Xen version is 2.6.18.8-xen.

regards,

Donglai





On Wed, Jun 17, 2009 at 3:26 PM, Pallab Chakrabarty
<pchakrabarty@xxxxxxxxxxxxxxx> wrote:



What's of your Xen and OS make/ver?

- regards
   Pallab




-----Original Message-----
From: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
[mailto:xen-users-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Donglai Zhang
Sent: Wednesday, June 17, 2009 11:16 AM
To: xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Can't get guest domain network working!

Hi, there:

I have installed xen(2.6.18.8-xen) and had
successfully started domU guests (one or two) from dom0. However, I am
not able to start the network for domU machines.

Following is the information from my linux box.
After the it is started:
$ ifconfig
eth1      Link encap:Ethernet  HWaddr 00:A0:C9:D6:65:DB
         inet addr:XXX.XXX.10.133  Bcast:XXX.XXX.10.255
Mask:255.255.255.0
         inet6 addr: fe80::2a0:c9ff:fed6:65db/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:196716 errors:0 dropped:0 overruns:0
frame:1
         TX packets:82301 errors:0 dropped:0 overruns:0
carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:91072761 (86.8 MiB)  TX bytes:15558692
(14.8 MiB)
         Interrupt:18

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:6440 errors:0 dropped:0 overruns:0
frame:0
         TX packets:6440 errors:0 dropped:0 overruns:0
carrier:0
         collisions:0 txqueuelen:0
         RX bytes:55534272 (52.9 MiB)  TX bytes:55534272
(52.9 MiB)

////////////Start xend
#xend start
Nothing to flush.
Waiting for peth1 to negotiate link.
# ifconfig
eth1      Link encap:Ethernet  HWaddr 00:A0:C9:D6:65:DB
         inet addr:XXX.XXX.10.133  Bcast:XXX.XXX.10.255
Mask:255.255.255.0
         inet6 addr: fe80::2a0:c9ff:fed6:65db/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:25 errors:0 dropped:0 overruns:0
frame:0
         TX packets:40 errors:0 dropped:0 overruns:0
carrier:0
         collisions:0 txqueuelen:0
         RX bytes:3277 (3.2 KiB)  TX bytes:10992 (10.7 KiB)

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         inet6 addr: ::1/128 Scope:Host
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:6440 errors:0 dropped:0 overruns:0
frame:0
         TX packets:6440 errors:0 dropped:0 overruns:0
carrier:0
         collisions:0 txqueuelen:0
         RX bytes:55534272 (52.9 MiB)  TX bytes:55534272
(52.9 MiB)

peth1     Link encap:Ethernet  HWaddr 00:A0:C9:D6:65:DB
         inet6 addr: fe80::2a0:c9ff:fed6:65db/64 Scope:Link
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:196767 errors:0 dropped:0 overruns:0
frame:1
         TX packets:82358 errors:0 dropped:0 overruns:0
carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:91080163 (86.8 MiB)  TX bytes:15574125
(14.8 MiB)
         Interrupt:18

/////////////The peth1 and eth1 are all available and check the bridge...
# brctl show
bridge name     bridge id               STP enabled     interfaces
eth1            8000.00a0c9d665db       no              peth1

///////////The name of the bridge is "eth1" and interface "peth1" has been
added to the bridge.

///////////Configure the configuration file for the guest domain

************The content of XmGuest.conf*********
kernel = "/boot/vmlinuz-2.6.18.8-xen-U"
memory = 256
name = "ExampleDomain03"
vif = [ 'mac=00:16:3e:31:48:5f', 'bridge=eth1' ]  ###The bridge is given
name eth1
disk = [ 'phy:sda7,sda7,w' ]
dhcp="off"
ip='XXX.XXX.10.134'
netmask="255.255.255.0"
gateway="XXX.XXX.10.99" #The gateway is the same as the one used by dom0
network.
hostname="helloworld"

root = "/dev/sda7 ro"
extra = "4"
extra = "xencons=tty"
***************XmGuest.conf finish here**********************

//////Copy /lib/modules/2.6.18.8-xen/ directory to the guest domain disk.
There are some exceptions
//////from guest domain if I don't do this.

cp -r /lib/modules/2.6.18.8-xen/ /mnt/ubuntu_sda7/lib/modues/

//////Now start the guest domain

# xm create XmGuest.conf
Using config file "./XmGuest.conf".
Started domain ExampleDomain03 (id=11)

///////show xm domains
# xm list
Name                                        ID   Mem VCPUs      State
Time(s)
Domain-0                                     0   510     2     r-----
4443.7
ExampleDomain03                             11   256     1     -b----
9.3

/////////check bridge from dom0
# brctl show
bridge name     bridge id               STP enabled     interfaces
eth1            8000.00a0c9d665db       no              vif11.1

vif11.0

peth1
///////////The bridge has bounded the guest interface.

////////////On domU guest

dlzhang@dlzhang-desktop:~$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:31:48:5f
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:365 errors:0 dropped:0 overruns:0 frame:0
         TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:28617 (28.6 KB)  TX bytes:1368 (1.3 KB)

eth1      Link encap:Ethernet  HWaddr 00:16:3e:08:da:f6
         UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
         RX packets:363 errors:0 dropped:0 overruns:0 frame:0
         TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:1000
         RX bytes:28085 (28.0 KB)  TX bytes:1368 (1.3 KB)

lo        Link encap:Local Loopback
         inet addr:127.0.0.1  Mask:255.0.0.0
         UP LOOPBACK RUNNING  MTU:16436  Metric:1
         RX packets:0 errors:0 dropped:0 overruns:0 frame:0
         TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
         collisions:0 txqueuelen:0
         RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

///////////The network has not been configured successfully.
///////////The eth0 Hardware address is set, but not the ip address

dlzhang@dlzhang-desktop:/etc$ ping XXX.XXX.10.133
connect: Network is unreachable


I have tried with different linux box and different domU, all got the
similar problem.


Would you please give some hints about what might go wrong?


Thanks a lot !

Donglai Zhang




No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.75/2182 - Release Date: 06/16/09
21:23:00





--
Donglai Zhang

Ph.D Candidate
School of Computer Science
University of Adelaide,
SA, Australia  5083

Tel: 0061 8 83036166





No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.339 / Virus Database: 270.12.75/2182 - Release Date: 06/16/09
21:23:00

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users