@plegrand said:
@ch3i FOG 1.2
With your debian version ,you need to use SVN version : https://wiki.fogproject.org/wiki/index.php/SVN
@plegrand said:
@ch3i FOG 1.2
With your debian version ,you need to use SVN version : https://wiki.fogproject.org/wiki/index.php/SVN
With your Debian 8 are you using FOG SVN or FOG 1.2 version ?
@plegrand said:
@ch3i how i start it ?
service …
systemctl …
/etc/init.d …
i havent /var/log/fog/ directoryI dont understand how to post under you !!
service FOGMulticastManager start
@mrbrown said:
Not sure but I think it’s a problem in the check of the installation of this package in the installation.
@plegrand said:
@ch3i Yes
Could your start the FOGMulticastManager service and post the result of tail -n 50 /var/log/fog/multicast.log
?
@plegrand said:
For the first error i’ve got internet connection
For the second
-rwxr-xr-x 1 root root 1882 sept. 15 15:44 /etc/init.d/FOGImageReplicator
-rwxr-xr-x 1 root root 1948 sept. 15 15:44 /etc/init.d/FOGMulticastManager
-rwxr-xr-x 1 root root 1794 sept. 15 15:44 /etc/init.d/FOGSchedulerThanks for your quick answer !!
Apache and MySQL are running ?
@plegrand said:
During pxe boot of a client, the console is in qwerty, is there a way to pass it on azerty ?
Create PXE files with AZERTY layout… I’ve the same problem
@plegrand said:
On the web interface, i’ve got this error :
Estimated FOG sites: Error contacting server
Latest Version: Error contacting server
I’ve these errors on computers which connected to the web Interface and have not Internet connection.
@plegrand said:
Failed to start FOGMulticastManager.service: Unit FOGMulticastManager.service failed to load: No such file or directory.
Could you try and post the result of ls -l /etc/init.d/FOG*
?
@mrbrown said:
I have the same problem - Ubuntu 12.04 - tried 1.2.0 and trunk 4004, 4013
You have not the same problem, it’s on a library installation.
@Kevin-Talbot I’ve deleted your post… security. Please use PM.
@Kevin-Talbot said:
root@fog-server:~# ls -lhart /images
total 8.5K
-rwxrwxrwx 1 4294967294 4294967294 0 Mar 2 2015 .mntcheck
drwxr-xr-x 25 root root 4.0K Sep 11 15:30 …
drwxrwxrwx 2 4294967294 4294967294 64 Sep 15 10:18 dev
drwxrwxrwx 2 4294967294 4294967294 4.0K Sep 15 10:19 .
root@fog-server:~#
All of your nodes are syncing ? It’s the same storage group ?
@Kevin-Talbot said:
Hi Tom, sorry I’m just panicking now, did you see my last post? its seems I have lost all my images
Please post the result of :
ls -lhart /images
Edit : using a terminal/ssh connection on your FOG server.
Hi, it seem that’s a problem on your NFS exports configuration, have you tested the NFS connection with a linux client ?
@fabritrento said:
after a upgrade to ubuntu 14.04LTS fog don’t work anymore.
Hi, what doesn’t work ? :
Can you post some logs ? Like apache error.
Hi, if it cannot find the server FOG, FOG can’t tell to the client to boot to hard disk I think you can define that in your BIOS.
Below the version without using mysql :
#!/bin/bash
#########################################################
# Rename services with FoG, need mysql-client installed
#########################################################
# ch3i - 09/11/2015
#########################################################
### BEGIN INIT INFO
# Provides: rename_host_fog
# Required-Start: $all
# Required-Stop:
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Rename host at boot-shutdown
# Description: Rename host using FoG
### END INIT INFO
#########################################################
# Functions
#########################################################
FUNC_DOTS() {
max=65
if [ -n "$1" ]; then
n=`expr $max - ${#1}`
echo -n " * ${1:0:max}"
if [ "$n" -gt 0 ]; then
for i in $(seq $n); do
printf %s .
done
fi
fi
}
#########################################################
# Configuration
#########################################################
FOG_SERVER="ip_of_server"
FOG_WEBROOT="fog"
#########################################################
# Check FOG Server Status
#########################################################
FUNC_DOTS "Check FOG web service Status"
wget "http://$FOG_SERVER/$FOG_WEBROOT/index.php" -t 1 2>/dev/null
if [ $? -eq 0 ]
then
echo "Done"
#########################################################
# Get interfaces
#########################################################
NETWORK_CARDS=($(ls /sys/class/net | grep eth))
#########################################################
# Get host name and domain from FoG database
#########################################################
FUNC_DOTS "Checking hostname/domain configurations"
for ETH in ${NETWORK_CARDS[*]}
do
# read mac address
MAC=$(cat /sys/class/net/$ETH/address)
# get mac address information from fog web server
wget http://$FOG_SERVER/$FOG_WEBROOT/service/hostname.php?mac=$MAC -O /tmp/hostname_check 2>/dev/null
HOST_NAME="$(grep 'ok=' /tmp/hostname_check | cut -d "=" -f2)"
HOST_DOMAIN_NAME="$(grep 'ADDom' /tmp/hostname_check | cut -d "=" -f2)"
if [ "$HOST_NAME" != "" ]
then
echo "Done ($HOST_NAME.$HOST_DOMAIN_NAME)"
sleep 3
# A hostname is found - quit the loop
break
else
echo "Error"
FUNC_DOTS "Host not found in FOG database"
echo "exiting"
sleep 3
exit
fi
done
#########################################################
# Check host configuration
#########################################################
ACTUAL_FQDN=$(hostname --fqdn)
if [ "$HOST_NAME.$HOST_DOMAIN_NAME" != "$ACTUAL_FQDN" -a "$HOST_NAME" != "" -a "$HOST_DOMAIN_NAME" != "" ]
then
#########################################################
# Update hostname file
#########################################################
FUNC_DOTS "Updating /etc/hostname"
echo $HOST_NAME >/etc/hostname
echo "Done"
#########################################################
# Update hosts file
#########################################################
FUNC_DOTS "Updating /etc/hosts"
echo "127.0.0.1 localhost" > /etc/hosts
echo "127.0.1.1 $HOST_NAME.$HOST_DOMAIN_NAME $HOST_NAME " >> /etc/hosts
echo "# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts" >> /etc/hosts
echo "Done"
#########################################################
# Update interfaces file
#########################################################
FUNC_DOTS "Updating /etc/network/interfaces"
echo "# This file describes the network interfaces available on your system
# and how to activate them. For more information, see interfaces(5).
# The loopback network interface
auto lo
iface lo inet loopback" > /etc/network/interfaces
for ETH in ${NETWORK_CARDS[*]}
do
if [ "$ETH" != "lo" ]
then
echo "# $ETH Interface
allow-hotplug $ETH
iface $ETH inet dhcp" >> /etc/network/interfaces
fi
done
echo "Done"
#########################################################
# Clear persistent network cards
#########################################################
FUNC_DOTS "Clearing persistent networks cards"
if [ -f /etc/udev/rules.d/70-persistent-net.rules ]
then
rm /etc/udev/rules.d/70-persistent-net.rules
fi
echo "Done"
#########################################################
# Logs and Reboot machine
#########################################################
FUNC_DOTS "Building rename logs"
echo "$(date) ::: Update successful with Hostname : $HOST_NAME and Domain : $HOST_DOMAIN_NAME" >> /var/log/rename_host_fog.log
echo "Done"
grub-reboot 0
/sbin/init 6
exit
fi
if [ "$HOST_NAME" == "" -a "$HOST_DOMAIN_NAME" == "" ]
then
echo "$(date) ::: Update failed : Failed to connect to Mysql Server" >> /var/log/rename_host_fog.log
fi
if [ "$HOST_NAME" != "" -a "$HOST_DOMAIN_NAME" == "" ]
then
echo "$(date) ::: Update failed : Domain name is missing" >> /var/log/rename_host_fog.log
fi
else
echo "Error"
FUNC_DOTS "Failed to connect to server"
echo "Exiting"
sleep 3
exit
fi
exit
More slow because 10 seconds timeout in hostname.php request.
@ch3i said:
Sleep on hostname.php is removed, I’ll try to post a version with hostname.php instead MySQL request.
@Tom-Elliott It seem to be back
Update host_rename_fog :
To use that script please create a user in mysql database with select right only on tables : hosts and hostMAC !