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

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



发 件 人: "吕孟轩" <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

 


Rackspace

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