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

[Xen-users] Guest domain cannot connect to outside network



Hi,

I'm trying to run a guest domain in Xen 4.3.0. However, after I use xl create to create the guest domain dom1, it cannot connect to the network. 
Inside dom1, when I ping www.google.com, it only shows: "PING www.google.com (74.125.228.19) 56(84) bytes of data.". 
Inside dom0, I can use network. But I also saw in dom0 that the network manager *keeps trying to connect.*

I did read the Network Configuration on Xen wiki and tried to use the bridge way and nat way, but either of them works. I think I must miss something and hope someone could help point out my error. I really want to get my domU's network work.

Here is my configuration files:
[In Dom0]
$cat /etc/network/interfaces 
auto lo
iface lo inet loopback

iface eth0 inet manual

iface eth1 inet manual

auto xenbr0 
iface xenbr0 inet dhcp
    bridge_ports eth0 eth1

$sudo brctl show
bridge name bridge id STP enabled interfaces
xenbr0 8000.000af72bc8ce no eth0
eth1
vif2.0
$ifconfig
eth0      Link encap:Ethernet  HWaddr 00:0a:f7:2b:c8:ce  
          UP BROADCAST MULTICAST  MTU:1500  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:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
          Interrupt:17 

eth1      Link encap:Ethernet  HWaddr f8:b1:56:a7:e9:dc  
          inet6 addr: fe80::fab1:56ff:fea7:e9dc/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:21169 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8520 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:5538393 (5.5 MB)  TX bytes:1980210 (1.9 MB)
          Interrupt:20 Memory:fb300000-fb320000 

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:65536  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:240 (240.0 B)  TX bytes:240 (240.0 B)

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 MULTICAST  MTU:1500  Metric:1
          RX packets:440 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3478 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32 
          RX bytes:36907 (36.9 KB)  TX bytes:439884 (439.8 KB)

xenbr0    Link encap:Ethernet  HWaddr 00:0a:f7:2b:c8:ce  
          inet addr:158.133.50.5  Bcast:158.133.51.255  Mask:255.255.254.0
          inet6 addr: fe80::20a:f7ff:fe2b:c8ce/64 Scope:Link
          inet6 addr: 2607:f470:8:1050:20a:f7ff:fe2b:c8ce/64 Scope:Global
          inet6 addr: 2607:f470:8:1050:dd2f:a5d4:3877:2b4a/64 Scope:Global
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:20258 errors:0 dropped:0 overruns:0 frame:0
          TX packets:7868 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:5041868 (5.0 MB)  TX bytes:1876606 (1.8 MB)

[Dom1's config. file]

$ cat litmus1-1.xl.pvlinux 
# =====================================================================
# Example PV Linux guest configuration
# =====================================================================
#
# This is a fairly minimal example of what is required for a
# Paravirtualised Linux guest. For a more complete guide see xl.cfg(5)

#This is a workable version for Meng's machine
#
#

# Guest name
name = "vm1"

# 128-bit UUID for the domain as a hexadecimal number.
# Use "uuidgen" to generate one if required.
# The default behavior is to generate a new UUID each time the guest is started.
#uuid = "XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXX"

# Kernel image to boot
#kernel = "/boot/vmlinuz"
kernel = "/vmlinuz"
#kernel = "/boot/vmlinuz-3.0.0-litmus"

# Ramdisk (optional)
#ramdisk = "/boot/initrd.gz"

# Kernel command line options
extra = "root=/dev/xvda1"

# Initial memory allocation (MB)
memory = 256

# Maximum memory (MB)
# If this is greater than `memory' then the slack will start ballooned
# (this assumes guest kernel support for ballooning)
maxmem = 256

# Number of VCPUS
vcpus = 1

# Network devices
# A list of 'vifspec' entries as described in
# docs/misc/xl-network-configuration.markdown
#vif = [ 'bridge=xenbr0' ]
vif = [ '' ]

# Disk Devices
# A list of `diskspec' entries as described in
# docs/misc/xl-disk-configuration.txt
disk = [ '/home/panda/guestDomain/images/litmus1.img,raw,xvda,rw' ]
[Inside Dom1]
$cat /etc/network/interfaces 
# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).

# The loopback network interface
auto lo
iface lo inet loopback

# The primary network interface
auto eth0

iface eth0 inet dhcp

$ ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:66:24:ea  
          inet addr:10.0.50.249  Bcast:10.0.51.255  Mask:255.255.254.0
          inet6 addr: 2607:f470:8:1050:216:3eff:fe66:24ea/64 Scope:Global
          inet6 addr: 2607:f470:8:1050:8d3d:7c8:b284:2fab/64 Scope:Global
          inet6 addr: fe80::216:3eff:fe66:24ea/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:4690 errors:0 dropped:2 overruns:0 frame:0
          TX packets:440 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:548943 (548.9 KB)  TX bytes:43067 (43.0 KB)
          Interrupt:26 

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:65536  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0 
          RX bytes:512 (512.0 B)  TX bytes:512 (512.0 B)



Thank you very much for your time and help in this question!

Best,

Meng

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxx
http://lists.xen.org/xen-users

 


Rackspace

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