xend start failed,提示eth0 not found

系统环境:

Ubuntu 8.04

xen-3.3.1

 

错误提示:

$xend start

Device “eth0” does not exist

ifdown: interface eth0 not configured

 

具体场景:

使用xen桥接的模式下启动xend时候出现了错误,说eth0找不到。运行ifconfig查看网络的interface也没有eth0只有eth1(外网)和eth5(内网)。

在/etc/netwok/interface里面添加了auto eth0等命令但是再重启service networking restart是也会会报错提示Cannot found eth0。

 

问题解决:

经过仔细分析之后发现,执行xend start时相应的网络模式script一样也会被执行,script的位置在/etc/xen/scripts/目录下。

阅读script之后发现:

  netdev 变量的含义是 The interface to add to the bridge。

  而在下面的netdev赋值是 netdev=${netdev-=eth0}

问题找到了将netdev定义中的eth0换成电脑中实际存在的网卡eth5。之后再运行ifup eth5。此时采用bridg方式运行xend start时就不会再报错了。

 

参考:

[1]:http://blog.csdn.net/sdulibh/article/details/24844699

 

 

 

posted on 2014-11-04 10:57  杜悠  阅读(150)  评论(0编辑  收藏  举报

导航