ISCSI boot by mac-addresss - Printable Version +- iPXE discussion forum (https://forum.ipxe.org) +-- Forum: iPXE user forums (/forumdisplay.php?fid=1) +--- Forum: General (/forumdisplay.php?fid=2) +--- Thread: ISCSI boot by mac-addresss (/showthread.php?tid=7171) |
ISCSI boot by mac-addresss - rrc4039 - 2014-01-07 20:35 Hi, Is there a way/script for IPXE to present automicatically a specific ISCSI boot (target) depending the mac-address or ipaddress of the host? thanks! RE: ISCSI boot by mac-addresss - robinsmidsrod - 2014-01-08 08:38 Yes you can. You'll need to generate the sanboot URL dynamically, somewhat what I do here: https://gist.github.com/robinsmidsrod/2234639#file-menu-ipxe-L95 Line 95-100 shows how you can use variables instead of static information in the URL. https://gist.github.com/robinsmidsrod/2234639#file-boot-ipxe-cfg-L32 indicates how that variable, base-iscsi, is generated. The ${hostname} is provided directly from iPXE. You can use ${mac} or ${ip} in the same way. RE: ISCSI boot by mac-addresss - rrc4039 - 2014-01-15 05:09 Thanks!! it worked in a virtual environment. Now the problem is that when trying to run the ipxe script on a machine (Gigabyte motherboard with dual realtek nic) it disconnects the iscsi lun (sanhook) after some time before installing an OS (ESXi) . Is there something that I need to change in the bios? legacy options? etc RE: ISCSI boot by mac-addresss - MultimediaMan - 2014-01-19 23:04 (2014-01-15 05:09)rrc4039 Wrote: Thanks!! it worked in a virtual environment. Now the problem is that when trying to run the ipxe script on a machine (Gigabyte motherboard with dual realtek nic) it disconnects the iscsi lun (sanhook) after some time before installing an OS (ESXi) . Is there something that I need to change in the bios? legacy options? etc Can you describe exactly what is occuring? Screenshots? You should know that most, if not all Realtek NICs are not supported in ESX/ESXi without some bespoke hacks. |