Chinaunix首页 | 论坛 | 博客
  • 博客访问: 146216
  • 博文数量: 38
  • 博客积分: 1718
  • 博客等级: 上尉
  • 技术积分: 350
  • 用 户 组: 普通用户
  • 注册时间: 2009-06-13 14:47
文章分类

全部博文(38)

文章存档

2012年(1)

2011年(11)

2010年(8)

2009年(18)

我的朋友

分类: LINUX

2011-04-15 21:16:44

在xen中,安装HVM的linux的DomU操作系统后,使用相同的镜像文件运行多个虚拟机实例时就会
出现本是eth0的网卡变成了eth1或者其他。解决方法如下:

Solution:

  1. Edit /etc/udev/rules.d/70-persistent-net.rules in the domU.
  2. Remove dynamically generated lines.
  3. Add: SUBSYSTEM=="net", DRIVERS=="vif", ATTRS{nodename}=="device/vif/0", NAME="eth0"
  4. Shut down the domU and restart it.
阅读(1129) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~