Multicast Deploy problem (FOG 1.2.0) #!im
-
No, it was at first a misspell, but i didn’t change it as it was only a test server. I’ve been reinstalling a few times already.
root@ubuntu-fog:/fog_git/bin# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 0 0 0 eth0 192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
root@ubuntu-fog:/fog_git/bin# cat /etc/resolv.conf Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8) DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN nameserver 192.168.1.1
The tutorial I followed wanted me to set static in this file.
root@ubuntu-fog:/fog_git/bin# cat /etc/network/interfaces 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 The primary network interface auto eth0 iface eth0 inet static address 192.168.1.101 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameservers 192.168.1.1
-
@emijoa Ok so inside of
/opt/fog/.fogsettings
change thebldhcp="1";
setting tobldhcp="0";
and save that,and then remove everthing in the /etc/dhcp/dhcpd.conf file and then put the below config in there and save, then try to restart dhcp with
service dhcpd stop;service dhcpd start
The below config has your fog server’s address reserved, and it’s setup to handle multiple host architectures.
This doesn’t fix why the subnet and mask weren’t detected right though… and because the subnet was detected as 0.0.0.0, that’s why it set the starting rage to 0.0.0.10.
After you’ve got the below file in place and the .fogsettings modified and dhcp restarted, try to run the installer again (as sudo) and see what happens.
@Tom-Elliott the good news is it detected the broadcast address accurately and setup the ending range correctly. I’ve been working on an enhanced way of detecting the IP address, and a better method of calculating the network address (based on binary math)… so that change will eventually come.
option space PXE; option PXE.mtftp-ip code 1 = ip-address; option PXE.mtftp-cport code 2 = unsigned integer 16; option PXE.mtftp-sport code 3 = unsigned integer 16; option PXE.mtftp-tmout code 4 = unsigned integer 8; option PXE.mtftp-delay code 5 = unsigned integer 8; option arch code 93 = unsigned integer 16; # RFC4578 use-host-decl-names on; ddns-update-style interim; ignore client-updates; next-server 192.168.1.101; authoritative; subnet 192.168.1.0 netmask 255.255.255.0 { option subnet-mask 255.255.255.0; range dynamic-bootp 192.168.1.0 192.168.1.254; default-lease-time 21600; max-lease-time 43200; option domain-name-servers 192.168.1.1; option routers 192.168.1.1; class "UEFI-32-1" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00006"; filename "i386-efi/ipxe.efi"; } class "UEFI-32-2" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00002"; filename "i386-efi/ipxe.efi"; } class "UEFI-64-1" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00007"; filename "ipxe.efi"; } class "UEFI-64-2" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00008"; filename "ipxe.efi"; } class "UEFI-64-3" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00009"; filename "ipxe.efi"; } class "Legacy" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000"; filename "undionly.kkpxe"; } } host fog-server { hardware ethernet 00:25:b3:11:ea:3d; fixed-address 192.168.1.101; }
-
There is no service that is called dhcpd, however there is one called isc-dhcp-server, I believe this was installed by the 1.2.0 installer?
root@ubuntu-fog:/fog_git/bin# service --help Usage: service < option > | --status-all | [ service_name [ command | --full-restart ] ] root@ubuntu-fog:/fog_git/bin# service --status-all [ ? ] FOGImageReplicator [ ? ] FOGMulticastManager [ ? ] FOGScheduler [ + ] acpid [ - ] anacron [ + ] apache2 [ + ] apparmor [ ? ] apport [ + ] atd [ + ] avahi-daemon [ + ] bluetooth [ + ] clamav-freshclam [ ? ] console-setup [ + ] cron [ + ] cups [ + ] cups-browsed [ - ] dbus [ ? ] dns-clean [ + ] friendly-recovery [ - ] gdm [ - ] grub-common [ ? ] irqbalance [ - ] isc-dhcp-server [ ? ] killprocs [ ? ] kmod [ ? ] mysql [ ? ] networking [ + ] nfs-kernel-server [ ? ] ondemand [ - ] php5-fpm [ ? ] pppd-dns [ - ] procps [ - ] pulseaudio [ ? ] rc.local [ + ] resolvconf [ + ] rpcbind [ - ] rsync [ + ] rsyslog [ + ] saned [ ? ] screen-cleanup [ ? ] sendsigs [ - ] ssh [ - ] sudo [ + ] tftpd-hpa [ + ] udev [ ? ] umountfs [ ? ] umountnfs.sh [ ? ] umountroot [ - ] unattended-upgrades [ - ] urandom [ - ] x11-common [ + ] xinetd
It came with this message
root@ubuntu-fog:/home/administrator# sudo service isc-dhcp-server stop stop: Unknown instance: root@ubuntu-fog:/home/administrator# sudo service isc-dhcp-server start isc-dhcp-server start/running, process 7787
(I’ve been restarting this service whenever I changed the bootfile for testing.)
I ran the ./installfog.sh and it went through smoothly.
Logfile:
https://dl.dropboxusercontent.com/u/106805228/fog_error_5937.logI’ll test and see if something is different on the clients tomorrow. Currently writing this from home.
-
@emijoa said:
There is no service that is called dhcpd, however there is one called isc-dhcp-server
I’m a Red-Hat kind of guy, and I do not apologize.
Do keep us updated on how it goes.
-
Will do! I’m new to Linux in general, I’ve tried a little ubuntu and debian. But I did ubuntu as it seemed to be the best documentet on the wiki
What os would you recommend to run fog on ?
-
-
@Wayne-Workman said:
@emijoa said:
What os would you recommend to run fog on ?
CentOS 7
I might give that a go then the next time I reinstall.
-
Hey, I’ve tested the client today.
At first the client would boot on network, get ip adress, try configure net0 be successful then end with dhcp failed. It then guides me to this page:
http://ipxe.org/err/040ee1
And I runifconf -c dhcp net0
Then the message says “Connection timed out” and guide me to:
http://ipxe.org/err/4c1060
Then i tried booting on an older client hp compaq 6735b and this one boots up alright.So I changed in dhcpd.conf
class "Legacy" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000"; filename "undionly.kkpxe";
to
class "Legacy" { match if substring(option vendor-class-identifier, 0, 20) = "PXEClient:Arch:00000"; filename "ipxe.kkpxe";
Then the newer client would boot, (in boot it first failed at configuring net0, 00:00:00:00:00, then it tried configuring net1, this was a legit address.)and i tried multicast, then it would complete the first setup and boot partclone, in partclone it says “Starting to restore image (-) to device (/dev/sda1)”, it stop at this window. After checking the server webgui, i saw that the image i was trying to download (i uploaded it at some point from a different computer) stood with 0B, i did a new upload and then it says 465GB, checking the disk with df -h:
root@ubuntu-fog:/etc/dhcp# df -h Filesystem Size Used Avail Use% Mounted on udev 2.8G 4.0K 2.8G 1% /dev tmpfs 566M 1.2M 565M 1% /run /dev/mapper/ubuntu--fog--vg-root 105G 21G 79G 21% / none 4.0K 0 4.0K 0% /sys/fs/cgroup none 5.0M 0 5.0M 0% /run/lock none 2.8G 148K 2.8G 1% /run/shm none 100M 24K 100M 1% /run/user /dev/sda1 236M 41M 183M 19% /boot
Tried again to multicast, but stops at same window in partclone.
-
@emijoa Ok, progress, that’s great.
We have a troubleshooting two guides on Multicast. Seeing that you’ve probably been frantically trying a billion things, it’s probably wise to follow the cleanup guide here:
https://wiki.fogproject.org/wiki/index.php?title=Troubleshoot_Downloading_-_Multicast
https://wiki.fogproject.org/wiki/index.php?title=Multicast
Run through that and make sure everything looks good - leave no stone unturned. If you come back and say you tried “everything” in there, I’ll assume you really did and that nothing in there is your issue.
-
@Wayne-Workman
Hello Wayne, sorry for the late feedback.A lot of things have happened the last few weeks. I had my apprenticeship exam and also I had to finish the task regarding the clients I’ve been testing with.
I tried following the guides you referred but they did not work. It seems as when I had the combination of the latest version, ipxe.kkpxe, and the client (HP ProBook 455 G3), not even normal deployment would work. Uploading from this version seemed to create image files with the size of the disk (although used disk space on fog server was normal). The same happened both after cleaning and reinstallation of the server. (I followed all steps again and made it similar.
In the end I had to go with normal deployment on 1.2.0 fog server.
-
@emijoa said:
In the end I had to go with normal deployment on 1.2.0 fog server.
Were you using 1.2.0 before? Have you tried FOG Trunk yet? Sorry I don’t remember, your problem is from 19 days ago lol.
-
@Wayne-Workman
Yes, I tried both trunk and no trunk version.The trunk version was more broken with my clients than the 1.2.0. Image upload would show the size of full disk (deploying to a disk with smaller total size would not work.). Normal deployment did not work at all either, it would only fail when starting.