OK. It looks like my issue was user error and ignorance. I believe my installation is doing what I need it to do. The first problem was that I was used to all hosts booting to the same PXE menu, as was the case in version 0.32. When I deleted the registration for my test host, I got a different menu, which contained the Quick Registration and Inventory option that I needed. So, for anyone else out there upgrading from version 0.32, with the new version, unregistered hosts boot to one menu, and registered hosts boot to a different menu. The next issue was getting it configured properly. Thanks again for your assistance.
Posts made by pjacksn
-
RE: Unable to do a host registration
-
RE: Unable to do a host registration
It seems, if I understood the original post correctly, that we appear to be missing the actual issue. If I misunderstood the original post, then I apologize for muddying the waters. The issue I am having, the same issue to which I believe the original post refers, has been stated twice in my earlier posts.
In my most recent post, I stated:
The “Quick Registration and Inventory” option was on the PXE menu when I was running FOG 0.32, but it is no longer there after the upgrade to 1.2.0.In my original post, I asked:
Is there a way to add this option back to the PXE menu, or at the very least, perform the same function with another PXE menu option?Again, I thank you in advance for any help you may provide.
-
RE: Unable to do a host registration
For this particular host, you are correct. I was using this host for testing purposes only. However, if it was not already registered, there is no option, as far as I have been able to tell, on the PXE menu to register and inventory the host. The “Quick Registration and Inventory” option was on the PXE menu when I was running FOG 0.32, but it is no longer there after the upgrade to 1.2.0.
-
RE: Unable to do a host registration
Here is the rest.
[url]http://10.1.40.103/fog/service/ipxe/boot.php?mac=00:21:cc:5d:f8:5f[/url]
#!ipxe
cpuid --ext 29 && set arch x86_64 || set arch i386
colour --rgb 0xff6600 2
cpair --foreground 7 --background 2 2
console --picture [url]http://192.168.1.1/fog/service/ipxe/bg.png[/url] --left 100 --right 80
:MENU
menu
colour --rgb 0x00ff00 0
cpair --foreground 0 3
item --gap Host is registered as T420a-R8W8YH3
item --gap – -------------------------------------
item fog.local Boot from hard disk
item fog.memtest Run Memtest86+
item fog.keyreg Update Product Key
item fog.quickimage Quick Image
item fog.quickdel Quick Host Deletion
item fog.sysinfo Client System Information (Compatibility)
item fog.advanced Advanced Menu
choose --default fog.local --timeout 60000 target && goto ${target}
:fog.local
sanboot --no-describe --drive 0x80 || goto MENU
:fog.memtest
kernel memdisk iso raw
initrd memtest.bin
boot || goto MENU
:fog.reginput
kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=192.168.1.1/fog/ consoleblank=0 loglevel=4 1
imgfetch init_32.xz
boot || goto MENU
:fog.keyreg
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param keyreg 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain -ar [url]http://192.168.1.1/fog/service/ipxe/boot.php##params[/url] ||
goto MENU
:fog.reg
kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=192.168.1.1/fog/ consoleblank=0 loglevel=4 1
imgfetch init_32.xz
boot || goto MENU
:fog.quickimage
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param qihost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain -ar [url]http://192.168.1.1/fog/service/ipxe/boot.php##params[/url] ||
goto MENU
:fog.quickdel
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param delhost 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain -ar [url]http://192.168.1.1/fog/service/ipxe/boot.php##params[/url] ||
goto MENU
:fog.sysinfo
kernel bzImage32 root=/dev/ram0 rw ramdisk_size=127000 ip=dhcp dns= keymap= web=192.168.1.1/fog/ consoleblank=0 loglevel=4 mode=sysinfo
imgfetch init_32.xz
boot || goto MENU
:fog.debug
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param debugAccess 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
:bootme
chain -ar [url]http://192.168.1.1/fog/service/ipxe/boot.php##params[/url] ||
:fog.advanced
chain -ar [url]http://192.168.1.1/fog/service/ipxe/advanced.php[/url] || goto MENU
autobootThanks in advance for any help you can provide.
-
RE: Unable to do a host registration
I think I am having the same issue as joacliba. I just upgraded FOG from version 0.32 to 1.2.0 on a computer running Debian 6.0.10. Upon booting a machine to the PXE menu, I attempt to register the machine to the FOG database, but the “Quick Host Registration and Inventory” option is no longer on the menu and none of the options currently on the menu seem to perform this function. I have been searching the wiki and forums for a solution, but I have been unable to find what I need. Is there a way to add this option back to the PXE menu, or at the very least, perform the same function with another PXE menu option?
Having read through the previous posts, I am including the information from my server that was requested of joacliba from his server.
error.log
[Sun Nov 09 07:44:34 2014] [notice] Apache/2.2.16 (Debian) PHP/5.3.3-7+squeeze19 with Suhosin-Patch configured – resuming normal operations
[Mon Nov 10 08:15:15 2014] [error] [client 10.1.40.147] File does not exist: /var/www/favicon.ico
[Mon Nov 10 08:15:15 2014] [error] [client 10.1.40.147] File does not exist: /var/www/favicon.icofoginstall.log
Script started on Thu 06 Nov 2014 06:00:19 PM EST
Debian..#######:. ..,#,.. .::##::.
.:###### .:;####:…;#;…
…##… …##;,;##::::.##…
,# …##…##:::## …::
## .::###,##. . ##.::#.:######::.
…##:::###::…#. … .#…#. #…#:::.
…:####:… …##…##::## … #
# . …##:,;##;:::#: … ##…
.# . .:;####;::::.##:::;#:…
# …:;###…###########################################
FOG
Free Computer Imaging Solution
[url]http://www.fogproject.org/[/url]
Developers:
Chuck Syperski
Jian Zhang
Peter Gilchrist
Tom Elliott
GNU GPL Version 3
###########################################
Version: 1.2.0 Installer/Updater
What version of Linux would you like to run the installation for?
1) Redhat Based Linux (Redhat, CentOS, Mageia) 2) Debian Based Linux (Debian, Ubuntu, Kubuntu, Edubuntu)
Choice: [2]
Starting Debian / Ubuntu / Kubuntu / Edubuntu Installtion.
FOG Server installation modes:
* Normal Server: (Choice N)
This is the typical installation type and
will install all FOG components for you on this
machine. Pick this option if you are unsure what to pick.* Storage Node: (Choice S) This install mode will only install the software required to make this server act as a node in a storage group
More information:
[url]http://www.fogproject.org/wiki/index.php?title=InstallationModes[/url]What type of installation would you like to do? [N]
What is the IP address to be used by this FOG Server? [192.168.1.1]
Would you like to setup a router address for the DHCP server? [Y/n]
What is the IP address to be used for the router on the DHCP server? [192.168.1.1]Would you like to setup a DNS address for the DHCP server and client boot image? [Y/n] N
Would you like to change the default network interface from eth0?
If you are not sure, select No. [y/N]Would you like to use the FOG server for DHCP service? [Y/n]
This version of FOG has internationalization support, would
you like to install the additional language packs? [y/N]Would you like to donate computer resources to the FOG Project
to mine cryptocurrency? This will only take place during active
tasks and should NOT have any impact on performance of your
imaging or other tasks. The currency will be used to pay for
FOG Project expenses and to support the core developers working
on the project. For more information see:[url]http://fogproject.org/?q=cryptocurrency[/url]
Would you like to donate computer resources to the FOG Project? [y/N]
#####################################################################
FOG now has everything it needs to setup your server, but please
understand that this script will overwrite any setting you may
have setup for services like DHCP, apache, pxe, tftp, and NFS.It is not recommended that you install this on a production system
as this script modifies many of your system settings.This script should be run by the root user on Redhat or with sudo on Ubuntu.
** Notice ** Redhat users will need to disable SELinux and iptables in
order to use FOG
Please see our wiki for more information at [url]http://www.fogproject.org/wiki[/url]Here are the settings FOG will use:
Base Linux: Debian
Detected Linux Distribution: Debian
Installation Type: Normal Server
Server IP Address: 192.168.1.1
DHCP router Address: 192.168.1.1
DHCP DNS Address:
Interface: eth0
Using FOG DHCP: 1
Internationalization: 0
Donate: 0Are you sure you wish to continue (Y/N)
Sorry, answer not recognized.
Are you sure you wish to continue (Y/N) y
Installation Started…
Installing required packages, if this fails
make sure you have an active internet connection.-
Preparing apt-get
-
Installing package: apache2
-
Installing package: php5
-
Installing package: php5-json
-
Installing package: php5-gd
-
Installing package: php5-cli
-
Installing package: php5-mysql
-
Installing package: php5-curl
-
Installing package: mysql-server
We are about to install MySQL Server on
this server, if MySQL isn’t installed already
you will be prompted for a root password.Press enter to acknowledge this message.
Reading package lists…
Building dependency tree…
Reading state information…
mysql-server is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up tftpd-hpa (5.0-18) …
tftpd user (root) already exists, doing nothing.tftpd-hpa directory (/tftpboot) already exists, doing nothing.
insserv: warning: script ‘K01FOGMulticastManager’ missing LSB tags and overrides
insserv: warning: script ‘S20FOGScheduler’ missing LSB tags and overrides
insserv: warning: script ‘S20FOGImageReplicator’ missing LSB tags and overrides
insserv: warning: script ‘FOGImageReplicator’ missing LSB tags and overrides
insserv: warning: script ‘FOGMulticastManager’ missing LSB tags and overrides
insserv: warning: script ‘FOGScheduler’ missing LSB tags and overrides
Starting HPA’s tftpd: in.tftpdinvoke-rc.d: initscript tftpd-hpa, action “start” failed.
dpkg: error processing tftpd-hpa (–configure):
subprocess installed post-installation script returned error exit status 71
configured to not write apport reports
Errors were encountered while processing:
tftpd-hpa
E: Sub-process /usr/bin/dpkg returned an error code (1)- Installing package: mysql-client
- Installing package: isc-dhcp-server
- Installing package: tftpd-hpa
- Installing package: tftp-hpa
- Installing package: nfs-kernel-server
- Installing package: vsftpd
- Installing package: net-tools
- Installing package: wget
- Installing package: xinetd
- Installing package: sysv-rc-conf
- Installing package: tar
- Installing package: gzip
- Installing package: build-essential
- Installing package: cpp
- Installing package: gcc
- Installing package: g++
- Installing package: m4
- Installing package: htmldoc
- Installing package: lftp
- Installing package: openssh-server
- Installing package: php-gettext
- Installing package: clamav-freshclam
Confirming package installation.
- Checking package: apache2…OK
- Checking package: php5…OK
- Checking package: php5-json…OK
- Checking package: php5-gd…OK
- Checking package: php5-cli…OK
- Checking package: php5-mysql…OK
- Checking package: php5-curl…OK
- Checking package: mysql-server…OK
- Checking package: mysql-client…OK
- Checking package: isc-dhcp-server…OK
- Checking package: tftpd-hpa…OK
- Checking package: tftp-hpa…OK
- Checking package: nfs-kernel-server…OK
- Checking package: vsftpd…OK
- Checking package: net-tools…OK
- Checking package: wget…OK
- Checking package: xinetd…OK
- Checking package: sysv-rc-conf…OK
- Checking package: tar…OK
- Checking package: gzip…OK
- Checking package: build-essential…OK
- Checking package: cpp…OK
- Checking package: gcc…OK
- Checking package: g++…OK
- Checking package: m4…OK
- Checking package: htmldoc…OK
- Checking package: lftp…OK
- Checking package: openssh-server…OK
- Checking package: php-gettext…OK
- Checking package: clamav-freshclam…OK
Configuring services.
-
Setting up and starting MySql…OK
-
Backing up user reports…OK
-
Did you leave the mysql password blank during install? (Y/n)
-
Setting up and starting Apache Web Server…OK
You still need to install/update your database schema.
This can be done by opening a web browser and going to:
Press [Enter] key when database is updated/installed.
- Configuring Fresh Clam…OK
- Setting up storage…OK
- Setting up and starting NFS Server…OK
- Setting up and starting DHCP Server…OK
- Setting up and starting TFTP and PXE Servers…Failed!
Script done on Thu 06 Nov 2014 06:03:54 PM EST
-