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:24:54 +0800
Delivery-date: Wed, 29 Oct 2008 07:25: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
发 件 人: "吕孟轩" <gyluwoo@xxxxxxxxxxxxxxx>   存入地址本 加入黑名单
收 件 人: xen-users@xxxxxxxxxxxxxxxxxxx
发送时间: 2008-10-29 19:37:59 +0800 (CST)
主    题: Xen3.3 DomU network problem (Failed to bring up eth0)


删除 回复 转发 以附件转发 新窗口看信 原信 下载 标记为新邮件 上一封 下一封 返回
请选择内码 自动GB2312BIG5UTF8UTF7UNI



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>