My Photo
Name:
Location: Cupertino, California, United States

I'm orignal from Taiwan.

Thursday, May 07, 2015

FOG 1.2.0 PXE menu options: Auto registration for unregistered hosts with Quick registration and inventory

Don't have time to manually input HOST PC mac address on Fog portal.

Try the "Quick registration" option on PXE menu.

STEP1: Edit it by using nano /var/www/fog/lib/fog/BootMenu.class.php
STEP2: Find a code looking like this:
$this->defaultChoice = "choose --default fog.local --timeout $timeout target && goto \${target}\n";

Just change 'fog.local' to 'fog.reginput' (full registration) or 'fog.reg' (quick registration)... 
Save the file and boot your clients.

$this->defaultChoice = "choose --default fog.reg--timeout $timeout target && goto \${target}\n";