@Sebastian-Roth yes, the esxi host has a NIC on each network. I am attempting to get the network to allow access to an single IP in the management for each lab so I can just use the 066 DHCP option to point to the interface that works for TFTP which I believe is the way the guys that are doing similar setups are making it work.
Posts made by lenels2eng
-
RE: Multi-Network, Multi-NIC fog server config help
-
RE: Multi-Network, Multi-NIC fog server config help
Thanks for the replies! DHCP is handled by another device and the correct 66 and 67 entries are there. Yes, the FOG server has multiple NICs, one on each network. Each NIC has an IP on that network. lab1 172.16.111.5, lab2 172.16.112.5, etc.
@Tom-Elliott - The idea is to have one FOG server service 3 networks, each are both physically and logically separate. Each network has it’s own cable plant that terminate at a switch for that network which then connects to a router. The only point of confluence is at the router. The routing is configured that none of the labs can talk to any of the other labs, only out to the firewall and internet.
@Sebastian-Roth - yes, that command returned *:69 so I think it’s listening on all IPs. I only have a few hours to work on it this morning until I have to turn WDS back on to get ready for next week. I’ll go through the testing TFTP from the lab networks you linked to and see if I can make any progress.
I read a while ago, and of course can’t find it when I need it, there are a bunch of people using FOG in a similar setup in the EDU space. I think they were doing multiple labs off one server but passing the TFTP boot only to one IP with DHCP relay as you mentioned as well.
I’m hoping to get this going as I have two scenario’s where this would be AMAZING to get implemented.
Again, thanks guys for being quick and responsive on these forums. MAJOR bonus for using FOG is the relevant help from the guys in the middle of it!!
-
RE: Multi-Network, Multi-NIC fog server config help
Tried adding a storage node…No dice…
-
Multi-Network, Multi-NIC fog server config help
Hello all and thank you in advance for any assistance that may be provided :) Past experience with this group has been outstanding!!!
So here’s my setup: I have a FOG server VM running on my ESXi server. I have multiple networks connected to the ESXi host that serve multiple labs. Mgmt is on NIC 0, Lab1 is on NIC 1, Lab2 is on NIC2, etc…I have connected vNICs to my FOG VM for each lab network and can ping the FOG server from each network. I can also ping into the lab networks from the FOG VM so I’m fairly certain the networking is correct.
I can TFTP boot from the default/main/Mgmt network but not from any of my lab networks. I get the FOG white screen with menu options.
When I try from the lab network there is no TFTP response. After doing some research in the forums it seems like I need to add a storage node with the labnetwork IP but the same image location??? Just looking for confirmation that is indeed the trick to using one FOG server on many networks.
Thanks!!!
-
RE: Trouble getting first Image
Sorry about the long intervals between posts. Just finishing up internal product training…
SO… I did as @Sebastian-Roth suggested and was able to successfully take an image and push it down on a blank VM! I have not tried putting the image back on the source VM but thought I would report back that I am successful and appear to be all set.
The take away from this is having 2 storage nodes on the same machine is not a great idea. If you run out of space, add a HDD and mount it /Images to add space.
Thank you @Sebastian-Roth and @george1421 for your help and guidance!
-
RE: Trouble getting first Image
@Sebastian-Roth - thanks for the reply!!!
I actually added a drive to my fog server and chose to give it it’s own location and storage node. Should I not? This is a VM and I used a 16 GB vdisk for my OS so I didn’t give it any space for images. After my OS was solid, then I added the 2nd vdisk…
should I just start over with a larger vdisk???
So in the file ownership side, I think I get it. The files are made under root in the MAC directory, then moved/copied to the imagename directory because there is no fog user on the client side to authenticate with.
Thanks again for the assistance!!
-
RE: Trouble getting first Image
@george1421 - I see where the file owner is root instead of fog when the client begins taking the image. I’ve tried resetting it to fog during the process and it does not work; I’ve tried setting permissions on the folder but new files and folders created belong to root; I’ve tried setting ACLs with the same results. I definitely think this is the root cause (no pun intended) but am in training this week so cannot troubleshoot this week. i will try to get back into the server later in the week to see if I can figure out why new folders and files that are created during the process default to root ownership and 0644 permission levels when everything looks like it should be owned by fog and have 0777…
Thanks for seeing this and putting me on the path. :)
-
RE: Trouble getting first Image
@george1421 - I have no idea what the location plugin is or where to even look for it :)
for permissions I have it set at 777 for all users:
[root@SRV-JMS-FOGTEST /]# ls -la /images/dev total 0 drwxrwxrwx 3 fog root 46 Nov 30 19:00 . drwxrwxrwx 4 fog root 61 Nov 30 19:00 .. -rwxrwxrwx 1 fog root 0 Nov 30 19:00 .mntcheck drwxrwxrwx 2 fog root 26 Nov 30 19:00 postinitscripts
[root@SRV-JMS-FOGTEST /]# ls -la /images2/dev total 20 drwxrwxrwx 5 fog root 4096 Dec 3 20:01 . drwxrwxrwx 5 fog root 4096 Nov 30 19:51 .. drwxrwxrwx 2 root root 4096 Dec 3 20:11 000c29748171 drwxrwxrwx 2 fog root 4096 Dec 3 19:31 000c29748171.bak -rwxrwxrwx 1 fog root 0 Nov 30 19:51 .mntcheck drwxrwxrwx 2 fog root 4096 Nov 30 19:50 postinitscripts [root@SRV-JMS-FOGTEST /]#
[Mod Note] I fixed the post for readability reasons -Geo
-
RE: Trouble getting first Image
Thanks for the reply @george1421 !!
Yes, I found that article and did run through it. the PW in .fogsettings matches…
I’ve been digging around and found in the PHP-FPM error log (www-error.log) "Failed to open stream: No such file or directory in /var//www/html/fog/lib/fog/fogftp.class.php on line 808
PHP Warning: ftp_put(/images/dev/000c29748171): failed to open stream: No such file or directory in /var/www/html/fog/lib/fog/fogftp.class.php on line 709"
When I look in /images2/dev there is a directory for the image and there are files in it…
not sure why some files transfer and then…it gets stuck maybe???
-
Trouble getting first Image
Thank you in advance for your efforts in helping get FOG up and going…New install on Centos 7.5.1804 (Core) and FOG 1.5.5. I have the FOG server running and all looks good from the web interface. I am able to get a PXE client to boot and get it to register and inventory a new client. When I go to take an image of that client it gets most of the way then can’t complete. “error returned: Type: 2 File: /var/www/html/fog/lib/fog/fogftp.class.php, line 709, messageL ftp_put():” Then some stuff about UTC time zone.
So I verified I can FTP into the box as the FOG user, set permissions on the TFTPBOOT directory and the /image/* directories, made sure the password matched in the web interface in FOG settings, in the storage node settings, and generally everywhere I could find it.
I made sure the timezone in the OS matches the web interface, set to UTC on both sides.
The imaging begins and does fine until it goes to text screen and I get a bunch of errors (above) then the “An Error has been detected!” and the kernel variables…
I’ve searched through and can’t find an answer…
Any help would be greatly appreciated…