Need help making my own Debian 9 FOG server!
-
@unknownhost99 This video on Debian 8 will also work for Debian 9: https://wiki.fogproject.org/wiki/index.php?title=Debian_8
The video is very educational, I take the time to explain Linux partitioning and other things. It’s meant for newcomers to Linux like yourself. -
@george1421 thanks a configuration would really help
-
@unknownhost99 The configuration was provided in the link I added to the bottom of my previous post. You should review that document so you understand what is going on. You probably won’t need to compile dnsmasq. But you should understand what is going on.
To save you a few steps I’ll repeat the configuration here.
# Don't function as a DNS server: port=0 # Log lots of extra information about DHCP transactions. log-dhcp # Set the root directory for files available via FTP. tftp-root=/tftpboot # The boot filename, Server name, Server Ip Address dhcp-boot=undionly.kpxe,,<fog_server_IP> # Disable re-use of the DHCP servername and filename fields as extra # option space. That's to avoid confusing some old or broken DHCP clients. dhcp-no-override # inspect the vendor class string and match the text to set the tag dhcp-vendorclass=BIOS,PXEClient:Arch:00000 dhcp-vendorclass=UEFI32,PXEClient:Arch:00006 dhcp-vendorclass=UEFI,PXEClient:Arch:00007 dhcp-vendorclass=UEFI64,PXEClient:Arch:00009 # Set the boot file name based on the matching tag from the vendor class (above) dhcp-boot=net:UEFI32,i386-efi/ipxe.efi,,<fog_server_IP> dhcp-boot=net:UEFI,ipxe.efi,,<fog_server_IP> dhcp-boot=net:UEFI64,ipxe.efi,,<fog_server_IP> # PXE menu. The first part is the text displayed to the user. The second is the timeout, in seconds. pxe-prompt="Booting FOG Client", 1 # The known types are x86PC, PC98, IA64_EFI, Alpha, Arc_x86, # Intel_Lean_Client, IA32_EFI, BC_EFI, Xscale_EFI and X86-64_EFI # This option is first and will be the default if there is no input from the user. pxe-service=X86PC, "Boot to FOG", undionly.kpxe pxe-service=X86-64_EFI, "Boot to FOG UEFI", ipxe.efi pxe-service=BC_EFI, "Boot to FOG UEFI PXE-BC", ipxe.efi dhcp-range=<fog_server_ip>,proxy
-
@george1421 one more question in what order should i install it first dnsmasq or the fog server first
-
@unknownhost99 You can install in any order. One is not dependent on the other one.
Just for clarity, you only need dnsmasq if you are unable to modify your dhcp server’s settings for dhcp option 66 and 67. We can use dnsmasq’s features to add in those missing/unchangable values.
-
@george1421 yea the plan is to have dnsmasq for a dhcpproxy but i understand i need to install fog first
-
@george1421 so i have installed the fog server now i want to set-up my node but when i go to my server this happens
these are my settings
-
@unknownhost99 Just to be clear here. I don’t see an error.
I can say for storage nodes, they must be able to reach the Master FOG server’s database. You may need to make an adjustment to the Mysql server’s config file to allow external access. I don’t know debian so I can’t confirm if it will work correctly, or you need to add the setting in the mysql conf to allow external access to the database.
IF the database is enabled correctly AND you install a fog storage node it should auto create the storage node in the Storage section of the master server webgui. There is no webgui on the storage nodes since they are manged from the fog master node.
If there is not an entry in the FOG master node for this storage node, you need to take the user ID and password presented on the install screen and use that to hand create the storage node entry in the web gui.
-
@george1421 i cant really find the problem so i’m thinking off reinstalling fog but i need to uninstall it first and the guide provider by fog itself doesn’t work any ideas?
-
@unknownhost99 said in Need help making my own Debian 9 FOG server!:
i cant really find the problem so i’m thinking off reinstalling fog but i need to uninstall it first and the guide provider by fog itself doesn’t work any ideas?
I am sorry to say this but there is no way we can help you if you don’t properly describe what’s going on and what you mean. As George said there is no obvious error in the pictures you posted. Without any further description how would we be able to help you??
- What exactly does not work?
- Any errors you see? Take pictures or videos of client/server screen of what you think is an error and post here!
- What is your network setup?
-
@unknownhost99 Before you go through the process of reinstalling everything. You need to ensure that mysql is configured to allow remote access. Some distros disable remote access to mysql database server for security reasons.
for example: https://www.cyberciti.biz/tips/how-do-i-enable-remote-access-to-mysql-database-server.html
You can also test to see if mysql is listening on your fog master server by using this command to see if the port is open on your master fog server.
netstat -an|grep 3306
You should see a line that looks like thistcp 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN
-
@george1421 yes i indeed have that one and then a crap ton of others that each look the same that say time out i think starting over from scratch is easier since i haven t done anything significant yet
-
i have had an error during my dnsmasq installation and was wondering what the cause might be and if it is a problem before i continue.
when typing the the sudo make install command from this guide https://forums.fogproject.org/topic/8725/compiling-dnsmasq-2-76-if-you-need-uefi-support/5 it showed the following error
any information on the error would be helpfull thanks!
-
@unknownhost99 You need to install build dependencies first.
sudo apt-get build-dep dnsmasq
should do most of that even though you are compiling a different version. If you still have compile issues note down the filename (hereidna.h
) go to https://www.debian.org/distrib/packages (section “Search the contents of packages”) and search for that file you are missing. Then install the package(s) shown to you by hand - e.g.sudo apt-get install libidn11-dev
-
@unknownhost99 You might want to check with your distribtion’s repo. Many distributions contain dnsmasq 2.76 or newer version already compiled. So these steps may no longer be necessary.
[edit] I’m not totally sure what I’m looking at, but it does look like there is a debian package that has been already created for you: https://packages.debian.org/stretch/dnsmasq
-
@george1421 okay so now that worked although when i tried the sudo service dnsmasq restart. it failed and said no Unit dnsmasq.service found also what is the default location of the itsp.conf file cause i cant seem to locate it with the find command
-
@unknownhost99 Just so I’m clear, you installed your linux distro’s version of dnsmasq? If so you should be able to key in
sudo dnsmasq -v
That should show you the version of dnsmasq installed.From there, to your second question the ltsp.conf file typically goes in /etc/dnsmasq.d directory. Make sure there are no other .conf files in that directory to cause you pain.
-
@george1421 i typed vi /etc/dnsmasq.d and /etc/dnsmasq/itsp.conf nothing comes up (im sorry if i seem retarded i cant stress how new i am to linux)
-
@unknownhost99 ok lets backup here.
The config file from my post needs to be placed in a file called
ltsp.conf
(as a standard) The location of the config files for dnsmasq is typically in a directory called/etc/dnsmasq.d
Navigate to that directory and do an
ls -la
to see all files in that directory. If there are any that end in.conf
remove them. Create a new file called ltsp.conf in that directory with the following commandvi /etc/dnsmasq.d/ltsp.conf
and then paste in the contents of my config file. Make sure you replace <fog_server> with the IP address of the your fog server.Save an exit vi
Then from the linux command prompt key in
dnsmasq -v
to ensure you have version 2.76 or later installed. If that returns a successful response then start the service. It appears based on your previous error message that debian 9 is systemd compliant so once dnsmasq is installed you should be able to key in the following commands.systemctl enable dnsmasq
then (re)start the service
systemctl restart dnsmaq
-
@george1421 i did vi /etc/dnsmasq.d/ltsp.conf and there also was no .conf file except a file called dnsmasq.conf.example Though when i try to save/write the config file it says:‘’ /etc/dnsmasq.d/ltsp.conf’’ E212 Can’t open file for writing