Hello,
yesterday I found the same problem while trying to quick register a laptop booting from the network. If I tried network boot with an already registered laptop, everything worked fine. I had r3016 (clean install) on Ubuntu 14.04 (64 bits). After reading this post, I downgraded to r3012 and faced the same problem. So I clean installed r3016 again, and took a look at /var/www/fog/lib/fog/BootMenu.class.php, and changed some lines:
Where it was:
[PHP]
$iPXE = new iPXE(array(
‘product’ => $_REQUEST[‘product’],
‘manufacturer’ => $_REQUEST[‘manufacturer’],
‘mac’ => $Host->get(‘mac’),
‘success’ => 1,
‘file’ => $_REQUEST[‘filename’],
‘version’ => $_REQUEST[‘ipxever’],
));
[/PHP]
I changed it to:
[PHP]
if ($Host && $Host->isValid())
{
$iPXE = new iPXE(array(
‘product’ => $_REQUEST[‘product’],
‘manufacturer’ => $_REQUEST[‘manufacturer’],
‘mac’ => $Host->get(‘mac’),
‘success’ => 1,
‘file’ => $_REQUEST[‘filename’],
‘version’ => $_REQUEST[‘ipxever’],
));
}
else
{
$iPXE = new iPXE(array(
‘product’ => $_REQUEST[‘product’],
‘manufacturer’ => $_REQUEST[‘manufacturer’],
//‘mac’ => $Host->get(‘mac’),
‘success’ => 1,
‘file’ => $_REQUEST[‘filename’],
‘version’ => $_REQUEST[‘ipxever’],
));
}
[/PHP]
The only thing I do is to check “$Host” before calling “get(‘mac’)”. Now I can register, upload, and deploy images from/to this laptop without any problem.
I hope it helps someone else.
Regards!
Rafa.