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

[Xen-users] Xen3.3 DomU network problem (Failed to bring up eth0)

To: <xen-users@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-users] Xen3.3 DomU network problem (Failed to bring up eth0)
From: 吕孟轩 <gyluwoo@xxxxxxxxxxxxxxx>
Date: Wed, 29 Oct 2008 22:28:00 +0800
Delivery-date: Wed, 29 Oct 2008 07:28:34 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
Hi,
I created a domU in Xen 3.3 ,both Domain0 and DomU are debian 4.0.

  Initially I can use apt-get commmand to update packages in domU, but after I did "apt-get install gnome" in domU and reboot,I found that my domU's network had a problem.

xm create -c pv-debian1.cfg
.......................................

Setting up networking....
Configuring network interfaces...SIOCSIFADDR: No such device
eth0: ERROR while getting interface flags: No such device
SIOCSIFNETMASK: No such device
eth0: ERROR while getting interface flags: No such device
Failed to bring up eth0.

.......................................


domU's  configuration file
.....
#
#  Networking
#
vif  = [ 'ip=192.168.0.101' ]

.......................................

/etc/xen/xend-config.sxp  in domain0

##
# Networking setup values.
##

#
# Uncomment and adjust these network settings if you wish to give your
# new instances static IP addresses.
#
 gateway   = 192.168.0.1
 netmask   = 255.255.255.0
#
# Uncomment this if you wish the images to use DHCP
#
# dhcp = 1

.......................................

use ifconfig in domU


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)

.......................................

use vi /etc/network/interfaces  in domU

# 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 static
 address 192.168.0.101
 gateway 192.168.0.1
 netmask 255.255.255.0

.......................................

Thanks a lot!

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>