sriram
2010-Oct-28 01:43 UTC
[Xen-users] Ubuntu 9.10: amd64: Xen-4.0: linux-2.6.32.16-xen: No Network connectivity in domU:
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 dom0When 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 _______________________________________________ Xen-users mailing list Xen-users@lists.xensource.com http://lists.xensource.com/xen-users
Mark Pryor
2010-Oct-28 04:03 UTC
Re: [Xen-users] Ubuntu 9.10: amd64: Xen-4.0: linux-2.6.32.16-xen: No Network connectivity in domU:
--- On Wed, 10/27/10, sriram <msriram@ece.ubc.ca> wrote: From: sriram <msriram@ece.ubc.ca> Subject: [Xen-users] Ubuntu 9.10: amd64: Xen-4.0: linux-2.6.32.16-xen: No Network connectivity in domU: To: xen-users@lists.xensource.com 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 dom0When 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@lists.xensource.com http://lists.xensource.com/xen-users