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

Re: [Xen-users] Ubuntu 9.10: amd64: Xen-4.0: linux-2.6.32.16-xen: No Network connectivity in domU:


  • To: sriram <msriram@xxxxxxxxxx>
  • From: Mark Pryor <tlviewer@xxxxxxxxx>
  • Date: Wed, 27 Oct 2010 21:03:36 -0700 (PDT)
  • Cc: xen-users@xxxxxxxxxxxxxxxxxxx
  • Delivery-date: Wed, 27 Oct 2010 21:05:10 -0700
  • Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding; b=lbgWIh0aAMYs+kqP3Oifw824J3f9/TA2KDEl1qe4snPfj/gb8EHFZ6drR02uj69uSZQxaPzjfLajlq3pLpkNfr6rbq9ffYy0FDo2fBrOzMeIvIzCpVpzsGMiXqnIH2wsIvMy/+Y2exudb5ikTHFhYV48CyiZJ6ZFCVJ3vycPLXs=;
  • List-id: Xen user discussion <xen-users.lists.xensource.com>

--- On Wed, 10/27/10, sriram <msriram@xxxxxxxxxx> wrote:

From: sriram <msriram@xxxxxxxxxx>
Subject: [Xen-users] Ubuntu 9.10: amd64: Xen-4.0: linux-2.6.32.16-xen: No 
Network connectivity in domU:
To: xen-users@xxxxxxxxxxxxxxxxxxx
Date: Wednesday, October 27, 2010, 6:43 PM
  
  
Hi people, 

I installed Xen-4 on top of karmic-amd64 using this method, and created dom1 
using debootstrap, and its booting fine.

But, I cannot get networking work on domU



I have single system, eth0 connected to network

/etc/network/interfaces/ :
auto lo
iface lo inet loopback
iface eth0 inet dhcp



I have the following info in the dom1.cfg:
#
#  Networking
#
vif        = ['']
dhcp        = 'dhcp'
#vif         = [ 'mac=00:16:3E:05:7D:B5' ]
netmask     = "255.255.255.0"
gateway     = "137.82.252.254"
 #


>From dom0

When I type route I get
#route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
137.82.252.0    *               255.255.255.0   U     0      0        0 peth0
137.82.252.0    *               255.255.255.0   U     0      0        0 eth0
default         gw-vlan1394.ece 0.0.0.0         UG    0      0        0 eth0
default         gw-vlan1394.ece 0.0.0.0         UG    0      0        0 peth0



My interfaces are :
#ifconfig
eth0      Link encap:Ethernet  HWaddr 48:5b:39:43:25:b2  
          inet addr:137.82.252.5  Bcast:137.82.252.255  Mask:255.255.255.0
          inet6 addr: fe80::4a5b:39ff:fe43:25b2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:97536 errors:0 dropped:0 overruns:0 frame:0
          TX packets:298713 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:7860472 (7.8 MB)  TX bytes:417692072 (417.6 MB)

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:776 errors:0 dropped:0 overruns:0 frame:0
          TX packets:776 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:410163 (410.1 KB)  TX bytes:410163 (410.1 KB)

peth0     Link encap:Ethernet  HWaddr 48:5b:39:43:25:b2  
          inet addr:137.82.252.5  Bcast:137.82.252.255  Mask:255.255.255.0
          inet6 addr: fe80::4a5b:39ff:fe43:25b2/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:97787 errors:0 dropped:0 overruns:0 frame:0
          TX packets:299801 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:9645032 (9.6 MB)  TX bytes:417748230 (417.7 MB)
          Interrupt:226 Base address:0xc000 

vif2.0    Link encap:Ethernet  HWaddr fe:ff:ff:ff:ff:ff  
          inet6 addr: fe80::fcff:ffff:feff:ffff/64 Scope:Link
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:11 errors:0 dropped:0 overruns:0 frame:0
          TX packets:414 errors:0 dropped:1 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:2024 (2.0 KB)  TX bytes:50501 (50.5 KB)

------------------------------------------------------------------------

>From dom1


#ifconfig eth0 up
eth0: ERROR while getting interface flags: No such device

#modprobe xennet
#ifconfig eth0 up
#
#route
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:65:7a:7c  
          inet6 addr: fe80::216:3eff:fe65:7a7c/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:74 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:8025 (8.0 KB)  TX bytes:1152 (1.1 KB)
          Interrupt:244 

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: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)

# ping www.google.com
ping: unknown host www.google.com

Do you have any suggestions?

Thanks
--------------------------

You are trying to setup paravirtual domU, but the config has network values for 
HVM type. Remove or comment out the dhcp, gateway, and netmask values and use 
the vif = []

If you leave vif empty, it might still work (you only a single bridge - eth0), 
but for completeness add bridge=eth0.

Check 
brctl show
and verify that Xend has made eth0 the bridge.

-- 
Mark


 

_______________________________________________
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®.