Attempting to use the Arbitary NIC naming feature to rename interfaces durign a koan install as outlined at https://fedorahosted.org/cobbler/wiki/AdvancedNetworking and noticed that it does not work.

Looks like the snippet is relying on the interface to be in /etc/modprobe.conf

# Start configuration for vnet2
IFNAME=$(ifconfig -a | grep -i '00:16:3E:04:14:96' | cut -d ' ' -f 1)
if [ -f "/etc/modprobe.conf" ]; then
   grep $IFNAME /etc/modprobe.conf | sed "s/$IFNAME/vnet2/" >> 
/etc/modprobe.conf.cobbler
   grep -v $IFNAME /etc/modprobe.conf >> /etc/modprobe.conf.new
   rm -f /etc/modprobe.conf
   mv /etc/modprobe.conf.new /etc/modprobe.conf
fi

The koan'ed vm system does not have any entries for interfaces in the 
/etc/mobprobe.conf file:

more /etc/modprobe.conf alias net-pf-10 off
alias ipv6 off


Not sure this is a valid way of renaming the device in a udev environment. To rename the device I had to modify /etc/udev/rules.d/70-persistent-net.rules and change the NAME= variable corresponding to the MAC and reboot.

-Ron


_______________________________________________
cobbler mailing list
cobbler@lists.fedorahosted.org
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to