What he’s saying is when the install asks if you want to install dhcp server say no. Then it will ask you to enter the IP of the dhcp server. This should be what you’re trying to do.
Posts made by Tom Elliott
-
RE: FOG without DHCP Entry
-
RE: PXE - howto create fog task for host delete?
The fog.auto.del script now asks you if you’re sure you want to delete the host and it also asks if you’d like to reinventory the system after the deletion.
If you say no to the Full Inventory, it asks if you want to quick inventory it. If you say no there, it just continues on and restarts the system.
It also goes around to the tables I am aware of (printerAssoc, snapinAssoc, groupMembers, inventory, and host) and removes the host if it exists there.
-
PXE Menu Delete Host
Alright, all completed and, from what I can tell, working great.
First things first.
[B]NOTE: If things aren’t running or giving permission denied errors try prepending with sudo[/B]EXAMPLE:
[CODE]sudo gunzip init.gz[/CODE]
Login to your FOG server so you are the root owner, or with someone with sudo privileges.Change directory into your FOG tftpboot folder usually:
[CODE]cd /tftpboot/fog/images[/CODE]Create a backup of the current init.gz:
[CODE]cp /tftpboot/fog/images/init.gz /tftpboot/fog/images/init_orig.gz[/CODE]Extract the init.gz file with:
[CODE]gunzip init.gz[/CODE]Make a directory to mount the file (I usually create tmp inside the images folder.)
[CODE]mkdir tmp[/CODE]Mount the init file to the tmp directory.
[CODE]mount -o loop init tmp[/CODE]Edit (use the editor you’re comfortable with) the etc/init.d/S99fog file:
[CODE]vi tmp/etc/init.d/S99fog[/CODE]Add these three lines [B]ABOVE[/B] the fi statement at the bottom of the page.
[CODE]elif [ “$mode” == “delreg”]; then
run=“/bin/fog.auto.del”;
after=$afterActionTerm;[/CODE]Now download the fog.auto.txt file linked to this post.
Then rename the file to fog.auto.del
Place on your FOG Server at:
[CODE]/tftpboot/fog/images/tmp/bin[/CODE]Make sure the file is owned by user root and is executable with:
[CODE]chmod +x /tftpboot/fog/images/tmp/bin/fog.auto.del; chown root:root /tftpboot/fog/images/tmp/bin[/CODE]Now you should be complete with the editing of the init.gz file. Close it out:
[CODE]cd /tftpboot/fog/images
umount /tftpboot/fog/images/tmp
rm -rf /tftpboot/fog/images/tmp
gzip -9 init[/CODE]Now you’re going to edit the pxe file with:
[CODE]cd /tftpboot/pxelinux.cfg
vi default[/CODE]Add the following lines [B]ABOVE[/B] the PROMPT 0 line:
[CODE]LABEL fog.del
MENU PASSWD password
KERNEL fog/kernel/bzImage
APPEND initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=X.X.X.X mode=delreg keymap= web=X.X.X.X/fog/ loglevel=4 consoleblank=0
MENU LABEL Quick Host Deletion
TEXT HELP
Automatically delete the host from FOG.
ENDTEXT[/CODE][B]NOTE: Don’t forget to change your dns and web fields for your particular host.[/B]
Of course change the MENU PASSWD to what yours is setup for encrypted or not.
Now copy the auto.delete.php file attached to this post to your service directory usually located at:
FOR MOST REDHAT DEFAULT HTTP
[CODE]/var/www/html/fog/service[/CODE]
or:
FOR MOST UBUNTU DEFAULT HTTP
[CODE]/var/www/fog/service[/CODE]Then you should be complete.
Hopefully I’ve helped.
[url=“/_imported_xf_attachments/0/399_auto.delete.php?:”]auto.delete.php[/url][url=“/_imported_xf_attachments/0/403_fog.auto.txt?:”]fog.auto.txt[/url]
-
RE: PXE - howto create fog task for host delete?
Alright, all completed and, from what I can tell, working great.
First things first.
[B]NOTE: If things aren’t running or giving permission denied errors try prepending with sudo[/B]EXAMPLE:
[CODE]sudo gunzip init.gz[/CODE]
Login to your FOG server so you are the root owner, or with someone with sudo privileges.Change directory into your FOG tftpboot folder usually:
[CODE]cd /tftpboot/fog/images[/CODE]Create a backup of the current init.gz:
[CODE]cp /tftpboot/fog/images/init.gz /tftpboot/fog/images/init_orig.gz[/CODE]Extract the init.gz file with:
[CODE]gunzip init.gz[/CODE]Make a directory to mount the file (I usually create tmp inside the images folder.)
[CODE]mkdir tmp[/CODE]Mount the init file to the tmp directory.
[CODE]mount -o loop init tmp[/CODE]Edit (use the editor you’re comfortable with) the etc/init.d/S99fog file:
[CODE]vi tmp/etc/init.d/S99fog[/CODE]Add these three lines [B]ABOVE[/B] the fi statement at the bottom of the page.
[CODE]elif [ “$mode” == “delreg”]; then
run=“/bin/fog.auto.del”;
after=$afterActionTerm;[/CODE]Now download the fog.auto.txt file linked to this post.
Then rename the file to fog.auto.del
Place on your FOG Server at:
[CODE]/tftpboot/fog/images/tmp/bin[/CODE]Make sure the file is owned by user root and is executable with:
[CODE]chmod +x /tftpboot/fog/images/tmp/bin/fog.auto.del; chown root:root /tftpboot/fog/images/tmp/bin[/CODE]Now you should be complete with the editing of the init.gz file. Close it out:
[CODE]cd /tftpboot/fog/images
umount /tftpboot/fog/images/tmp
rm -rf /tftpboot/fog/images/tmp
gzip -9 init[/CODE]Now you’re going to edit the pxe file with:
[CODE]cd /tftpboot/pxelinux.cfg
vi default[/CODE]Add the following lines [B]ABOVE[/B] the PROMPT 0 line:
[CODE]LABEL fog.del
MENU PASSWD password
KERNEL fog/kernel/bzImage
APPEND initrd=fog/images/init.gz root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns=X.X.X.X mode=delreg keymap= web=X.X.X.X/fog/ loglevel=4 consoleblank=0
MENU LABEL Quick Host Deletion
TEXT HELP
Automatically delete the host from FOG.
ENDTEXT[/CODE][B]NOTE: Don’t forget to change your dns and web fields for your particular host.[/B]
Of course change the MENU PASSWD to what yours is setup for encrypted or not.
Now copy the auto.delete.php file attached to this post to your service directory usually located at:
FOR MOST REDHAT DEFAULT HTTP
[CODE]/var/www/html/fog/service[/CODE]
or:
FOR MOST UBUNTU DEFAULT HTTP
[CODE]/var/www/fog/service[/CODE]Then you should be complete.
Hopefully you’ll understand why I didn’t want to get right up into it. One, I was at work, and two it’s more work than one really thinks of at the time. However, this solution should work well. I tested it on 0.33b and it works flawlessly. I can assume the same can, more or less, be said for 0.32, but I don’t have that to test on.
Hopefully I’ve helped.
Edited the auto.delete file so it now removes Module status as well.
Edited again to remove all fields with the host id.
[url=“/_imported_xf_attachments/0/402_fog.auto.txt?:”]fog.auto.txt[/url][url=“/_imported_xf_attachments/0/406_auto.delete.php?:”]auto.delete.php[/url]
-
RE: PXE - howto create fog task for host delete?
Added control options to script. works beautifully from what I can tell, though I don’t know what kind of issues we’d run into with snapin, groups, printers etc…
-
RE: PXE - howto create fog task for host delete?
Had to edit
[CODE]/tftpboot/pxelinux.cfg/default[/CODE]
to add the menu entry.Created a new file:
[CODE]/var/www/fog/service/auto.delete.php[/CODE]Edited the init.gz file:
Edited File:
[CODE]/etc/init.d/S99fog[/CODE]
to add the mode initiliazation.
Created File:
[CODE]/bin/fog.auto.del[/CODE]
To actually perform the task and send it to the auto.delete.phpWill post the files and/or edits when I am done testing. I haven’t performed any menu entries in the fog.auto.del script, so if you choose the Deletion option, it will delete your host without your go Okay. If you add the password to the default file you’ll be fine though as I assume your techs would know what they’re about to do.
-
RE: PXE - howto create fog task for host delete?
I’ve already got this working. I’ll post what I did when I test fully.
-
RE: PXE - howto create fog task for host delete?
That’s good. Did my suggestions not assist you any?
-
RE: Help me to get rid of the ask search toolbar
This is a browser issue, not a FOG issue. Your computer woes don’t belong in the FOG Forums as you’ve done so here.
To remove the Ask toolbar, you’ll need to uninstall it from the browser via Control Panel->Programs and Features->Uninstall a program Search for the ask tool bar and click uninstall.
To just not have it viewable, Click the menu button right under the red X to close chrome (three lines) click settings. Choose the side bar option extensions and choose the ask toolbar from there and click uninstall. Sometimes it doesn’t show there, so I’m thinking uninstall through Control panel is more useful to you in this manner.
-
RE: PXE - howto create fog task for host delete?
The best option I could suggest for this is to create a new fog script within the init.gz file. Have the fog script call another php file within the service directory directing that php file to delete the host upon boot. This would be the way, if I’m understanding what you’re asking. However, the hosts are meant to be a sort of inventory status for the FOG system as well. So I don’t think you want anybody to just be deleting their systems from FOG because there’s an option to do so from the PXE menu.
Maybe refine the question a little as this one is a we bit garbled and hard to understand what it is you’re asking for.
-
RE: Partition outside of disk and Invalid partition table
The best option is to create the master image on as small of a drive as you can find. Then upload that image.
-
RE: New FOG server will not start the image upload
I hope this works out for you. Sometimes it’s the only method, though you shouldn’t need to reupload the image.
-
RE: New FOG server will not start the image upload
That’s perfectly fine, but I’d change the password to something a little more convoluted.
It looks like the permissions are fine within /tftpboot/pxelinux.cfg
I’d say delete the host from the Web GUI and perform a Full registration on it. Have it update with the database so we can rule out a database issue and file issue. If the problem still persists we’ll try some more things. So:
Delete the Task from the Web GUI
Make sure the task was deleted from the /tftpboot/pxelinux.cfg (make sure the 01-44-37-e6-a9-a8-f2 file is removed) if it’s not removed manually do so with:
rm /tftpboot/pxelinux.cfg/01-44-37-e6-a9-a8-f2Then delete the host from FOG. Go under Host management, search the host name (or mac if you want) and delete it from FOG completely. Then perform a full inventory on it to have it reestablished into FOG.
Then try to perform your tasks again.
-
RE: New FOG server will not start the image upload
I’d say delete the task and the file if needed. You may even need to delete the host and perform full inventory with it, then try it again.
-
RE: Latest FOG 0.33b
Added all the missing files I had created, but didn’t get added before sorry.
r903 added TomElliott.config to trunk/kernel
r904 anything I missed earlier is now added.
-
RE: New FOG server will not start the image upload
And:
44-37-e6-a9-a8-f2 is the correct MAC for the system you’re trying to deploy? When the system is booting from PXE, this is the MAC that shows?
-
RE: Latest FOG 0.33b
r902
bzImage is now based on 3.11.1 Kernel. Configuration will be added for r903 as TomElliott.configThe config I use now contains all Network Drivers, Minimal VGA support (to try ridding those pesky kms settings) and is based on the original CORE configuration.
-
RE: New FOG server will not start the image upload
The reason running in debug gives you an “Unable to determine operating system type” message is because the task doesn’t exist. Although you do have the jobs, are the correlating with the proper MAC’s of the systems you’re trying to deploy the task to? With that, do they have the proper permissions? What I mean, is the files being created having the same permissions you placed on the directory. You can find out by performing :
[CODE]ls -l /tftpboot/pxeconfig.cfg[/CODE]This should show the permissions of the files. The first field will look something like:
[CODE][root@fogstorage ~]# ls -l /tftpboot/pxelinux.cfg
total 4
-rw-r–r-- 1 fog root 2908 Sep 2 13:03 default[/CODE]The -rw-r–r-- part is the actual permissions. The 1 is the number of links to the file in question. the fog root part is the owner and group.
My system states the default file is owner: fog group: root as we discussed earlier. It sounds like whatever is actually creating the tasks may not be giving ownership of the created tasks to fog:root as we did earlier.
When you did the install, did you install as root or another user?
Maybe try reinstalling the server to see if this will help you out at all.
-
RE: New FOG server will not start the image upload
For now, I’d say don’t do multicast jobs. Remove the area’s of the pxelinux.cfg/default file that you added and perform a test task. Then slowly work into multicast troubleshooting.
-
RE: Latest FOG 0.33b
r901,
Host management (Host Creation/New Host) Active Directory now operates and auto-populates the data.