问题描述:
今天在一台双网卡的物理机上安装rhel5的时候一切顺利,但是在安装rhel6的时候不能自动选择网卡安装,会弹出一个窗口让选择使用em1还是em2。
问题原因:
原因是我在添加节点的时候使用的是类似下面的语句,此时在rhel6上安装脚本会选择是使用eth0来安装,但是因为我们的两块网卡此时被识别成了em1和em2,所以找不到eth0,导致无法执行安装,需要人为来选择使用那一块网卡。
nodeadd <node> mac.interface=eth0 mac.mac=... noderes.installnic=eth0 noderes.primarynic=eth0 ...
解决办法:
将noderes.installnic和noderes.primarynic改成使用mac,类似如下语句
nodeadd <node> mac.interface=eth0 mac.mac=... noderes.installnic=mac noderes.primarynic=mac ...
对应上面的语句,xCAT会在mac表和noderes中都各添加一条记录,此时noderes.installnic和noderes.primarynic被定义成mac意思是使用mac表中定义的网卡,此时就可以自动安装了。
这个修改对rhel5和rhel6都适应。
CentOS 6.X上xCAT在线安装:http://www.linuxdiyf.com/linux/9188.html
CentOS 6.X上xCAT离线安装:http://www.linuxdiyf.com/linux/9187.html
xCAT安装与更新软件:http://www.linuxdiyf.com/linux/9344.html