To get multicast working on CentOS7 you’ll need to modify the following line in function getIPAddress in /var/www/html/fog/lib/fog/FOGCore.class.php
from:
[CODE]exec(“/sbin/ifconfig | grep ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}’| cut -d’:’ -f 2 | cut -d’ ’ -f1”, $arR, $retVal);[/CODE]
to:
[CODE]exec(“/sbin/ip addr | grep -o ‘[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}.[0-9]{1,3}/[0-9]{1,2}’ | cut -d/ -f1”, $arR, $retVal);[/CODE]
If you have multiple interfaces with IP addresses you might need to use the following in the first portion of that line
[CODE]/sbin/ip addr list eth0[/CODE]
Replace eth0 with the interface you use for fog.
I haven’t tested this with Ubuntu but if the system has iproute2 package installed it should work.