@Sebastian-Roth Sorted. Many thanks for your help!!
Posts made by ayoward
-
RE: Enabling DHCP after install
-
RE: Enabling DHCP after install
I know you can set it up at initial install as a DHCP server, but not sure how to go about it after it has been running for a while.
-
Enabling DHCP after install
Hi everyone,
Having moved offices to a “hip” location, there is hardly any structured cabling (much to my annoyance) which means I can no longer have my Fog Server on the network like it was so I now need it to be standalone. Is there a way that I can have the Fog Server now be it’s own DHCP server and have it dish out IP addresses to all the machines I plug into the attached switch?
Thanks,
Andrew
-
RE: Adding normal wipe to PXE boot menu
@george1421 That has sorted it. Genius!!
Thanks so much
-
RE: Adding normal wipe to PXE boot menu
@george1421 I just copied what you put and made the change to the IP address details. The rest is verbatim.
-
RE: Adding normal wipe to PXE boot menu
@george1421 said in Adding normal wipe to PXE boot menu:
imgargs loglevel=4 initrd=init.xz root=/dev/ram0 rw ramdisk_size=275000 keymap= web=${fog-ip}/fog consoleblank=0 loglevel=4 capone=1 mode=wipe wipemode=fast mac=00:00:00:00:00:00
boot || goto MENUAll seems to be going well until we get the below
-
Adding normal wipe to PXE boot menu
Re: Remote wipe
Does this work in the current version of FOG? I have looked at several threads on remote wiping machines, but none of them seem to be conclusive for the current version. Can I have an option on my PXE boot menu that allows me to select normal wipe, or do I need to use DBAN? The native wipe in Fog works fine and I have been using that, but currently my process is
- PXE boot the machine and select Quick Registration and Inventory
- Find that new machine in the hosts menu and assign the normal wipe task
- Reboot machine for PXE to pick it up again and perform the task
Is there any way that I can just add normal wipe to the menu and if so how? Does the post I referenced at the beginning work on the1.5.5 version?
I have looked at:
https://forums.fogproject.org/topic/10786/dban-fog-boot-menu
https://forums.fogproject.org/topic/11742/add-wipe-disk-to-the-pxe-menu
https://forums.fogproject.org/topic/9211/add-wipe-option-to-fog-boot-menu
and https://forums.fogproject.org/topic/4791/fast-wipe-in-advanced-menubut I not sure any of them cover what I am after.
Thanks
-
RE: ipxe boot just hangs
@george1421 @Junkhacker @Sebastian-Roth That has cracked it!! Thanks so much for your help!!
-
RE: ipxe boot just hangs
@george1421 and before I added that line into default.ipxe, there was nothing in there. Should I copy what you have in yours into mine?
-
RE: ipxe boot just hangs
@george1421 the file is definitely there.
## Start of FOG Settings ## Created by the FOG Installer ## Find more information about this file in the FOG Project wiki: ## https://wiki.fogproject.org/wiki/index.php?title=.fogsettings ## Version: 1.5.5 ## Install time: Mon 29 Apr 2019 05:41:48 PM EDT ipaddress='10.60.16.129' copybackold='0' interface='ens32' submask='255.255.255.0' routeraddress='# No router address added' plainrouter='' dnsaddress='127.0.0.53' username='fog' password='***********' osid='2' osname='Debian' dodhcp='N' bldhcp='0' dhcpd='' blexports='1' installtype='N' snmysqluser='root' snmysqlpass='' snmysqlhost='localhost' installlang='0' storageLocation='/images' fogupdateloaded=1 docroot='/var/www/html/' webroot='/fog/' caCreated='yes' httpproto='http' startrange='' endrange='' bootfilename='undionly.kpxe' packages='apache2 bc build-essential cpp curl g++ gawk gcc genisoimage gzip htmldoc isolinux lftp libapache2-mod-php7.1 libc6 libcurl4 liblzma-dev m4 mysql-client mysql-server net-tools nfs-kernel-server openssh-server php7.1 php7.1-bcmath php7.1-cli php7.1-curl php7.1-fpm php7.1-gd php7.1-json php7.1-ldap php7.1-mbstring php7.1-mysql php-gettext tar tftpd-hpa tftp-hpa unzip vsftpd wget xinetd zlib1g ' noTftpBuild='' notpxedefaultfile='' sslpath='/opt/fog/snapins/ssl/' backupPath='/home/' php_ver='7.1' php_verAdds='-7.1' sslprivkey='/opt/fog/snapins/ssl//.srvprivate.key' ## End of FOG Settings
Mod Note: Fixed post formating-Geo*
-
RE: ipxe boot just hangs
Yes, the Fog server is at 10.60.16.129
The result of the command is chain http://10.60.16.129/fog/service/ipxe/boot.php##params
-
RE: ipxe boot just hangs
Thanks for you help. Looking at the output here I can already see a problem, but which file do I edit?
#!ipxe
set fog-ip 10.60.16.129
set fog-webroot fog
set boot-url http://${fog-ip}/${fog-webroot}
cpuid --ext 29 && set arch x86_64 || set arch i386
goto get_console
:console_set
colour --rgb 0x00567a 1 ||
colour --rgb 0x00567a 2 ||
colour --rgb 0x00567a 4 ||
cpair --foreground 7 --background 2 2 ||
goto MENU
:alt_console
cpair --background 0 1 ||
cpair --background 1 2 ||
goto MENU
:get_console
console --picture http://10.60.16.129/fog/service/ipxe/bg.png --left 100 --right 80 && goto console_set || goto alt_console
:MENU
menu
colour --rgb 0xff0000 0 ||
cpair --foreground 1 1 ||
cpair --foreground 0 3 ||
cpair --foreground 4 4 ||
item --gap Host is NOT registered!
item --gap – -------------------------------------
item fog.local Boot from hard disk
item fog.memtest Run Memtest86+
item fog.reginput Perform Full Host Registration and Inventory
item fog.reg Quick Registration and Inventory
item fog.deployimage Deploy Image
item fog.multijoin Join Multicast Session
item fog.sysinfo Client System Information (Compatibility)
choose --default fog.local --timeout 3000 target && goto ${target}
:fog.local
sanboot --no-describe --drive 0x80 || goto MENU
:fog.memtest
kernel memdisk initrd=memtest.bin iso raw
initrd memtest.bin
boot || goto MENU
:fog.reginput
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.60.16.129/fog/ consoleblank=0 rootfstype=ext4 storage=10.60.16.129:/images/ storageip=10.60.16.129 loglevel=4 mode=manreg
imgfetch init_32.xz
boot || goto MENU
:fog.reg
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.60.16.129/fog/ consoleblank=0 rootfstype=ext4 storage=10.60.16.129:/images/ storageip=10.60.16.129 loglevel=4 mode=autoreg
imgfetch init_32.xz
boot || goto MENU
:fog.deployimage
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
param sysuuid ${uuid}
:fog.multijoin
login
params
param mac0 ${net0/mac}
param arch ${arch}
param username ${username}
param password ${password}
param sessionJoin 1
isset ${net1/mac} && param mac1 ${net1/mac} || goto bootme
isset ${net2/mac} && param mac2 ${net2/mac} || goto bootme
param sysuuid ${uuid}
:fog.sysinfo
kernel bzImage32 loglevel=4 initrd=init_32.xz root=/dev/ram0 rw ramdisk_size=127000 web=http://10.60.16.129/fog/ consoleblank=0 rootfstype=ext4 storage=10.60.16.129:/images/ storageip=10.60.16.129 loglevel=4 mode=sysinfo
imgfetch init_32.xz
boot || goto MENU
:bootme
chain -ar http://10.60.16.129/fog/service/ipxe/boot.php##params ||
goto MENU
autoboot -
RE: ipxe boot just hangs
So, the screenshot is from a linux test box, so I got hold of a test Dell laptop that we have also and I have updated the BIOS on that to the latest from Dell and the same thing happens. It hangs at the same point.
-
ipxe boot just hangs
Hi folks,
For some reason, my network boot just hangs at what seems like the first hurdle. I have tried to follow all the instructions, but as a novice, I don’t mind saying there is probably something really obvious that I’m not doing. All I want to do is have the host register with the server so that I can push the disk wiping facility. The default.ipxe just contains
chain http://10.60.16.129/fog/service/ipxe/boot.php##params
So I’m not sure what I need to do next. Any help would be gratefully received.
Thanks,
Andrew